error code 137
Running a heavily modded, 8gb 1.20.1 Forge server through Witherhosting, and it crashes very randomly with the exit code 137. Sometimes it will crash when a new person joins, sometimes just randomly when we're not doing anything in specific. Here are the startup arguments I have for it:
java -Xms128M -XX:MaxRAMPercentage=70.0 -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+UseContainerSupport -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 -Dterminal.jline=false -Dterminal.ansi=true $( [[ ! -f unix_args.txt ]] && printf %s "-jar server.jar" || printf %s "@unix_args.txt" )
Here are some Spark profiles:
https://spark.lucko.me/dXbtNQ71xo
https://spark.lucko.me/x85cSTC3AC
https://spark.lucko.me/c15qaZpfQb
https://spark.lucko.me/pagJTnQMTq
https://spark.lucko.me/T62Hhsnn5O
https://spark.lucko.me/zX4mTnRpBn
What is causing this crash and how do I fix it?
java -Xms128M -XX:MaxRAMPercentage=70.0 -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+UseContainerSupport -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 -Dterminal.jline=false -Dterminal.ansi=true $( [[ ! -f unix_args.txt ]] && printf %s "-jar server.jar" || printf %s "@unix_args.txt" )
Here are some Spark profiles:
https://spark.lucko.me/dXbtNQ71xo
https://spark.lucko.me/x85cSTC3AC
https://spark.lucko.me/c15qaZpfQb
https://spark.lucko.me/pagJTnQMTq
https://spark.lucko.me/T62Hhsnn5O
https://spark.lucko.me/zX4mTnRpBn
What is causing this crash and how do I fix it?
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.




