Hi there, I run Bitcoin-qt 0.8.1 on Ubuntu 64bit with 1.5GB memory. A few hours after starting and synchronizing with network, my system start to respond very slow (running Chrome and Firefox). Looking at task manager, I see that Bitcoin-qt consumes great part of memory and almost infinite amount of allocated virtual memory, see picture below.
Just after starting and synchronizing bitcoin-qt, memory usage seems to be more normal, see picture below.
I think this high VM usage and slow system response has caused bitcoin-qt to crash occasionally (without warning or notice). The jump in VM usage seems to happen when reaching ~40 active connections. I tried earlier versions bitcoin-qt 0.8.0 and 0.7.1 and they have same issue. Would it help if I limit the number of connections in bitcoin.conf?
Bitcoin-qt on Ubuntu 64 takes 16777216 TB virtual memory, slows system #2485
issue SimonVrouwe opened this issue on April 7, 2013-
SimonVrouwe commented at 7:59 PM on April 7, 2013: none
-
SimonVrouwe commented at 2:46 PM on April 10, 2013: none
Ok this worked for me, limit number of connections to 30 keeps memory use below 400MB and VM at 1.9GB. Done this by setting [maxconnections=30] in bitcoin.conf
-
sipa commented at 12:46 AM on April 13, 2013: member
git head (to be 0.8.2) has some memory usage reductions and other related improvements. Nothing specifically reducing virtual memory, but could you retry with current code?
-
Zenitur commented at 10:39 PM on April 13, 2013: none
Confirm. Gentoo x86_64, bitcoind 0.8.1, huge memory using. 1 Gb!
Added: sipa, I tried and post a new issue.
-
SimonVrouwe commented at 9:04 AM on April 14, 2013: none
I lowered to maxconnection=25 and on average mem usage approx. 400MB, not crashed so far but one time saw VM usage still at 16..TB limit. Sorry I'm not that technical, how can I test with current code (git head 0.8.2)? Do I need to compile something for that? Don't know if I'm able.
-
Zenitur commented at 11:30 AM on April 14, 2013: none
It's easy. Open Synaptic package manager, open Repository properties, select "Source", Apply, update repositories.
Open Terminal.
mkdir bitcoind-source cd bitcoind-source sudo apt-get build-dep bitcoind git clone https://github.com/bitcoin/bitcoin.git cd bit[TAB] cd src make -f makefile.unix bitcoind ./bitcoind
Open other terminal and change working directory:
cd ~/bitcoind-source/bit[TAB]/src ./bitcoind getinfo
-
SimonVrouwe commented at 6:18 AM on April 15, 2013: none
Thanks for the instructions, now running version 80199, connections=84, memory usage <400MB, VM usage 1.2GB and running great (so far), see picture below:
Would it make a difference if I run the GUI?
-
SimonVrouwe commented at 6:23 AM on April 15, 2013: none
Here's the screenshot:

-
laanwj commented at 3:18 PM on November 11, 2013: member
Closing this; bitcoind still requires a lot of memory, but some database parameters were tweaked it shouldn't be this bad anymore
- laanwj closed this on Nov 11, 2013
- MarcoFalke locked this on Sep 8, 2021