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?
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.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
63 Replies
Admincraft Meta
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
Admincraft Meta
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
Ethonodon
EthonodonOP4w ago
and this is the modlist
No description
Snow Kit
Snow Kit4w ago
are there any recent files in the crash logs folder
Ethonodon
EthonodonOP4w ago
there is no crash logs folder
Snow Kit
Snow Kit4w ago
also, instead of using -XX:MaxRAMPercentage=70.0, I'd recommend just doing -Xmx6G instead for your startup flags
Ethonodon
EthonodonOP4w ago
this is whats in the logs folder
No description
Ethonodon
EthonodonOP4w ago
for some reason it does let me change the arguments even if I copy paste those identical arguments, it won't let me apply them I've been trying to contact witherhosting staff about it all day
Snow Kit
Snow Kit4w ago
what node are you on?
Ethonodon
EthonodonOP4w ago
wdym?
Snow Kit
Snow Kit4w ago
in the panel it should show what node you're on (somewhere), it'll be something like NYC-5B
Ethonodon
EthonodonOP4w ago
NYC-3P why do you ask?
Snow Kit
Snow Kit4w ago
was just making sure the node wasn't like running at 100% cpu usage realistically though, you may just have a mod that has a memory leak
Ethonodon
EthonodonOP4w ago
how would I find that mod?
Snow Kit
Snow Kit4w ago
want to try starting a profiler with /spark profiler start --alloc
Ethonodon
EthonodonOP4w ago
what would that do?
Snow Kit
Snow Kit4w ago
- /spark profiler start --alloc to start the profiler and profile memory allocations (memory pressure) instead of CPU usage.
from https://spark.lucko.me/docs/Command-Usage#-profiler
Ethonodon
EthonodonOP4w ago
how long should I let that run?
Snow Kit
Snow Kit4w ago
just like a minute any less and spark somtimes complains and won't let you upload the profile
Ethonodon
EthonodonOP4w ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
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
Ethonodon
EthonodonOP4w ago
server crashed just a couple seconds after it finished
Snow Kit
Snow Kit4w ago
you may also want to install FerriteCore and MemoryLeakFixer
CurseForge
FerriteCore ((Neo)Forge)
Memory usage optimizations 100.5M Downloads | Mods
Modrinth
Memory Leak Fix - Minecraft Mod
A mod that fixes random memory leaks for both the client and server
Ethonodon
EthonodonOP4w ago
do those need to be installed clientside too?
Snow Kit
Snow Kit4w ago
nope
Ethonodon
EthonodonOP4w ago
alright do the spark profiles have any useful info?
Snow Kit
Snow Kit4w ago
they probably should be
Skullians
Skullians4w ago
it’s a good idea to put them on the client though
Snow Kit
Snow Kit4w ago
but they don't need to be
Ethonodon
EthonodonOP4w ago
alright
Snow Kit
Snow Kit4w ago
nothing really stood out, but it should be a good reference point to see if memory pressure went down (it was really just entities in the world)
Ethonodon
EthonodonOP4w ago
wdym
Skullians
Skullians4w ago
entities were > half it was about 56%
Ethonodon
EthonodonOP4w ago
like ram usage?
Snow Kit
Snow Kit4w ago
so memory pressure just refers to how much memory was allocated by a function not nessicarily persistant, but because of how Java GC works, if a function allocates too much memory, then you'll be able to observe GC pauses or high CPU usage caused by GC and if no memory can be freed, then the server will crash
Snow Kit
Snow Kit4w ago
in one of the earlier spark reports you sent for example, your server had ~1 second lag spikes every 30 seconds because of GC
No description
Ethonodon
EthonodonOP4w ago
do we know what might've been causing that though?
Snow Kit
Snow Kit4w ago
after you install those two mods, if you want to make a new spark profiler with --alloc again, we can check if it's improved
Ethonodon
EthonodonOP4w ago
alright will the statistics it shows change significantly depending on the amount of players online?
Snow Kit
Snow Kit4w ago
the amount of chunks loaded/entities loaded will change it, yeah chunks/entities cause memory usage, not necessarily the players themselves
Ethonodon
EthonodonOP4w ago
yeah it's been crashing a lot when a fourth or fifth person joins but then also sometimes it will jsut crash randomly ah yeah just crashed again when a third player tried to join
Ethonodon
EthonodonOP4w ago
here's the new spark profile: https://spark.lucko.me/ZdGjkW4XEi
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
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
Snow Kit
Snow Kit4w ago
and was that with or without ferritecore/memoryleakfixer installed?
Ethonodon
EthonodonOP4w ago
yes and I told all the players to install it on their clients as well and I did too
Snow Kit
Snow Kit4w ago
Spark doesn't show them as being installed
Ethonodon
EthonodonOP4w ago
that's weird yeah they're installed alright idk why it says that oh wait thats the wrong one
Ethonodon
EthonodonOP4w ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
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
Ethonodon
EthonodonOP4w ago
sorry mb I think this is it at least
Snow Kit
Snow Kit4w ago
just realized too :KEK: yeah, if you can, I'd possibly see if they could raise the -Xmx flag to like 7G because you're running out of memory on the heap
Ethonodon
EthonodonOP4w ago
I dont have an xmx flag I dont think
Ethonodon
EthonodonOP4w ago
these are my flags
No description
Snow Kit
Snow Kit4w ago
you'd remove the -XX:MaxRAMPercentage and replace it with -Xmx
Ethonodon
EthonodonOP4w ago
alright ill try that and take another profile with that too?
Snow Kit
Snow Kit4w ago
if you want to, realistically at this point, I'm moreso curious about the GC times and not really the memory pressure you could also try lowering the view distance/simulation distance, but that's a subpar solution
Ethonodon
EthonodonOP4w ago
yeah that's not a good solution what is GC time again?
Snow Kit
Snow Kit4w ago
just the red numbers here
No description
Ethonodon
EthonodonOP4w ago
so what spark command should I use?
Snow Kit
Snow Kit4w ago
just a normal profile would be fine
Ethonodon
EthonodonOP4w ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
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
Ethonodon
EthonodonOP4w ago
crashed again when someone tried to join at this point would nuke the server, add a small chunk of mods, test for an hour, if it doesnt crash add a few more, test for an hour, rinse and repeat be a good way to try and find out what's causing issues?

Did you find this page helpful?