Title: Bitcoind gets extremely slow after running for a while Post by: WindListener on November 10, 2015, 01:08:13 PM Even commands like bitcoin-cli getbalance or getinfo take minutes to execute!
It's running on a 1GB ram VPS, with 4GB of swap. It's using most of the ram and 1GB of swap. It's a HDD vps, but nothing else is running on it but bitcoind. So should be enough right? Yet after running for several days it's becoming so slow I have to restart it. That fixes it for a while. It's with the latest version for Ubuntu 14.04, all updated. Title: Re: Bitcoind gets extremely slow after running for a while Post by: Nexious on November 11, 2015, 07:06:39 AM More RAM would most likely help, are you running a full node? Also check the mempool size when it starts to run slow, as with some of the 'attacks' lately the mempool can grow huge and cause some slow downs.
Title: Re: Bitcoind gets extremely slow after running for a while Post by: unamis76 on November 11, 2015, 12:59:27 PM My node with 4GB RAM struggles and crashed during the stress test so your node with 1GB is definitely struggling and swapping a lot... :)
Title: Re: Bitcoind gets extremely slow after running for a while Post by: shorena on November 12, 2015, 07:38:46 AM My node with 4GB RAM struggles and crashed during the stress test so your node with 1GB is definitely struggling and swapping a lot... :) Have a VPS with 2 GB and can confirm this. This is the memory usage from yesterday. As you can see the node is almost constantly at or over 1GB. Code: | transactions |memory usage @OP You might want to reduce the impact core has on memory. Easiest way is to modify the bitcoin.conf, mainly the following settings Code: disablewallet=1 # no wallet Title: Re: Bitcoind gets extremely slow after running for a while Post by: WindListener on November 12, 2015, 08:20:24 PM I guess it's the RAM then.
But is it realistic that the swap use is making it THAT slow? yeah the swap is on HDD but still? how do I check the mempool size? shorena, thanks for the suggestions! I'll play with them tomorrow. The node uses a wallet and it's a big one, so I'll skip the first setting but that reminds, can a huge wallet be a problem for the slowness too? Title: Re: Bitcoind gets extremely slow after running for a while Post by: shorena on November 12, 2015, 10:42:03 PM I guess it's the RAM then. But is it realistic that the swap use is making it THAT slow? yeah the swap is on HDD but still? how do I check the mempool size? getmempoolinfo[1] shorena, thanks for the suggestions! I'll play with them tomorrow. The node uses a wallet and it's a big one, so I'll skip the first setting but that reminds, can a huge wallet be a problem for the slowness too? Probably, but Im not sure how a wallet influences the speed. The machine I use my wallet on has no speed issues. [1] https://bitcoin.org/en/developer-reference#getmempoolinfo Title: Re: Bitcoind gets extremely slow after running for a while Post by: vayvanne on December 10, 2015, 10:55:13 PM my guess is this is DDoS related issue.
I see the same on machine with 16GB RAM. there may be also the memory leak as I see constantly increasing mempoolsize. most effect on this has -limitfreerelay=<n> |