Recent Discussions
Need help optimizing/bug fixing 1.20.1 Forge Server
Open in DiscordUnanswered
Black Caiman posted this in #questions
30 messages
0 views
Black CaimanOP
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.
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.txt
DownloadR9MWxct0Nv.sparkprofile
Asian black bear
I’m not very familiar with Nodecraft but typically most Minecraft hosts won’t let you directly change your RAM usage from startup flags alone. How much RAM do you pay for with them? I think the issue might just boil down to underspec, meaning you probably need more RAM for the mods being ran. The typical recommendation is 6-8GB for a server like this one (Forge 1.20.1 with these mods I’d want 7GB minimum)
also I’d just see how much better performance is with Aikar’s flags: https://flags.sh
They are the best startup flags for running Minecraft servers
@Asian black bear I’m not very familiar with Nodecraft but typically most Minecraft hosts won’t let you directly change your RAM usage from startup flags alone. How much RAM do you pay for with them? I think the issue might just boil down to underspec, meaning you probably need more RAM for the mods being ran. The typical recommendation is 6-8GB for a server like this one (Forge 1.20.1 with these mods I’d want 7GB minimum)
Black CaimanOP
Yeah currently I'm paying for 6GB but I'm aware of an issue where if you allocate all your ram then server crashes, I plan to upgrade the server in the following weeks to add a bit more but wanted to make sure it wasn't something else causing the issues.
@Black Caiman Yeah currently I'm paying for 6GB but I'm aware of an issue where if you allocate all your ram then server crashes, I plan to upgrade the server in the following weeks to add a bit more but wanted to make sure it wasn't something else causing the issues.
Asian black bear
This is just my initial inspection but I could be totally wrong tbf
I’d use the full 6GB you’re paying for, with Aikar’s, I think it would make a difference, at least a bit
@Asian black bear also I’d just see how much better performance is with Aikar’s flags: https://flags.sh
Black CaimanOP
just did this, the nodecraft server panel looks like it's using more memory now but on spark it looks like it's running better.
Asian black bear
💪🏼💪🏼💪🏼
Black CaimanOP
going to try pregenerating chunks with chunky to see if the server crashes after these changes.
Asian black bear
My good friend @AeonRemnant (sorry for the ping bro) plays a lot of modded mc. I’m not very familiar with the exact plugins being used but perhaps something between your spark profile or mods list will stand out to Aeon (whenever he gets an opportunity
)

@Black Caiman Your flags aren't using Aikar flags so matched Xmx and Xms isn't recommended iirc, switch to Aikar flags. As for the pack I notice you're using Create which is notiorious for demolishing server perf, try pregenning the world and making sure nothing super scuffed is happening with Create, I've had it crash servers before.
Asian black bear
I didn’t notice Create at first but with that being said Aikar’s flags + 7GB minimum is really sort of the minimum
Generally I wouldn't attempt running this without throwing 8 gigs at it. Create is an absurdly heavy mod.
Black CaimanOP
Yeah I'll upgrade the server to get more ram then. Thank you.
Asian black bear
Jesus @Black Caiman I just saw Nodecraft pricing
Yeah replace Nodecraft.
Asian black bear
Not sure where you’re based out of but they’re charging entirely too much
Lots of providers that're good, check out #service-providers, we verify them as good.
Loading...
Loading...