question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RAM Leakage after continuous run

See original GitHub issue

Description

The Lavalink Process Does not appear to clean up garbage it collects after some time after the start, I’m not sure why and it doesn’t appear to be normal.

Version info

Client used: NodeJS Erela.JS v2.3.3

Output of java --version:

openjdk 17 2021-09-14
OpenJDK Runtime Environment (build 17+35-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 17+35-Ubuntu-120.04, mixed mode, sharing)

Output of java -jar Lavalink.jar --version:

Version:        3.3.2.5
Build:          1222
Build time:     11.04.2021 08:07:27 UTC
Branch          master
Commit:         7b914f2
Commit time:    09.04.2021 17:14:27 UTC
JVM:            17
Lavaplayer      1.3.76

After a Restart of Lavalink: image After ~7 Hours Runtime and 1 Player Playing: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
freyacodescommented, Jan 23, 2022

Whether there’s a memory leak or just poor configuration on my part and other people’s there is something I’m missing here.

It appears to just be you. This issue appears to have been opened because of a misunderstanding about how the JVM manages memory.

0reactions
winnipeg21commented, Jan 23, 2022

Do you use any other flags?

Nope just the xms and xmx as mentioned. I have tried using java -Xms512M -Xmx512M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -jar Lavalink.jar which performed a bit better.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I check for memory leaks, and what should I do to stop ...
This is known as a memory leak, and it happens when software fails to manage the available RAM correctly. With the computer functioning ......
Read more >
How to Fix A Windows Memory Leak - Lifewire
Press Windows key+R, enter "resmon," then select OK.
Read more >
Seems like there's a memory leak after the expansion update.
Running the game at 60 fps, i only notice stutters and drops after 13 hours of continuous play. Again. With memory leaks, the...
Read more >
Fixing memory leaks in web applications | Read the Tea Leaves
But it's extremely unlikely to leak memory on the client side, since the browser will clear the memory every time you navigate between...
Read more >
How To Detect and Prevent Memory Leaks | Scout APM Blog
A memory leak is the gradual loss of available computer memory when a program (an application or part of the operating system) repeatedly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found