Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Back to Engineering BlogGame Server Engineering
Engineering Team·Published 2026-10-09·7 min read·Technical Review Verified

Project Zomboid Dedicated Server Hosting Architecture: ZGC Heap Tuning, RakNet UDP Streaming & Build 41/42 Ops

project-zomboid game-servers linux jvm
zgc
gaming

Engineering Summary & Direct Answer

Engineering guide to hosting lag-free Project Zomboid (Build 41 & Build 42) servers: Generational ZGC heap math, off-heap RakNet/Bullet native memory headroom, UDP 16261/16262 chunk streaming, and SQLite-safe backups.

Instant 60s deploy · Browser SSH & WebRDP included
5+ Active Players? Switch Free Instant Game Servers (20% Off)Virtual Datacenter Pools ($12–$380/mo)
On this page (6 sections)
  1. Why Project Zomboid Servers Stall at Map Borders (And How JVM Memory Actually Splits)
  2. Sizing Matrix & Heap Allocation Formula
  3. Eliminating GC Freeze Spikes with Generational ZGC
  4. RakNet UDP Ports & Retiring Legacy Per-Slot TCP Myths
  5. Atomic SQLite-Safe World Backups & Workshop Mod Sync
  6. Frequently Asked Questions
  7. How do I fix black walls (unloaded map chunks) when driving fast in Project Zomboid?
  8. Why do Workshop map mods fail to spawn custom towns even when listed in Mods=?
  9. Should I disable Lua checksum verification (DoLuaChecksum=false) on public servers?
  10. How does zombie population culling work on high-player-count Project Zomboid servers?

Why Project Zomboid Servers Stall at Map Borders (And How JVM Memory Actually Splits)

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:

  1. JVM Managed Heap (-Xms / -Xmx): Stores IsoChunk map grids, IsoZombie AI state machines, player inventories, and Lua (Kahlua2) mod tables.
  2. JNI Native C++ Off-Heap Allocations (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.
  3. JVM Metaspace, CodeCache & Thread Stacks (350 – 600 MB): JIT-compiled C2 machine code and per-thread native stacks.
  4. Build 42 Height & Entity Expansion: Build 42 expands vertical world geometry up to 32 stories plus subterranean basements, crafting networks, and persistent animal populations—increasing chunk byte density and SQLite state volume per loaded cell.
  5. Linux Kernel Page Cache & OS Overhead (500 MB – 1 GB): Caching map_*.bin files in kernel RAM so chunk reads do not hit disk on every player movement vector.

Sizing Matrix & Heap Allocation Formula

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)

Eliminating GC Freeze Spikes with Generational ZGC

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.
  • Bounded -Xlog:gc* ring buffer: Writes 100 MB max of rotating GC telemetry so you can verify sub-millisecond pause times without filling disk.

RakNet UDP Ports & Retiring Legacy Per-Slot TCP Myths

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:

  • UDP 16261 (Required): Primary server query, Steam authentication handshake, and session negotiation port.
  • UDP 16262 (Required): Direct peer-to-server RakNet UDP map-chunk and entity state stream.
  • TCP 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.

Atomic SQLite-Safe World Backups & Workshop Mod Sync

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.

Frequently Asked Questions

How do I fix black walls (unloaded map chunks) when driving fast in Project Zomboid?

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.

Why do Workshop map mods fail to spawn custom towns even when listed in 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.

Should I disable Lua checksum verification (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.

How does zombie population culling work on high-player-count Project Zomboid servers?

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.

High-IPC Xeon KVM Game Servers & Free 5+ Player Switching

Switch Paid 5+ Player Communities Free or Launch Instant Dedicated

Self-serve servers for Minecraft, FiveM, Palworld, ARK: Survival Ascended, Project Zomboid, Rust & 30+ titles with reporting, Discord relay, and browser RCON (code WELCOME20 = 20% off). Already running an active 5+ concurrent player community on another paid host? Apply to host with us for free.

5+ Active Players? Switch Free Instant Game Servers (20% Off)

Explore With AI & Cite This Page

Open a grounded prompt in your AI assistant or copy a clean Markdown, HTML, or APA reference link.

Ask ChatGPT Ask Perplexity Ask Claude
Share:HN·Reddit·X·LinkedIn
Newer Article

Dedicated ARK: Survival Ascended Server Hosting Requirements: UE5 Memory Footprint, Tick Budgets & Crossplay Setup

Older Article

FiveM Server Hosting Architecture: Cfx.re OneSync Infinity, MariaDB Sub-Millisecond Tuning & txAdmin Security

Related Diagnostic Tools & Engineering Guides

Validate protocols and subnets directly in your browser or continue reading related architecture notes.

Free Browser Tool

Linux, Windows & Game Server Hardening Checklist

Launch utility
Free Browser Tool

UFW Firewall Rule Generator & Chmod Calculator

Launch utility
Free Browser Tool

Online TCP Port Checker — Ports 443, 22, 25565

Launch utility

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.

On this page

  1. Why Project Zomboid Servers Stall at Map Borders (And How JVM Memory Actually Splits)
  2. Sizing Matrix & Heap Allocation Formula
  3. Eliminating GC Freeze Spikes with Generational ZGC
  4. RakNet UDP Ports & Retiring Legacy Per-Slot TCP Myths
  5. Atomic SQLite-Safe World Backups & Workshop Mod Sync
  6. Frequently Asked Questions
  7. How do I fix black walls (unloaded map chunks) when driving fast in Project Zomboid?
  8. Why do Workshop map mods fail to spawn custom towns even when listed in Mods=?
  9. Should I disable Lua checksum verification (DoLuaChecksum=false) on public servers?
  10. How does zombie population culling work on high-player-count Project Zomboid servers?
Self-Serve Infrastructure

Switch Paid 5+ Player Communities Free or Launch Instant Dedicated

Self-serve servers for Minecraft, FiveM, Palworld, ARK: Survival Ascended, Project Zomboid, Rust & 30+ titles with reporting, Discord relay, and browser RCON (code WELCOME20 = 20% off). Already running an active 5+ concurrent player community on another paid host? Apply to host with us for free.

5+ Active Players? Switch Free Instant Game Servers (20% Off)

Code WELCOME20 · 20% off first order