Memory leaks?



Summary:

The email thread discusses the issue of multi-GB memory usage in Bitcoin nodes. The problem is suspected to be related to CreateNewBlock() and getblocktemplate, although the exact cause is unclear. One user reported 35 GB of RSS usage. The mempool growth can be mitigated by setting `-mintxfee`. Valgrind did not reveal anything super promising, but was suggested as a possible next step. One user ran valgrind while sending gbt RPCs. Another user reported that valgrind found 200 kB to 600 kB of pblocktemplate, which is declared as a static pointer. Two bitcoind processes running on the same machine were also compared, with one serving getblocktemplate every 5-6 seconds and the other not. The serving node had a higher RSS than the non-serving node.


Updated on: 2023-06-11T00:09:10.858087+00:00