OOM Crashes on Small Server

I’ve got a server on Nodecraft, 8gb of ram, 40gb hdd space. I get infrequent crashes due to OOM errors. The server has 4 players. Latest version of fabric with lithium, ferritecore, and simple voice chat, and spark. This seems stupidly excessive for 4 players. All of my GC settings are default, and my ram allowances are Nodecraft defaults which is the max allowed so 8gb. I’m assuming I need to both tune the allowed memory for the server itself, as well and the GC settings. Just not sure what the best path forward is.
10 Replies
Admincraft Meta
Thanks for asking your question!
Once you have finished, please close your thread. Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close !close !solved
Requested by thecasualgameaddict#0
QarthO
QarthO2y ago
If the machine only has 8gb, don’t allocate 8gb You’ll won’t some extra overhead to allow the machine to run other things, such as the OS, and background processes/services. It also costs memory to boot up the mc server. For example, if u only have 8gb, try allocating 6.5gb There are aikar flags, I’m pretty sure those work on fabric, but not 100%. Hopefully someone with more knowledge in this can correct me
QarthO
QarthO2y ago
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
MrMcyeet
MrMcyeet2y ago
Using a host with the name "nodecraft", I would assume he's using shared hosting In which case he wont shouldn't need to worry about container/machine overhead
The Casual Game Addict
Which is why I assumed their default of using all of the allocated memory is probably fine. Since they use containerized instances anyway I bumped from a 4g instance to an 8gb instance and the rate of crashes seems roughly the same though which is weird
MrMcyeet
MrMcyeet2y ago
tbh, I would just switch to a more well known and reputable host. EnviroMC, Pebble, bloom and pufferfish are all highly recommended
The Casual Game Addict
I considered going to a straight VPS and managing it that way. All of my personal server infrastructure is in OVH. Dunno. I may give in and switch to a different hosting provider. The MC server is supposed to be the one I don’t want to worry about managing 😂
QarthO
QarthO2y ago
are you able to adjust the java flags?
snowznz.bak
snowznz.bak2y ago
Remove alwayspretouch
MrMcyeet
MrMcyeet2y ago
wont affect

Did you find this page helpful?