AdmincraftA
Admincraft13mo ago
17 replies
Ethonodon

perplexing memory issues

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 -Xmx7G -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

We spent all of last night meticulously adding the mods one by one to try and see if a particular mod might have a memory leak, but we found absolutely no rhyme or reason to what was causing the issues. No matter the arrangements of mods, we still had OOM crashes.

Modlist is attached. Server is using Java 21, and Forge version is 47.3.0.

What could be causing this issue? I've been trying all day and night to get Witherhosting to migrate my server to a new node because I figure at this point, that's the only thing I can think of that might be causing my server's problems. Any help would be greatly appreciated!
image.png
Was this page helpful?