Memory leak
Hello, I have a huge problem on a survival server. After 1-2 hours of active gameplay, a massive memory leak appears... Literally, 1GB of RAM disappears every second. I have tried both paper and purpur. With paper, the server starts to lag, while purpur uses up every GB until it hits zero, then it dumps the memory and starts all over again... Can someone tell me what might be the problem? I can provide a Spark profiler https://spark.lucko.me/ZpcSgcjv9C The server is on version 1.20.6, the latest paper. This has been happening since the server's first start, and I haven't added any plugins. I initially had 12GB, then tried with 24GB, but the result is the same... Thanks in advance...
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
5 Replies
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❓INFO
You are using
1.20.6
. Latest currently is 1.21.1
.❌ misc.redstone-implementation
Set this to "ALTERNATE_CURRENT" in config/paper-world-defaults.yml.
❌ mobs.villager.spawn-iron-golem.radius
Increase this in purpur.yml.
Recommended: 5.
Requested by foofufu_
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by foofufu_#0
a profiler wouldnt help find a memory leak
do a heap dump and stick it in https://eclipse.dev/mat/
Eclipse Memory Analyzer Open Source Project | The Eclipse Foundation
The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 415 open source projects, including runtimes, tools and frameworks.
/spark heapdump
- it does take a bit of time to make the dump…
make sure you also give the profiler a lot of ram in the .ini file of eclipse