A production Project Zomboid dedicated server requires 2 vCPUs and 4 GB of RAM for 4–8 vanilla survivors, 4 vCPUs and 8–12 GB of ECC RAM for 10–24 players running Steam Workshop mods, and 8 vCPUs with 16–24 GB of ECC RAM for 32+ player communities across Build 41 and Build 42. Because zombie.network.GameServer combines a 64-bit Java Virtual Machine (JVM) world simulation with native C++ JNI libraries for RakNet UDP transport and Bullet vehicle physics, eliminating "black wall" map-chunk loading stalls at 90 mph requires balancing Generational ZGC heap limits against off-heap native memory headroom and synchronous SQLite disk writes.
The single most destructive configuration mistake in Project Zomboid hosting is setting -Xmx equal to 100% of the virtual machine's physical RAM—for example, setting -Xmx8G on an 8 GB VPS. Within hours of players driving into Muldraugh or Louisville, the Linux kernel OOM killer (oom-kill) terminates the ProjectZomboid64 process abruptly without saving the world.
Why does an 8 GB heap exceed an 8 GB server? Because total process Resident Set Size (RSS) is the sum of five distinct memory regions:
-Xms / -Xmx): Stores IsoChunk map grids, IsoZombie AI state machines, player inventories, and Lua (Kahlua2) mod tables.800 MB – 1.8 GB): RakNet per-peer UDP reliability/retransmission queues, Bullet 3D rigid-body vehicle collision meshes, and zlib map-chunk compression buffers live completely outside -Xmx.350 – 600 MB): JIT-compiled C2 machine code and per-thread native stacks.500 MB – 1 GB): Caching map_*.bin files in kernel RAM so chunk reads do not hit disk on every player movement vector.Use the 70%–75% Heap Ceiling Rule: always leave 2 GB to 4 GB of unallocated VM RAM above -Xmx for JNI RakNet/Bullet native memory and Linux page cache:
| Community Profile | Players | vCPU Cores | Total VM RAM | Safe JVM -Xms / -Xmx |
Persistent Storage | Recommended ServersAreUp Plan |
|---|---|---|---|---|---|---|
| Small Friends Co-Op (Vanilla or <15 QoL mods) | 1 – 8 | 2 vCPU | 4 GB ECC RAM | -Xms2560M -Xmx2560M |
80 GB ZFS | Linux Basic ($10/mo at /linux or /games) |
| Modded Survival / RP (25–90 Workshop mods, vehicle packs) | 8 – 24 | 4 vCPU | 8 GB ECC RAM | -Xms5500M -Xmx5500M |
160 GB ZFS | Linux Standard ($18/mo, 4 vCPU / 8 GB ECC RAM) |
| High-Pop Louisville / Build 42 (120+ mods, custom map cells) | 24 – 50+ | 8 vCPU | 16 GB ECC RAM | -Xms11G -Xmx11G |
320 GB ZFS | Linux Pro ($28/mo, 8 vCPU / 16 GB ECC RAM) |
| Heavy Multi-Server Community (Main + Wipe/Event + Discord Bot) | 40 – 80 | 12 vCPU | 32 GB ECC RAM | -Xms20G -Xmx20G |
640 GB ZFS | Linux Business ($38/mo, 12 vCPU / 32 GB ECC RAM) |
Under older G1GC defaults, cleaning up millions of short-lived Lua table allocations created during zombie line-of-sight and pathfinding ticks triggered Stop-The-World (STW) collection pauses lasting 150 ms to 600 ms. During a 400 ms STW pause, vehicle physics extrapolate blindly on the client while the server freezes—resulting in high-speed crashes into streetlights or phantom zombie bites when state reconciles.
Modern Project Zomboid servers running on Java 21+ should enforce Generational ZGC (-XX:+UseZGC -XX:+ZGenerational) inside ProjectZomboid64.json. ZGC performs concurrent marking, relocation, and reference processing using colored pointers and load barriers, keeping GC pause durations under 1.0 millisecond regardless of whether your heap is 4 GB or 20 GB:
{
"mainClass": "zombie/network/GameServer",
"classpath": [
"java/.",
"java/istack-commons-runtime.jar",
"java/jassimp.jar",
"java/javacord-2.0.17-shaded.jar",
"java/javax.activation-api.jar",
"java/jaxb-api.jar",
"java/jaxb-runtime.jar",
"java/lwjgl.jar",
"java/lwjgl-natives-linux.jar",
"java/lwjgl-glfw.jar",
"java/lwjgl-glfw-natives-linux.jar",
"java/lwjgl-jemalloc.jar",
"java/lwjgl-jemalloc-natives-linux.jar",
"java/lwjgl-opengl.jar",
"java/lwjgl-opengl-natives-linux.jar",
"java/lwjgl_util.jar",
"java/sqlite-jdbc-3.27.2.1.jar",
"java/trove-3.0.3.jar",
"java/uncommons-maths-1.2.3.jar",
"java/commons-compress-1.18.jar"
],
"vmArgs": [
"-Djava.awt.headless=true",
"-Dzomboid.steam=1",
"-Dzomboid.znetlog=1",
"-Djava.library.path=linux64/:natives/",
"-XX:+UseZGC",
"-XX:+ZGenerational",
"-Xms5500M",
"-Xmx5500M",
"-XX:+AlwaysPreTouch",
"-XX:+DisableExplicitGC",
"-Xlog:gc*:file=logs/zgc.log:time,uptime,level,tags:filecount=5,filesize=20M"
]
}
Notice three deliberate production flags in vmArgs:
-Xms5500M -Xmx5500M + -XX:+AlwaysPreTouch: Zeroes and faults every physical memory page into the guest page table at server boot rather than stalling chunk streaming mid-chase to ask the OS kernel for fresh anonymous pages.-XX:+DisableExplicitGC: Prevents poorly written Workshop mods from invoking System.gc() inside Lua/Java hooks.-Xlog:gc* ring buffer: Writes 100 MB max of rotating GC telemetry so you can verify sub-millisecond pause times without filling disk.Outdated forum guides still instruct admins to open sequential TCP port ranges (16262–16326, one per player). That architecture was removed years ago when The Indie Stone migrated map streaming onto Steamworks + RakNet UDP multiplexing:
16261 (Required): Primary server query, Steam authentication handshake, and session negotiation port.16262 (Required): Direct peer-to-server RakNet UDP map-chunk and entity state stream.27015 (Optional — Keep Private!): Source-protocol RCON administration socket. Keep TCP 27015 disabled on the public internet in the Network Builder and invoke RCON locally over 127.0.0.1 from cron/systemd scripts or via your browser SSH console.Project Zomboid persists map tiles as thousands of individual map_X_Y.bin files alongside live SQLite databases (players.db and vehicles.db) inside ~/Zomboid/Saves/Multiplayer/servertest/. Running a naive tar -czf cron job while players are driving copies vehicles.db mid-write without flushing in-memory chunk buffers—producing corrupted restore archives where cars vanish or characters reset!
Always trigger an RCON save barrier before archiving world state, and list both numeric WorkshopItems and exact Mods IDs cleanly in servertest.ini:
#!/usr/bin/env bash
# /usr/local/bin/pz-atomic-backup.sh — Flush chunk & SQLite state via RCON before archiving
set -euo pipefail
SAVE_DIR="/home/pzuser/Zomboid/Saves/Multiplayer/servertest"
BACKUP_DIR="/var/backups/zomboid"
STAMP="$(date -u +%Y%m%dT%H%M%SZ)"
mkdir -p "$BACKUP_DIR"
# 1. Flush in-memory IsoChunks and commit SQLite transactions cleanly via loopback RCON
/usr/local/bin/rcon-cli -a 127.0.0.1:27015 -p "$PZ_RCON_PASSWORD" "save"
sleep 5
# 2. Compress consistent world directory & prune local archives older than 7 days
tar --use-compress-program="zstd -T2 -3" -cf "$BACKUP_DIR/pz-world-$STAMP.tar.zst" -C "$SAVE_DIR" .
find "$BACKUP_DIR" -name 'pz-world-*.tar.zst' -mtime +7 -delete
When Steam Workshop creators push an update to a mod listed in WorkshopItems= inside ~/Zomboid/Server/servertest.ini, running clients update immediately and receive Workshop item version is different than server's errors until the server restarts. Scheduling a clean daily 05:00 UTC systemctl restart zomboid runs SteamCMD, pulls fresh Workshop delta bundles over ServersAreUp's multi-gigabit symmetrical fiber uplink, and keeps mod checksums aligned automatically.
Black chunk borders happen when either (1) JVM garbage collection pauses block the chunk-streamer thread, (2) -Xmx is set so high that Linux swaps pages to disk, or (3) SpeedLimit allows modded sports cars to cross cells faster than RakNet serializes tiles. Enable -XX:+UseZGC -XX:+ZGenerational, leave at least 2.5 GB of OS RAM above -Xmx, set SpeedLimit=70.0 in servertest.ini, and host on enterprise ZFS RAID-Z3 persistent storage at /games or /linux.
Mods=?Custom map mods in servertest.ini require three keys, and load order matters: WorkshopItems= (numeric Steam ID), Mods= (mod identifier), and Map=CustomTownName;Muldraugh, KY—where custom map folders must appear before Muldraugh, KY so their lot headers override vanilla wilderness cells rather than being overwritten by the base map.
DoLuaChecksum=false) on public servers?Keep DoLuaChecksum=true on any public or semi-public server. Setting DoLuaChecksum=false allows any client to inject modified client-side Lua scripts (item spawners, god-mode toggles, map griefing). Only toggle it off temporarily when debugging local mod-pack file mismatches on a passworded dev server.
Inside ZombiePopulationManager, active pathfinding and animation state is simulated only within loaded reality bubbles around connected players, governed by ZombieUpdateMaxHighPriority and ZombieUpdateDelta in servertest.ini. If 30 survivors scatter into 30 separate towns simultaneously instead of traveling in squads, active cell count multiplies linearly—so large public communities should pair an 8 vCPU / 16 GB Linux Pro ($28/mo) instance with sensible PopMultiplier caps to keep main-loop tick durations steady during helicopter events.
Explore With AI & Cite This Page
Open a grounded prompt in your AI assistant or copy a clean Markdown, HTML, or APA reference link.
Validate protocols and subnets directly in your browser or continue reading related architecture notes.
Linux, Windows & Game Server Hardening Checklist
UFW Firewall Rule Generator & Chmod Calculator
Online TCP Port Checker — Ports 443, 22, 25565
Linux Gaming & Game Server Distributions in 2026: sched_ext BPF, /dev/ntsync, Futex2 & Kernel Tuning
Deep dive into the 2026 Linux gaming and dedicated server kernel stack: sched_ext eBPF CPU schedulers, mainline /dev/ntsync Windows primitive ioctls, Mesa RADV/NVK Vulkan pipelines, and safe UDP sysctl math.
Dedicated ARK: Survival Ascended Server Hosting Requirements: UE5 Memory Footprint, Tick Budgets & Crossplay Setup
Systems engineering guide to hosting ARK: Survival Ascended (UE5): 16–48 GB RAM working-set math, Chaos physics tick budgets, Proton vs Windows Server 2025 trade-offs, and EOS crossplay ports.
FiveM Server Hosting Architecture: Cfx.re OneSync Infinity, MariaDB Sub-Millisecond Tuning & txAdmin Security
Reference architecture for 64–250+ slot FiveM RP servers (Qbox, QBCore, ESX): FXServer svMain 50 ms frame budgets, Unix-socket MariaDB 11 tuning for oxmysql, asset streaming limits, and txAdmin lockdown.
How to Install Wine on Linux (Ubuntu 24.04 LTS): DEB822 WineHQ Keyring, Headless Xvfb Game Servers & Proton-GE
Install WineHQ on Ubuntu 24.04 LTS with i386 multiarch and DEB822 keyrings, isolate WINEPREFIX directories, run headless Windows game servers (Enshrouded, Soulmask, V Rising) via Xvfb, or choose Proton-GE vs Windows Server 2025.