Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
high memory usage when connected to bitcoind undergoing initial block download #1218
I just installed lnd with bitcoind on mainnet. After bitcoind finished reindexing (due to txindex) , the RAM usage of lnd increased steadily to more than 30 GByte (on a system with 128 GByte RAM).
The last few log messages (trace):
Steps to reproduce
Start bitcoind with reindex and txindex=1, start lnd, wait
Less memory consumption. I also notice other log messages now (gossip?) that did not appear before the forced restart.
High memory consumption, steadily growing.
So you're attempting to sync
I don't know what
In the normal case it doesn't. I have an
To re-word my comment above: one should allow their
If you're able to reproduce this, if you run with the
changed the title from
high memory usage when connected to bitcoind undergoing initial block download
May 9, 2018
Here's a description showing the same bug: https://medium.com/andreas-tries-blockchain/bitcoin-lightning-network-1-can-i-compile-and-run-a-node-cd3138c68c15
Yes the issue is that during IDB, due to the bounded queue of RPC requests, bitcoind can't keep up with out requests. As a result, it drops them and we currently don't retry for those assuming that bitcoind is "trusted". A temp work around would be increasing the size of the RPC work queue.