lnd: lnd crashes with out of memory
Background
Right after startup, lnd is quite responsive, but after a while lncli commands like getinfo take longer and longer (up to several minutes). After some more time lnd crashes with an out of memory error. Short before it used more than 1.2GB of ram.
Your environment
- Version 0.4.2-beta commit=7cf5ebe2650b6798182e10be198c7ffc1f1d6e19
- Linux 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux
- bitcoind 0.16.0
- Raspbian GNU/Linux 9, Raspberry Pi 3, 1GB ram
- 49 active channels
Steps to reproduce
Just start the LND and wait.
Expected behaviour
The lncli commands are expected to return the requested values immediately. The lnd is expected to not crash.
Actual behaviour
Right after startup, lnd is quite responsive, but after a while lncli commands like getinfo take longer and longer (up to several minutes). After some more time lnd crashes with an out of memory error. Short before it used more than 1.2GB of ram. See attached logfile lnd-crash.txt.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (9 by maintainers)
Closing this now as now that the new query sync features have been merged and a few goroutine leaks fixed across the codebase, the initial burst in memory usage upon initial connect is gone (if you connect to “modern” peers), and also the chain notifier block epoch goroutines will no longer leak.