© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
AdmincraftA
Admincraft•11mo ago•
12 replies
Rat

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.
modlist.txt2.33KB
R9MWxct0Nv.sparkprofile18.38MB
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.
flags.sh
Jump to solution
AdmincraftJoin
10,704Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

help with optimizing/leakings? forge 1.20.1
AdmincraftAAdmincraft / questions
15mo ago
Optimization 1.20.1 forge server
AdmincraftAAdmincraft / questions
3mo ago
Forge 1.20.1 server crashing
AdmincraftAAdmincraft / questions
7mo ago
Need help with optimizing purpur server 1.21.1
AdmincraftAAdmincraft / questions
16mo ago