crazy ram usage
so about 2 weeks ago my server which in still not public started using 100% ram and crashing. i have 8 gb of ram and when the server restarts its only using 3.5GB and after about 40 min with 3 players it suddenly starts using more and more ram for no reason and it never goes down until server crashes. i have no idea what the problem is and i even loaded all the chunks and deleted my latest plugins. can someone please help.
15 Replies
what are ur startup flags
java -Xms1024M -Xmx7100M -Dterminal.jline=false -Dterminal.ansi=true --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -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 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar --nogui
Aikar's Thoughts
JVM Tuning: Optimized G1GC for Minecraft - Aikar's Thoughts
Learn more about my In depth study on tuning the G1GC garbage collector to be optimized for how Minecraft servers run, and keep low pause efficient usage.
are u using a host?
Yes i am
how much ram are u paying for
8 gb
remove alwayspretouch and set xmx to 6500M
Ok and should i delete or change the one about garbage collector
I had a similar issue on one of my servers, there was a mob farm that was uncontrolled and overtime built up and would crash after a bit
What kind of server jar u using?
I’d also recommend getting/using spark and getting a report right before it crashes
Flags look okay, I’d def try the recommend changes , if it’s still the issue, most likely a plugin or mod causing a memory leak
do u get a crash report after or does it just shutdown and u loose like 3-5 minutes of data
nothing else
No it just says server cant keep op
Up
cant keep up aint a crash message
Then theres nothing
that usually means a OOM crash
which means this should help or fix it
Server just restarts after reaching 8 gb
Thanks for help i will try changing it and see if it works