BitShares Forum

Main => General Discussion => Topic started by: TreantBG on May 07, 2018, 07:23:50 pm

Title: Why full node consumes so much ram and will it grow in the future?
Post by: TreantBG on May 07, 2018, 07:23:50 pm
Hello,

My question is simple: Why full node consumes 16gb+ram?
Does it load the whole blockchain in the ram and will it demand more ram in the future?

 i just started a project and i needed to interact with the blockchain API
My development pc is solid it has 20gb of ram but when i start the witness node it syncs about the 25 milion blocks and get slower and slower
I did turn my pc off and it took more time to resync the blocks
It's impossible for me to develop on the machine while running the node.

so i guess i have to buy a server pc and i will
but how to communicate with the RPC interface that runs on localhost?
Title: Re: Why full node consumes so much ram and will it grow in the future?
Post by: sschiessl on May 07, 2018, 08:26:37 pm
What settings are you using?

If you disable all history and adjust the settings accordingly you can get it reduced to less than 4 GB
Title: Re: Why full node consumes so much ram and will it grow in the future?
Post by: abit on May 07, 2018, 10:58:50 pm
Hello,

My question is simple: Why full node consumes 16gb+ram?
Does it load the whole blockchain in the ram and will it demand more ram in the future?

 i just started a project and i needed to interact with the blockchain API
My development pc is solid it has 20gb of ram but when i start the witness node it syncs about the 25 milion blocks and get slower and slower
I did turn my pc off and it took more time to resync the blocks
It's impossible for me to develop on the machine while running the node.

so i guess i have to buy a server pc and i will
but how to communicate with the RPC interface that runs on localhost?
https://github.com/bitshares/bitshares-core/wiki/Memory-Reduction-for-Nodes
Title: Re: Why full node consumes so much ram and will it grow in the future?
Post by: TreantBG on May 08, 2018, 09:47:20 am
ok thanks i run it with TRACK_ACCOUNTS with only one (mine) account

And it syncs again from block 0...


Another question when the node downloads the blocks and save them on the disk is the information there FULL and just some options are loaded into the ram?
So if i decide to include another account to TRACK_ACCOUNTS options and i restart the node - do i need to download again the blockchain or its needed only to upload the new information to the ram?

and what is that error about?
" Multiple limit match problem (issue 338) occurred at block #22743248"
Title: Re: Why full node consumes so much ram and will it grow in the future?
Post by: pc on May 08, 2018, 07:54:00 pm
Another question when the node downloads the blocks and save them on the disk is the information there FULL and just some options are loaded into the ram?
So if i decide to include another account to TRACK_ACCOUNTS options and i restart the node - do i need to download again the blockchain or its needed only to upload the new information to the ram?

The on-disk information is complete. To make use of that when adding another account to track (for example), you must start the node with the --replay-blockchain option.

and what is that error about?
" Multiple limit match problem (issue 338) occurred at block #22743248"

https://github.com/bitshares/bitshares-core/issues/338
Just ignore it.