Dedicated Server RAM Fix - Lag spikes at 16 players

Forum Rewards
Every new forum post gives the author +10 coins. You can also reward great posts from other users.
Min donation: 10 coins Author gets 50%
i have 16gb ram on my linux box but hytale only seems to use like 4gb then starts swapping. anyone got a fix for the -Xmx flags?? i'm tryna run a factions server but it's unplayable when more than 10 ppl r in different zones.
u need to match -Xms and -Xmx to 12G and leave some for the OS. also hytale is super heavy on view distance. if ur players r exploring different zones, it'll eat ur cpu alive. set MaxViewRadius to 12 chunks in the config and it should stabilize.
bro just use a docker container with memory limits, works better for linux and stops the swapping issue mostly. also check ur start script for -Xms vs -Xmx
Check your swap settings on Linux. If the OS starts swapping before the RAM is actually full, you'll get those massive spikes.
Check your garbage collection flags in the start script. If the JVM is pausing too long, that's where your spikes are coming from.
try checking if you have a memory leak from any custom assets. sometimes the high-res textures don't clear properly from cache.

Post a Reply

Formatting: [b]bold[/b], [i]italic[/i], [u]underline[/u], [code]code[/code], [quote]quote[/quote]