Need help optimizing/bug fixing 1.20.1 Forge Server

Hello all, I started running a forge server (custom modpack) for some friends around two weeks ago and throughout it's lifetime we've had to deal with semi-frequent crashes due to I assume memory issues, I'd like to ask for help debugging this so we can either eliminate it or lessen it. We're using Forge 1.20.1 Server is hosted using a server provider called Nodecraft java version: eclipse-temurin:17-jdk Xms - 5000 (did have this at 1000 earlier but saw suggestions on reddit to have them be the same ammount) Xmx - 5000 Java Garbage Collector: g1gc Java Flags: -XX:+UseG1GC -Dsun.rmi.dgc.server.gcinterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M We think it may be something to do with world gen as loading new chunks ups memory usage a ton and then peaks at 100%, once at 100% it's only a matter of time before it crashes but I'm unsure which mod specifically is causing issues. There is only around 1-6 of us online at one time usually. Help is very much appreciated.
Solution:
make sure you’re using Aikar’s flags (you can generate proper startup flags here: https://flags.sh )
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Jump to solution
7 Replies
Solution
Zach
Zach2w ago
make sure you’re using Aikar’s flags (you can generate proper startup flags here: https://flags.sh )
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Zach
Zach2w ago
also, a spark report might help nvm i see it atttached
Rat
RatOP2w ago
no worries lol
Zach
Zach2w ago
on my phone atm sorry ab that
Rat
RatOP2w ago
the server provider nodecraft appears to launch the server via a script not a jar. would this cause issues? oops wrong reply, this was ment to reply to flags comment
Zach
Zach2w ago
the script is probably just launching the jar with the startup flags Also, mind if I dm you an unrelated question ? There’s something I’m very curious about
Rat
RatOP2w ago
sure go ahead

Did you find this page helpful?