-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Syncing an Archive node, memory leak #5804
Comments
Could you please still post the exact flags? |
@ggwpez I went down version by version to .23 and behavior the same. Now I went back to 0.9.16 and this happens: The new .16 version is the green line, behaves like a champ! could even run on 4GB memory. this is my command line:
There is also a persistent log message in recent versions that I don't see in the .16 that perhaps could be involved: Perhaps it has something to do... |
@ggwpez we use the standard RockDB |
@rvalle Unfortunately I can't reproduce your issue. I synchronized over 5M blocks (while you said you can't even hit 1M) and the memory usage never hit more than 2GB. Here's what I did:
So I'm afraid we need more details and/or better step-by-step from you as to how to reproduce it. (A Dockerfile which reproduces the issue would be ideal.) |
@koute, now I am getting conflicting results too. In my case the memory overflowed also with the version I believe the issue may be caused by I still don't know what the root cause of the overflow is, but looks like it is not the polkadot node version. Sorry for that. What I am trying to achieve is a node that can safely keep the blocks in history_depth + some margin. |
So, we can close this @rvalle? |
@bkchr yes, sure, I thought I already had. |
Hi,
I am setting up a new Polkadot Archive node to feed https://polkawatch.app
We have been running safely with 8GB of ram for almost a year. Our production environment was rolled out around version 0.9.16.
With the same configuration and v0.9.26 memory seems to grow exponentially during sync and does not make it to 1M blocks before crashing out of memory.
The captured memory usage curve and I wondered if it may be due to a memory leak that affects syncing only.
In green the resident memory of a new node being added to the cluster.
In yellow is another node, already in sync.
Our typical running flags are:
--out-peers 2 --in-peers 2 --max-parallel-downloads 1
with pruning archive and polkadot chain.We have also tried any of the following to see if there was any improve in memory usage:
What could be going on? Is there new memory requirements? since which version?
The text was updated successfully, but these errors were encountered: