monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
8.77k stars 3.07k forks source link

monerod memory usage on busy public node #9294

Open Jayd603 opened 3 months ago

Jayd603 commented 3 months ago

I noticed that the OS was running out of memory and using swap with 32GB RAM , so I doubled it to 64GB , same thing?! Is monerod designed to use all memory possible or is there a memory leak?

also getting errors in logs... 2024-04-16 03:00:47.092 W ge_frombytes_vartime failed at 457 2024-04-16 03:16:27.954 E Failed to parse transaction from blob

Possibly unrelated though, it does seem like the blockchain is up to date and the performance seems fine when connecting and updating from the node.

selsta commented 3 months ago

The tx pool was at 100MB recently, that is 300x larger than usual. This resulted in performance issues for public nodes. Is high memory usage always an issue or only the last couple days?

2024-04-16 03:00:47.092 W ge_frombytes_vartime failed at 457 2024-04-16 03:16:27.954 E Failed to parse transaction from blob

These means someone is submitting transactions that fail verification. It happens occasionally and is unrelated.

Jayd603 commented 3 months ago

That makes a lot of sense.. memory usage seems a lot better now. The node seemed to perform just fine even through the 100MB flood despite high memory usage, I was just worried about a memory leak. This was the busiest I have witnessed, 2-3 cores pegged and max memory.