Server crashing with code 137
Running a heavily modded, 8gb 1.20.1 Forge server through Witherhosting, and it crashes after playing on it for 5-10 minutes with the exit code 137. 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" )
27 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 ethonodon#0
That's just OOM
It's trying to use more than 8GB
You also didn't set an Xmx in those args
does -XX:MaxRAMPercentage=70.0 not try to prevent OOM though?
It does but removing them all is more than a test
can you make a spark report and send here?
what is a spark report?
!spark
Spark Profiler
Spark can be used to see why your server or client is lagging.
Users can share a spark report via
/spark profiler start --timeout 300
which creates a report after 5 minutes. The spark report is useful in debugging why your server is lagging, so ideally you should always provide one while asking for support.
Download | Website | DocsAdmincraft Canned Responses
lets us see what flags the server actually tried to use, accurate memory usageetc
there's no spark version for 1.20.1
there is
CurseForge
spark
spark is a performance profiler for Minecraft clients, servers and proxies.
102.3M Downloads | Mods
ah it just wasnt listed on the website
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
is this it?
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by ethonodon
... why do you have distant horizons on the server
because I want distant horizons on the server
is that a bad thing?
that's not how DH works
DH is a client mod
no, there's a serverside version, which is what I'm using
oh
well that makes sense then
is there any useful info in the spark report?
i don't think we ever did my suggestion...
where?
oh I see
shoutout to this thread for making me find out there’s a DH Bukkit plugin to make the server send LOD info to clients
yeah the serverside version is pretty awesome
anyways is there anything in the sparky report that tells anything useful?
😐