<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I just noticed that several of my running bitcoind processes were using around 3+ GB of RAM, even though the mempool itself seemed to be under control.<div><br></div><div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">XXXX@prime:~/bin$ ./bitcoin-cli getmempoolinfo</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">{</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; "size" : 1896,</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; "bytes" : 37341328</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">}</div></div><div><br></div><div>[total memory usage not shown -- I restarted bitcoind as soon as I noticed, and didn't copy it down from top]</div><div><br></div><div>37 MB mempool, &gt;3 GB RAM usage. Normally, when there aren't a lot of unconfirmed txns floating around the network, memory usage is around 600 MB, so this is quite unusual.</div><div><br></div><div>After restarting the process and letting it run for a few minutes, I get:</div><div><br></div><div><div style="margin: 0px; font-family: 'Andale Mono'; background-color: rgb(0, 165, 0);">&nbsp;&nbsp;PID USER&nbsp; &nbsp; &nbsp; PRI&nbsp; NI&nbsp; VIRT &nbsp; RES &nbsp; SHR S CPU% <span style="background-color: #00a6b2">MEM% </span>&nbsp; TIME+&nbsp; Command</div></div><div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">[###] [XXXX] &nbsp; &nbsp;&nbsp;20 &nbsp; 0 <span style="color: #34bbc7">1402M&nbsp; 317M 49</span>836 S&nbsp; 1.0&nbsp; 8.2&nbsp; 0:41.71 ./bitcoind -daemon</div></div><div><br></div><div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">XXXX@prime:~/bin$ ./bitcoin-cli getmempoolinfo</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">{</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; "size" : 1072,</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; "bytes" : 670000</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">}</div></div><div><br></div><div>0.67 MB mempool, 317 MB RAM usage. Much more reasonable.</div><div><br></div><div><br></div><div>Here's another node I'm running that has been online longer, before restarting:</div><div><br></div><div><div style="margin: 0px; font-family: 'Andale Mono'; background-color: rgb(0, 165, 0);">&nbsp;&nbsp;PID USER&nbsp; &nbsp; &nbsp; PRI&nbsp; NI&nbsp; VIRT &nbsp; RES &nbsp; SHR S CPU% <span style="background-color: #00a6b2">MEM% </span>&nbsp; TIME+&nbsp; Command</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">[###]&nbsp;<span style="color: #000000">[XXXX]&nbsp;&nbsp; &nbsp;</span> 20 &nbsp; 0 <span style="color: #34bbc7">4961M 3540M 11</span>080 S&nbsp; 2.8 45.3&nbsp;<span style="color: #c33720"> 8h</span>20:11 bin/bitcoind -daemon</div></div><div><br></div><div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">XXXX@feather:~$ bin/bitcoin-cli getmempoolinfo</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">{</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; "size" : 3045,</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; "bytes" : 39656126</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">}</div></div><div><br></div><div>39 MB mempool, 3540 MB total memory usage. After restarting bitcoind, I see:</div><div><br></div><div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">[XXXX]@feather:~$ bin/bitcoin-cli stop</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">Bitcoin server stopping</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">[XXXX]@feather:~$ bin/bitcoind -daemon</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">Bitcoin server starting</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">[XXXX]@feather:~$ sleep 10; bin/bitcoin-cli getmempoolinfo</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">{</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; "size" : 39,</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; "bytes" : 47037</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">}</div></div><div><br></div><div><br></div><div><div style="margin: 0px; font-family: 'Andale Mono'; background-color: rgb(0, 165, 0);">&nbsp;&nbsp;PID USER&nbsp; &nbsp; &nbsp; PRI&nbsp; NI&nbsp; VIRT &nbsp; RES &nbsp; SHR S CPU% <span style="background-color: #00a6b2">MEM% </span>&nbsp; TIME+&nbsp; Command</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">[###] [XXXX] &nbsp; &nbsp;&nbsp;20 &nbsp; 0 <span style="color: rgb(52, 187, 199);">1640M&nbsp; 247M 67</span>960 S&nbsp; 0.0&nbsp; 3.2&nbsp; 0:05.17 bin/bitcoind -daemon</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Does anybody have any guesses where we might be leaking memory, or what is using the additional 2.4 GB? I've been using&nbsp;<span style="background-color: rgb(0, 0, 0); color: rgb(41, 249, 20); font-family: 'Andale Mono';">minrelaytxfee=0.00003</span>&nbsp;or similar on my nodes. Maybe there's a leak in the minrelaytxfee code path? Has anyone else seen something similar?</div><div><br></div><div>This issue appears to happen both with Bitcoin Core 0.10.1 and with Bitcoin XT 0.11B.</div></body></html>