Recent Discussions

Server using 17GB ram with only ~5 players

Unanswered
Multiflora rose seed chalcid posted this in #questions
Messages63 messages
Views0 views
Multiflora rose seed chalcidOP
Self-hosting newbie - pretty much title. Running a server on an Ubuntu mini pc with 32 gb ram. Followed the basic Minecraft server hosting steps here https://help.minecraft.net/hc/en-us/articles/360058525452-How-to-Setup-a-Minecraft-Java-Edition-Server

When the server is running with only ~5 players, the ram usage is reporting >17GB in system monitor, and then typically crashes within a few hours.

Any tips?

Edit: set the render distance to 32 chunks, allocated 24 GB ram when starting the server with:

“java -Xmx24G -Xms24G -jar server.jar nogui”
Couple of common mistakes and misconceptions here
1. Java applications like a Minecraft server aren't like other applications. More RAM usage doesn't mean performance degradation. You give it RAM, it's gonna use what you give it to cache things and handle data. Unused allocated RAM is wasted. Seeing the number rise is good. (usually, there are caveats to this)
2. RAM usage on the server is related to loaded chunks. The higher the server view distance, the more RAM you'll need to keep those chunks in memory. And since view distance is a radius, not a diameter, going from a view distance of 10 to a distance of 15 is almost a 4x increase in loaded chunks.
3. To know what the crash is, we need logs. Please pull your server log from a time when a crash occurs and upload to https://mclo.gs
4. You're using unoptimized startup flags. You should use the ones from https://flags.sh instead.
@Multiflora rose seed chalcid
Chum salmon
Also, you need to use something like spark to see true ram usage, not just what it has reserved
And isn't 24 gb getting into the range where GC starts to hurt performance?
@Chum salmon And isn't 24 gb getting into the range where GC starts to hurt performance?
Yeah, depending CPU. Hence my "(usually, there are caveats to this)". It depends on CPU. Older CPU? We could already be in that range by 12-16 GB. Newer? Yeah, in the 20s.
Chum salmon
Ah yea, guess it makes sense that a better CPU would result in more ram able to be used before GC became an issue.

Anyways, Beancurd as repo said, we need logs to help (and a spark report would be good too)
Multiflora rose seed chalcidOP
Thanks a bunch guys, already looking into what’s been said
Multiflora rose seed chalcidOP
:areyoustupid:
That's a segfault.
That means it's something going wrong in the space between like, operating system and the actual JVM build.
Like, native code.
So uhhhhh
bad. lol
ANYWAY, let's gather some info! :Thinkgun:
Fresh install of Ubuntu?
Multiflora rose seed chalcidOP
How fresh we talkin
you tell me. I'm asking.
Multiflora rose seed chalcidOP
Late October would’ve been the install
we up to date on security patches?
Multiflora rose seed chalcidOP
Probably not, I’ve done very little with the system beyond just trying to start this server
(No one reading this thread take advantage please)
fair enough. how many times has this PARTICULAR type of crash happened? have you confirmed that it's always a SIGSEGV and not something more Minecrafty when it crashes, or have you not been checking the logs after a crash?
Loading...