Evidence ledger
How we measure
GameServerBench Method

Guide

Project Zomboid server lag after Build 42

Project Zomboid Build 42 server lag has several possible causes, and the published advice points to checking them in this order: whether it is the server at all, whether your build is current, whether the Java heap is too small, and then mods, world build-up and zombie population. The Indie Stone's patch notes list multiplayer lag and memory-leak fixes through August and September 2026, so the first fix may be an update. Connect Hosting, which sells Project Zomboid plans, says most Build 42 lag is a heap that is too small. No source read for this page shows data for that claim, and none publishes how much any fix reduces lag.

Is it the client, the network or the Project Zomboid server?

Start by asking who is affected and since when, because each layer has a different fix. This split follows Connect Hosting's lag article (dated 28 Aug 2026 on the page, which also describes events in October 2026), a seller's triage with no data behind it, and the fan-run pzfans troubleshooting guide for Build 42.19.

What players reportMost likely layerHow to confirm
One player stutters, and stutters in single player tooThat player's PCLower lighting, water and 3D corpse settings, then retest the same route
One player rubber-bands while everyone else is fineThat player's connection or installRead their ping in the Players and Users List tabs, then check their branch and mods
Players far from the server's region all feel delayDistanceCompare ping by region. Connect Hosting says no setting removes it
Everyone freezes at the same momentServerWork through the checks below
Zombies or players stutter-step for everyone, worse in busy areasServer or an old buildCheck the build, then population
Players stuck loading chunks or failing to fetch server infoOften the heap, per Connect HostingSearch the console for OutOfMemoryError

The ping column arrived in The Indie Stone's 42.20.0 notes ("Added ping values for each player in the Players and Users List tabs"). Failure to connect is a separate problem from lag: the community-written PZwiki lists UDP 16261 and 16262 as the default ports.

What should you check first on a Build 42 server?

Check the free and certain things before anything that costs money or changes the world. The order is this page's synthesis of its sources.

  1. Build. Put the server and every client on the same branch and version, then update.
  2. Console. Search console.txt for java.lang.OutOfMemoryError: Java heap space. pzfans gives the path as ~/Zomboid/console.txt on Linux and %UserProfile%\Zomboid\console.txt on Windows.
  3. Heap. Find the -Xmx your launch method really reads (see the fix list below).
  4. Memory over time. Log the process every minute through a full session and a restart. Confirm the process name with ps first, because it varies by launch method.
while true; do
  echo "$(date -Is),$(ps -o rss= -p "$(pgrep -f ProjectZomboid | head -n1)")" >> pz-rss-kb.csv
  sleep 60
done
  1. Pauses. On Java 9 or later, add -Xlog:gc*:file=gc.log to the launch options and see whether pauses line up with the freezes.
  2. Timing. Note when lag happens, who is online, where they are and what changed since the last good day.

Change one thing, then log again.

Has a Build 42 patch already fixed your lag?

It may have, because several hotfixes target server lag directly. The wording below is The Indie Stone's, from the Steam news feed read on 8 Nov 2026. None of these notes gives a before-and-after figure, and "should fix" is the studio's expectation.

Build (date posted)Server-relevant item
42.20.0 Stable (29 Jul 2026)"Fixed all players lagging/stuttering when a player builds or interacts with gates"
42.20.1 hotfix (5 Aug 2026)"Fixed an issue that caused significant performance problems with chunk unloading on multiplayer servers", which "should fix most of the bugs players were getting on high-pop servers due to server lag"; "Fixed a memory leak that could lead to performance degradation and crashes over time"
42.20.3 hotfix (17 Aug 2026)"Addressed multiple causes of a memory leak that could lead to performance degradation and crashes over time"
42.21 (Unstable notes 23 Sep 2026; Stable followed 28 Sep)"Fixed issues when driving with high ping (~150+)"; "Fixed a Z-level desync issue"
42.22 Pre-Release (27 Oct 2026)"improved the performance of server backup creation"

On 27 Oct the default Stable branch was 42.21, with 42.22 on a new Pre-Release branch replacing Unstable; hotfixes followed on 4 and 6 Nov. The post invites server admins to opt in for testing. This page suggests keeping a live world on Stable unless you have a backup and every player can move with you.

Hotfix posts ask players to reproduce bugs "on a fresh save with no mods installed", so a fresh no-mod save is a cheap test before blaming hardware. The 42.20.1 and 42.20.3 posts ask anyone still hitting out-of-memory errors in a new save to file logs and a debug profiler video. Posts on 9 and 24 Jul 2026 promise a "Build 42 Support Update that focuses on optimization" during the rest of 2026.

What does each kind of lag look like?

Memory, load and scheduled work look alike to players and separate in a log. Most rows are Connect Hosting's descriptions, so use them to organise your log and do not treat them as findings.

PatternPoints towardFirst thing to try
Everyone freezes for about half a second, roughly every minuteHeap pressure and garbage collectionCompare gc.log timestamps with the freezes
Rubber-banding that grows with uptime and clears on restartHeap pressure or a leakUpdate, then log memory across a restart
OutOfMemoryError in the consoleHeap too smallRaise the heap, and the plan if needed
Process vanishes with no Java errorOperating system's out-of-memory killerCheck the kernel log or ask your host, then keep -Xmx well below the plan
Freezes at a fixed intervalSaves or backupsCompare with SaveWorldEveryMinutes and BackupsPeriod in your server .ini
Lag follows a horde or one town, and memory stays steadySimulation loadStep population down
Lag began after a mod list change or Workshop updateA modRemove the newest mods in batches
Server got heavier slowly over weeksDropped items and corpsesBound the removal settings
Stutter while driving fast through dense townsChunk streaming (pzfans)Lower server speed limits, keep convoys closer, update for the 42.21 fix
Only the first boot of a new worldWorld generationAllow headroom; Connect Hosting reports a peak above 9 GB, with no log shown

Which fix should you try first?

Try them in this order. No source read for this page publishes how much any of these reduces lag or memory use.

  1. Update the server and clients.
  2. Correct the heap. Connect Hosting says ProjectZomboid64.json has its own -Xmx in vmArgs (-Xmx8g on servers it checked in October 2026), and reports one 16 GB server whose startup line asked for about 13 GB while the JSON said 8 GB, which died with the heap error. PZwiki says StartServer64 "specifies 16GB of starting memory" by default; pzfans gives 4096 MB as the Host Server default. Connect Hosting advises leaving about 3 GB for the JVM, the operating system and non-heap memory. PZwiki's example launch line uses -XX:+UseZGC, so check your collector before copying Minecraft G1 advice.
  3. Bisect the mods. Remove the newest batch, restart and retest. On 21 Oct 2026 The Indie Stone said Java-based mods "are not officially supported" and "will be fundamentally broken by those updates, without warning", so Connect Hosting's advice to suspect them first after a game update is reasonable.
  4. Bound world build-up. In servertest_SandboxVars.lua, Connect Hosting points to HoursForCorpseRemoval, HoursForWorldItemRemoval and WorldItemRemovalList. It quotes the game's description that items are removed "the next time that part of the map is loaded", so one restart will not clear a world. Stop the server and back up before editing.
  5. Step population down with PopulationMultiplier, if lag tracks busy areas. Connect Hosting says fewer zombies "won't touch" rhythmic, all-at-once freezing. It also blames Build 42 animals for part of the load, with no data, so log before changing animal settings.
  6. Schedule restarts as a bridge. WinterNode's RAM guide (18 Mar 2026) suggests every 6-12 hours without giving a method. PZwiki's admin commands include servermsg to warn players, save, and quit. A restart clears growth over uptime and leaves world, mods and population as they were.

What is not worth your time?

Skip these until a log points at them.

  • Swap. Connect Hosting says a Java server touching swapped-out heap during collection turns short pauses into long freezes (RAM post).
  • Setting -Xmx to the full plan. Connect Hosting warns the operating system may kill the process. The Build 42 RAM figures cover the gap.
  • Keys you cannot find in your own file. Connect Hosting says it knows of no developer documentation for a network setting that fixes lag. Supercraft (updated 2 Nov 2026) recommends LightingUpdateInterval and a "Z-Net" mod, with no link to it. LOW.MS (25 Aug 2026, still calling Build 42 unstable) recommends ZombieUpdateDelta. Both sell hosting, and neither key appears in PZwiki's server settings list read on 8 Nov 2026.

When is the answer a bigger plan or a different host?

A bigger plan is the answer when your log, on a current build with mods checked, shows the process near the plan's limit in normal play, or OutOfMemoryError keeps returning. Size it with the Build 42 RAM figures and sanity-check it in the server RAM calculator.

More RAM will not help when memory is flat and lag still follows load. Pine Hosting and Supercraft both point to CPU speed for simulation and publish no numbers. Ask your host which CPU the plan uses and whether it is shared.

A different host makes sense for reasons you can check first: no region near your players, no access to console logs, or no control of launch settings. LOW.MS says RAM on its plans is tied to the tier and you do not hand-edit Xmx values there, so ask before you buy. Plan structures are compared on the Project Zomboid hosting hub.

What GameServerBench plans to record

GameServerBench holds no Project Zomboid lag data. The planned protocol would run fixed worlds with different animal densities and mod lists on one setup, logging heap, process memory and server responsiveness over time, and publish the raw logs with dates. Hosts' terms may restrict automated load; see independence and host terms. For keeping your own runs comparable, read how to benchmark your game server.

If your log points at memory, go next to the Build 42 RAM requirements.

Sources

  1. Steam news feed for Project Zomboid (app 108600), The Indie Stone patch notes in fullPrimaryAccessed 8 Nov 2026
  2. Project Zomboid B42 Server Lag & Desync (Connect Hosting, hosting seller)SecondaryAccessed 8 Nov 2026
  3. Connect Hosting: How much RAM for a PZ B42 serverSecondaryAccessed 8 Nov 2026
  4. Project Zomboid Fans: errors, crashes, issues and lag (Build 42.19)SecondaryAccessed 8 Nov 2026
  5. Project Zomboid Fans: server memory by player countSecondaryAccessed 8 Nov 2026
  6. Dedicated server - PZwiki (community wiki)SecondaryAccessed 8 Nov 2026
  7. Server settings - PZwiki (community wiki)SecondaryAccessed 8 Nov 2026
  8. Admin commands - PZwiki (community wiki)SecondaryAccessed 8 Nov 2026
  9. WinterNode: Project Zomboid RAMSecondaryAccessed 8 Nov 2026
  10. Pine Hosting: Why Project Zomboid servers break at scaleSecondaryAccessed 8 Nov 2026
  11. Supercraft: Project Zomboid Build 42 multiplayer lagSecondaryAccessed 8 Nov 2026
  12. LOW.MS knowledge base: Project Zomboid troubleshootingSecondaryAccessed 8 Nov 2026
Esc

Arrow keys to move, Enter to open.