-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Out of memory in long term runs #1475
Comments
HI! I am having the same issue (I am using the testnet). Did you manage to solve it? Do you see any blocks in the Insight UI? Thanks! |
Are you fully synced? I had an issue in the ~380k block height area where I kept running out of memory. I had to increase the Node.js heap size like this:
|
can confirm that this problem still happens in the latest I have two nodes running completley sperate from each other, started syncning at the same time and been running for the same amount of time. The first one crashed at The crash message on the first one is:
The crash message on the second one is:
I've seen this error before after running the node for a while (about 3 days), and I'm not fully sure if this is due to a memory leak, or weirdly formed transaction on the blockchain. Also note that this node is running on Any thoughts to what could be causing this memory leak? or is this crash expected? |
testnet btc? |
@micahriggan it's |
I think this is probably related to 32 MB blocks. I've seen really high memory usage from that. My guess would be from https://github.com/bitpay/bitcore/blob/master/packages/bitcore-node/src/models/transaction.ts#L142 These promise.all's are probably too large for 32MB |
@micahriggan I see, are there any ways to fix this? Or should I just increase the default memory limit? I would love to have bitcore running out of the box without having to modify the launch memory limit. |
We've been messing with this recently. I think the best solution is to use |
@micahriggan Hey, so recently the
Do you think this could be fixed with a code change? do you have any pointers where I could dig in to look? I tried increasing the heap size (memory) and that didn't fix it still. |
Hi,
Not sure if it's a duplicated issue with bitpay/bitcore-node#412, but it happens on
bitcore@5.0.0-beta.8
, any ideas?The text was updated successfully, but these errors were encountered: