Skip to content

Bitcore Node is quite Memory greedy #324

@wzrdtales

Description

@wzrdtales

Hey together,

I'm currently evaluating bitcore node to build transaction services on it. Beside that it was a good moment to setup a bockexplorer with your awesome insight on it. Thanks for this already

I'm running the node now for some time and I see that after some days the node is exploding in terms of RAM usage.

ps aux

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
bt2       6225 36.5 47.9 14957252 11849604 ?   Ssl  Okt13 2235:36 bitcore-node 

You see it is using 11GiB of RAM actually I needed to cap the memory usage for this process to 12GiB as the other processes do need RAM themselves too.

My question now is, is this behavior intended? I do not see such a memory usage using a normal bitcoind node with indexing enabled. It is not a problem if the process uses 12GiB of RAM, but as soon as this is the case, bitcore node gets incredibly slow. It literally is just unavailable on a new block for about 20 to 40 seconds, it maxes out a single cpu core while working on this block, I normally expect that it should also use all available cores. This is the reason I actually need to restart the node from time to time.

If there is some known issue with this, please let me know, couldn't find anything. And also if you need more information please just ask.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions