PZ Server JVM Tuner

Generate optimized Java startup flags for your Project Zomboid dedicated server. Uses Java 21 (ZGC) settings — the runtime required by Build 42.

Server Configuration

16 GB

Total RAM installed on the server machine

16 players

Recommended Xmx

8G

OS Reserve

8G

Java Version

21

Included JVM Flags

-XX:+UseZGC -XX:+ZGenerational

Uses ZGC with generational mode — the best garbage collector for Java 21. Reduces GC pause times that cause lag spikes on busy servers.

-XX:+AlwaysPreTouch

Commits all heap RAM upfront at startup rather than on demand. Prevents OS memory allocation delays during play.

-XX:+PerfDisableSharedMem

Disables JVM performance counters written to shared memory. Reduces unnecessary disk I/O.

-XX:+DisableExplicitGC

Prevents mods from calling System.gc() directly, which could cause unexpected GC pauses mid-game.

-XX:+UseStringDeduplication

Deduplicates identical string objects in the heap. Especially helpful with heavy mod loads that repeat many string constants.

Find the -Xmx line in ~/Zomboid/server/StartServer64.sh and replace with:

-Xmx8g -Xms8g -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch -XX:+PerfDisableSharedMem -XX:+DisableExplicitGC -XX:+UseStringDeduplication
Private Project Zomboid hosting

Run your own Project Zomboid server.

Rent a private Project Zomboid server on real hardware — full control-panel access, your mods, your configs, your rules. It's your server; run it your way.

Rent a Project Zomboid server Real hardware · Full control panel · 98% SLA

Don't want to run it yourself? Our managed services & consulting team will set it up and keep it running for you — game servers, Windows, Linux, and cloud, from 10+ years of MSP work.