Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOM killer, inconsistent db state, memory limit #540

Closed
j1warren opened this issue Dec 22, 2020 · 1 comment
Closed

OOM killer, inconsistent db state, memory limit #540

j1warren opened this issue Dec 22, 2020 · 1 comment

Comments

@j1warren
Copy link

Hello,
Started blockbook after 2 days off and it was killed by oom killer and seems like now I have to redo the whole DB.
internalState: database is in inconsistent state and cannot be used

Is it syncing in bulk mode even after the initial sync is done and it starts just after a day of two off and 200-300 block behind?

Also, is it possible to implement either in blockbook itself or in blockbook + systemd (MemoryMax=20G) to make it gracefully restart after it consumes a specified memory limit?
Currently it uses from 10 GB slowly growing over time to 24 GB+ for bitcoin. I'd like it to automatically restart after it reaches 20 GB, for example.

@martinboehm
Copy link
Contributor

I would recommend to disable the bulk mode using -workers=1 parameter, see for example #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants