question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Bat Ledger Service" causing 100% CPU usage

See original GitHub issue

Description

We’ve been receiving several reports from our users that Bat Ledger Service causes the CPU to increase to 100% in some cases in 1.5.x which causes performance issues. We’ve had a similar issue in 1.7.x and 1.8.x that we resolved via https://github.com/brave/brave-browser/issues/8691. However, this issue has been reported on 1.3.x, 1.4.x and 1.5.x so it’s a different problem.

@NejcZdovc has been debugging the issue a user and mentioned that the CPU dropped from 100% once the ballets object in ledger_state was removed.

Some links to users experiencing this issue:

There’s other reports via https://community.brave.com regarding high CPU usage even after https://github.com/brave/brave-browser/issues/8691 and https://github.com/brave/brave-browser/issues/8779 have been fixed.

Steps to Reproduce

  • N/A (currently we don’t really have any STR as @NejcZdovc still investigating)

Actual result:

77358097-3e974d80-6d17-11ea-88c8-1cf32258a4e0

Expected result:

“Bat Ledger Service” shouldn’t be using 100% of the CPU.

Reproduces how often:

  • N/A (we still don’t know enough information but there’s some users experiencing this)

Brave version (brave://version info)

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes, received reports from 1.5.x
  • Can you reproduce this issue with the beta channel? Most likely also affected
  • Can you reproduce this issue with the dev channel? Most likely also affected
  • Can you reproduce this issue with the nightly channel? Most likely also affected

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? N/A
  • Does the issue resolve itself when disabling Brave Rewards? Most likely would resolve the issue
  • Is the issue reproducible on the latest version of Chrome? N/A

Miscellaneous Information:

CCing @NejcZdovc @mandar-brave @bsclifton @rebron @jsecretan

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:73 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
SephReedcommented, May 13, 2020

Still broken

Screen Shot 2020-05-12 at 10 12 47 PM

Could you guys please add a feature do disable “Bat Ledger Service.” I’d like to have my browser be usable again, and I don’t care about losing BAT features to make that happen.

2reactions
NejcZdovccommented, Mar 27, 2020

@MinisterFister this is not related to db migration. It’s operation that process publisher list. It normally takes 30s to complete. We are working on new mechanism that will solve it

Read more comments on GitHub >

github_iconTop Results From Across the Web

High "Bat Ledger Service" CPU usage - Brave Community
Description of the issue: Brave shows a High CPU usage for the Bat Ledger Service (~99%) How can this issue be reproduced?
Read more >
High CPU usage on machines with Deep Security Agent
CPU usage should eventually go down once unused baselines have been purged. If the CPU usage continues, try disabling the agent and verify...
Read more >
How to Stop Bat ledger service and Bat ads service : r/brave_browser
Most underrated feature of Brave is using nearly 0% CPU usage while idle. When I open Chrome, my PC fans go into overdrive!...
Read more >
BAT and OPS Common Data Elements - TechDocs - Broadcom
Common data elements are named for the measurement descriptive quality that they possess. These data elements may be carried as data elements on...
Read more >
Troubleshooting high CPU on Remedy Servers
x and later versions where ARServer is java based. A High CPU utilization could be due to thread(s) processing a large volume records,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found