Bitcoin-qt on Ubuntu 64 takes 16777216 TB virtual memory, slows system #2485

issue SimonVrouwe opened this issue on April 7, 2013
  1. SimonVrouwe commented at 7:59 PM on April 7, 2013: none

    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. bitcoin-qt after start and synchronized 2013-04-06 21:18 Just after starting and synchronizing bitcoin-qt, memory usage seems to be more normal, see picture below. bitcoin-qt after start and synchronized 2013-04-06 20:18 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?

  2. 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

  3. 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?

  4. 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.

  5. 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.

  6. 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

  7. 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: Uploading bitcoind v0.8.199.png . . . Would it make a difference if I run the GUI?

  8. SimonVrouwe commented at 6:23 AM on April 15, 2013: none

    Here's the screenshot: bitcoind v0 8 199

  9. 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

  10. laanwj closed this on Nov 11, 2013

  11. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me