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

[BUG] - Memory Leak #2978

Closed
Fell-x27 opened this issue Jul 28, 2021 · 2 comments
Closed

[BUG] - Memory Leak #2978

Fell-x27 opened this issue Jul 28, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Fell-x27
Copy link

Fell-x27 commented Jul 28, 2021

Summary
A node (and dbsync and cardano-wallet) eats more and more memory day per day.
Count of tokens is increasing, so ledgerState is growing too.

After Alonzo release it will become more worse, I guarantee.
It's not a perfect idea to keep in memory the thing which grows every day with no limits. Its a long-distance memory leak as a part of software design.

Its not okay when you have to buy enterprise-level servers to run couple cardano applicarions.

Its not okay when you cannot plan load level.

Its not okay when you have to pay for hardware ten times more than just a year go.

Its not okay when you think how to run apps on different servers with shared by local netfs socket to buy more time between hardware upgrades.

Its not okay when you know that everything written above its not enough, because RAM utilization grows every day.

RAM is not unlimited. And not cheap when we talk about VPS.

You can not ignore this.

Steps to reproduce
Steps to reproduce the behavior:

  1. Run a node over the mainnet
  2. See the "7.5GB" in the htop
  3. Run dbsync
  4. See the "16GB" in the htop
  5. Try to not cry

Expected behavior

  1. Run a node over the mainnet
  2. See the "300M" in the htop
  3. Be happy, enjoy your life
@Fell-x27 Fell-x27 added the bug Something isn't working label Jul 28, 2021
@Xevrac
Copy link

Xevrac commented Aug 31, 2021

Your prediction may be correct. Since upgrading to 1.29.0 mainnet. I've honestly had a breezy 24hrs. Beyond that. I've noticed two issues creep up.

My relay has now consistently increased in Memory usage over time until it caps at 90% and im worried ill suffer from OOM crashes.

My BP has also begun getting stuck at Syncing 100% every couple hours which is behaviour that has NOT ever occurred before.

BP 9.2GB RAM, 2GB SWAP, 2GB CACHE

RELAY 10GB, 1GB SWAP

@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
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants