brave-browser: "Bat Ledger Service" causing 100% CPU usage
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:
- https://github.com/brave/brave-browser/issues/8779#issuecomment-602736059
- https://twitter.com/bvaivoda/status/1241240604257873921
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:

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)
- This has been reported on
1.3.x,1.4.xand the latest1.5.x. Assuming it’s an issue on every channel and separate from https://github.com/brave/brave-browser/issues/8691.
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 73 (20 by maintainers)
Still broken
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.
@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
1.10 finally fixed this for me, I can now use my laptop on my lap!
@SephReed before you do that, please try with version 1.10 that will be released beginning of next week. I have a feeling that 1.10 will fix it for you. If that will not work, you can migrate to new profile like @bsclifton said. Thank you for you patients
Not a part of the team but if you don’t care about your BAT you can try this: Make sure the browser is closed. Go in Default folder and rename the publisher_info_db file to publisher_info_db_backup. Rename also the ads_service folder to ads_service_backup and rewards_service folder to rewards_service_backup. Then reopening the browser should have Brave rewards disabled (afaik).
To recover your BAT, before doing whatever I wrote above, you can go to brave://rewards-internals/ , copy the info and send it to the team through PM to see if they can do anything to recover your funds to another address (not sure what they do tbh, but might be worth a try).
Your issues will be fixed when this https://github.com/brave/brave-core/pull/5568 is pushed to release. No ETA afaik
@bsclifton that works ! I switched back the old profile backup to the configuration folder of brave and after 3-4 minutes the CPU dropped to less than 20%
Thank you guys for the software, the support and reactivity !
I had this issue in Brave 1.5.123 and previous versions. After installing latest 1.7.90 the problem seems to be resolved.
OK. Now one hour use, it seems that 1.7.9(Windows 10 Pro 1909) it fix my problem. Thanks
@NejcZdovc @emerick When we can expect working official version? I really cant use this browser…