I am running two nodes simultaneously. I began having issues with one an updated the BTC Core to 29.0 and removed other apps (mempool, LN, etc.). Now my tow nodes are just running BTC Core 28.1.0 and Core 29.0. The 28.1.0 node uses about ~1.35GB of memory: 915MB for BTC Core and 427MB for System. 29.0 is using about ~6GB with 5.7GB for Core and 375 MB for system. Anyone else have these similar differences? Does anyone see a longer term issue?
The amount of memory it uses is defined in the bitcoin.conf file. In the newer version they just increased the amount of ram it uses in the ,conf file since most people that run it have 8+ GB of ram.
Thanks for the info!
Which option in the bitcoin.conf file defines the amount of memory used?
The big ones are dbcache and and maximum mempool size, you can change them in settings - for Bitcoin Node
My Bitcoin Core settings are as follows:
maxmempool=300
dbcache=429
I used the same settings in v28. After upgrading to v29, memory usage increased significantly.
Also experiencing this. Anyone solve this yet? Accepted solution doesn’t work for me as suggested by the last comment
Well the utxo held into memory are the cause as the database of them has gotten significantly huge. Which is a problem for people running older computers.
looking at the system, we can add a swapfile as there is not one on the OS side via ssh
I have a few programs on my umbrel, plus a miner on the OS side, so when I look at it
I need to add a swap file.
The drawback of docker is the programs you install are always running and taking up memory.
I have 16GB of ram so I am going to make a 32GB swapfile by:
sudo fallocate -l 32G /swapfile
but I get an error that I have no disk space. Lets check the space free since this install took away the disk space from /
ok, looks like all the disk space has been reserved for /data which is the mount point for docker.
let’s try that again but put it in /data
sudo fallocate -l 32G /data/swapfile
sudo chmod 600 /data/swapfile
sudo mkswap /data/swapfile
sudo swapon /data/swapfile
echo ' /data/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
now let’s see what we have:
Thank you for noticing we were running out of ram. I would have figured out when I did run out and it would crash my Umbrel install. One would think they would thought to do this when they created the install of Umbel.
To be extra clear: although common utilities will report that Bitcoin Core after 29.0 uses more memory it is not so and it will not lead to OOM.
It seems to be fine.