Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stake-snapshot crashes cardano-node #2717

Closed
seriru opened this issue May 19, 2021 · 3 comments · Fixed by #4179 or #4754
Closed

stake-snapshot crashes cardano-node #2717

seriru opened this issue May 19, 2021 · 3 comments · Fixed by #4179 or #4754

Comments

@seriru
Copy link

seriru commented May 19, 2021

When I run docker exec -e CARDANO_NODE_SOCKET_PATH=/cardano/node.sock cardano-node cardano-cli query stake-snapshot --stake-pool-id 6a37c771eb33798edea1cc2b95759fc30a7765bbfc63668bdc92c633 --mainnet it sometimes crashes the cardano-node process on my 8GB RAM machines. This is not the case with a machine running 16GB RAM.

Could you advise which +RTS flags I can use to minimise the memory used for this operation, please?

Best Regards,

Richard

@woltere
Copy link

woltere commented Oct 16, 2021

I have seen the same happen on a machine with 16GB of RAM. The cardano-node get OOM kill. The reason being that the cardano-cli query stake-snapshot seems to require several GBs of RAM.

Running the cli with max 3GB of Heap can't run to completion

cardano-cli +RTS -M3G -RTS  query stake-snapshot --stake-pool-id xxxxxxx --mainnet

cardano-cli: Heap exhausted;
cardano-cli: Current maximum heap size is 3221225472 bytes (3072 MB).
cardano-cli: Use `+RTS -M<size>' to increase it.

@Jimbo4350
Copy link
Contributor

Closing this. If this is still relevant please reopen.

@Jimbo4350
Copy link
Contributor

Closing this. If this is still relevant please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants