This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
OutOfMemory when trying to traverse the state trie of the latest Ethereum mainnet block #36
Comments
What versions of |
This is the depndencies block from package.json
Installed with |
Ah, thanks, yes already had the suspicion that the levelup version required by the repo is too old, we actually have to update this, this is working now when I manually update dependencies. |
Did you update to the latest? I can try if it works with the 70gb trie from the mainnet. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have the JavaScript code below, which is traversing the state trie from geth's leveldb for Ethereum mainnet Block #5200035.
After some time with high cpu usage and having reserved about 6Gb RAM, it crashes with
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
.It looks like the library is having trouble with the size of the mainnet database (~70Gb after a fast sync). A simple key/value lookup with
db.get
works fine.Any idea how to approach this problem?
The text was updated successfully, but these errors were encountered: