Server Crashing
So I’ve got a Fabric 1.20 server running with Lithium, SimpleVC, Ledger and Spark. I’m having random crashes both with and without players online more often with players. No crash reports are created. Just reports of the server running X ticks behind.
The host panel (Nodecraft) shows 90% ram usage with 4 players online, that seems excessive given we’re all within a few thousand blocks of spawn. However the spark health check only shows about 25% ram usage. CPU usage seems to have similar discrepancies.
Specs are 2core 4gb ram 80gb HDD. Server render distance is set to 5 chunks.
Any thoughts/insights are appreciated. I recently switched from a 1.19 spigot server but it had similar weird reportings with the same number of players online and the same specs.
24 Replies
you’re probably running out of memory, and if you’re in linux it will kill the process, but 4 gigs does seem excessive
i wonder if it’s because of 1.20
oh 1.19 also
i’m just illiterate, don’t mind me
I know *nix will kill the process if it hits an OOM. Seems like that should report somewhere in the logs… unfortunately I don’t have access to the underlying server so I can’t check anything in /var etc. I suppose I could maybe enable JMX and point my zabbix server at it… that’s a lot of extra work 😂😂
yeah, i can never really gage how much people know about linux, but if your server ooms it wouldn’t show up in the minecraft logs
@jaegyu
jaegyu.qoi has reached level 2!
Roles Added:
Level 2
oh wow
Yeah. That’s the aggravating thing about not having underlying access to the server. Also probably what I get for being a lazy bum and taking the easy road for server hosting 😂. I deal with servers all day every day. Minecraft is supposed to not be a headache 😂
yeah, i host through aws and honestly, it ain’t that bad
Ec2?
yeah
i’m a masochist
How’s the pricing stack up? I have a love/hate relationship with AWS
depends on your instances
let me recheck specs and pricing
But yeah irregardless 4gb of ram seems like it should be more than enough for the 4 players we have right now. It’s just me and a couple friends
m6a.large (2vCPU, 8GiB) is 0.0864 per hour, or $62 per month, but I only have it online about 30% of the time since I host for like 3 friends
r6a.large (2vCPU, 16 GiB) is 0.1134 per hour, or $81 per month
anyway, yeah I agree
but im not too sure if the changes with the caves and cliffs update eat up that much ram or not
ill open spark profiler and ill see how my server idles with no plugins
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
1.7-2.5 GB
but im idle and not generating a whole lot of terrain
Interesting
i am on spigot
but it shouldn't differ too much
That’s interesting though 2ish gigs on average for one player
yeah, minecraft has gotten heavier since 1.18
i used to be able to run a tiny server off of 512MB lmao
Yeah. I’m so used to what I do for work it’s crazy the specs needed for MC. I do data engineering and system integration. I deal with Linux servers all day every day and they all run like 2-4gig of ram with lots of large datasets moving through them at any time lol.
yeah, minecraft is also single threaded, so having more than a couple cores doesnt provide much benefit for smaller servers
I've also got a Fabric 1.20, with Lithium and SimpleVC. I originally had Ledger on it. 8GB ram, i7, etc. We had constant lag and crashes - with just 3 players on. Once removing Ledger though everything suddenly became fine. So perhaps just an issue with the current version of Ledger?
that was my guess, but I wasnt sure and I didnt want to make any assumptions
That’s an interesting note. The players I have right now are trustworthy so I can probably get by without it. Maybe I’ll try that