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
ProGamingDk
ProGamingDk2y ago
what are ur startup flags
Area51Guard
Area51GuardOP2y ago
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.
ProGamingDk
ProGamingDk2y ago
are u using a host?
Area51Guard
Area51GuardOP2y ago
Yes i am
ProGamingDk
ProGamingDk2y ago
how much ram are u paying for
Area51Guard
Area51GuardOP2y ago
8 gb
ProGamingDk
ProGamingDk2y ago
remove alwayspretouch and set xmx to 6500M
Area51Guard
Area51GuardOP2y ago
Ok and should i delete or change the one about garbage collector
QarthO
QarthO2y ago
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
ProGamingDk
ProGamingDk2y ago
do u get a crash report after or does it just shutdown and u loose like 3-5 minutes of data nothing else
Area51Guard
Area51GuardOP2y ago
No it just says server cant keep op Up
ProGamingDk
ProGamingDk2y ago
cant keep up aint a crash message
Area51Guard
Area51GuardOP2y ago
Then theres nothing
ProGamingDk
ProGamingDk2y ago
that usually means a OOM crash which means this should help or fix it
Area51Guard
Area51GuardOP2y ago
Server just restarts after reaching 8 gb Thanks for help i will try changing it and see if it works

Did you find this page helpful?