Yet another post on here, this time talking about runaway ram usage. (Again)
Alright, so. I'm using Aikar flags, without AlwaysPretouch, and my RAM usage is spiking up to the limit I've given it without fail, reaching the limit in minutes while there's only three or four people on the server.
Using Pterodactyl Panel 1.11.3
Minecraft 1.20.1
Fabric 0.14.21
Modlist: https://moddermore.net/list/UhSXGi0RkWmH
Most recent log: https://mclo.gs/AffvfQ9
Max RAM: 16GB
Server RAM Limit: 10GB
SWAP Allocation: 2GB
Xmx6G, Xms6G
Arguments:
java -Xms6G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar server.jar
11 Replies
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 lumievi#0
pterodactyl will show reserved memory not actual usage
Yes, I know that. It still seems to skyrocket before eventually just crashing to OOM
Should I just stop using it at this point?
The rate it's increasing at is crazy and I can't pinpoint an exact cause.
u can use a spark allocation report to check for memory leaks
which is what it sounds like it might possibly be
Alright, I'll do that. I've not exactly ran a Spark allocation report before, though
What should I do exactly? I've just done a heap summary
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Fabric
Requested by lumievi#0
server is using 1.1 gb
So what's making Ptero push so much?
I've ran way heavier packs than this without Ptero just fine
I might just ditch the panel altogether if it's this big of an issue
-Xms6G -Xmx6G
You're telling the heap size to begin at 6G -- or something like that
set your xms down to 128m and see if that helps
should mention this isn't a pterodactyl issue, but would be a docker issue at worstI see
So many of the flag recommendations have that very high, I was confused
I'll make sure to set that to something lower later on
So I did that on my now non-docker server and Minecraft is still using an impressive amount of RAM... I wasn't expecting a pack this light to hit nearly 11GB allocated while a client uses around 3GB
I've not seen one of my small servers use this much
It feels like a memory leak, but I still don't know how to find it