Out of memory dumping ledger-state of the node

Hi there,

When I try to dump the ledger-state of the node, cardano-cli is killed:

Out of memory: Killed process <process_id> (cardano-cli) total-vm:kB, anon-rss:kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:kB oom_score_adj:0

It seems the swap file is not large enough, but that has not been a problem up till now.

Has anyone experienced the same thing and should I increase the swap file to resolve this, or is there a better solution.

You would ideally want more RAM, unless it is a one-off ledger-state dump.
Yes - it is a memory expensive task, and bigger the chain gets, larger the size of ledger-dump will likely be (as more folks register pools, keys over time). The fact that it reached OOM killer means you are not sized enough to run that command.

it is also mentioned here: Questions from new SPO

Problem solved by increasing the swap space

1 Like