Has your build already fixed it?
Build 42 became the default Stable branch with 42.20.0 on 29 July 2026, and several of the patches since then were aimed squarely at server lag. If your server or your players are behind, update before you tune anything. The Indie Stone's own notes:
| Build (date) | Lag-related fixes, in the developer's words |
|---|
| 42.20.0 (29 Jul 2026) | "Fixed all players lagging/stuttering when a player builds or interacts with gates"; "Fixed zombies desyncing when not visible"; added ping values for each player in the Players and Users List tabs |
| 42.20.1 (5 Aug 2026) | "Fixed an issue that caused significant performance problems with chunk unloading on multiplayer servers. This 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 (17 Aug 2026) | "Addressed multiple causes of a memory leak that could lead to performance degradation and crashes over time" |
| 42.21 (Stable, 28 Sep 2026) | Fixes for driving "with high ping (~150+)", a "Z-level desync issue", and zombie duplication in multiplayer |
| 42.22 (Pre-Release, 27 Oct 2026) | More multiplayer fixes, including "improved the performance of server backup creation" |
Two cautions. The Pre-Release branch replaced "Unstable" on 27 October 2026, and the studio recommends the default Stable branch (42.21 at the time of writing) for everyone except testers. And the server and every player must be on the same branch. A mismatch shows as a "server version does not match the client" connection error, not lag, but it often gets reported as "the server's broken".
Is the server running out of memory?
This is the cause behind the worst-feeling lag: freezes that hit everyone at once, players stuck loading chunks after creating a character, joins that fail to fetch server info, and eventually a crash. Search the server console for:
java.lang.OutOfMemoryError: Java heap space
If it's there, the Java heap is too small for the world. The game's own patches fixed several memory leaks in 42.20.1 and 42.20.3, so first make sure you are current.
Then check where your heap is actually set, because there are two places. The dedicated server ships a ProjectZomboid64.json whose vmArgs contain their own -Xmx. On the servers we checked in October 2026 it was -Xmx8g. A startup command can ask for more. On one 16 GB server of ours, the startup line asked for about 13 GB while the JSON still said 8 GB, and the server died with exactly the error above in its chunk-loading and network threads. Make the two agree. Set the heap where your launch method actually reads it, and leave a few gigabytes of the machine's RAM outside the heap for the game's native memory. We reserve 3 GB, because Build 42 world generation ran out with less.
How big should the heap be? More than Build 41 needed. In our own testing a fresh Build 42 world generation was OOM-killed on an 8 GB server, which is why every Connect Zomboid plan starts at 10 GB with a swap safety net behind it. The full sizing guide is in how much RAM a B42 server needs.
Is the world carrying too much?
If a server has got heavier slowly over weeks, one suspect is everything left lying around the map: dropped items and corpses. The sandbox options can bound that. They live in servertest_SandboxVars.lua, in the same Server folder as servertest.ini. Stop the server, edit, then start it. The descriptions below are The Indie Stone's own, from its official translation files; check each key exists in your own file before you edit it.
| Option (key) | What The Indie Stone says it does | The trade-off |
|---|
Time before Corpse Removal (HoursForCorpseRemoval) | "How long before zombie bodies disappear." In-game hours | Lower clears bodies sooner but loses the grim scenery |
Hours for Removal List (HoursForWorldItemRemoval) | "Number of hours since an item was dropped on the ground before it is removed. Items are removed the next time that part of the map is loaded. Zero means items are not removed." | Only acts on item types in the list below |
World Item Removal List (WorldItemRemovalList) | "A comma-separated list of item types that will be removed after HoursForWorldItemRemoval hours." | Pick junk types, not things players stash on the floor |
Removal List as Whitelist (ItemRemovalListBlacklistToggle) | "If true, any items not in WorldItemRemovalList will be removed." | Aggressive; easy to delete a base's floor storage |
Item removal only runs "the next time that part of the map is loaded", so it won't fix a world in one restart. Take a backup before changing any of these.
Are there simply too many zombies?
Every zombie is something the server simulates and keeps in sync for players nearby, so population is a real dial, but it is a gameplay dial first. The sandbox options:
- Zombie Count, which sets Population Multiplier: 4.0 is Insane, 3.0 Very High, 2.0 High, 1.0 Normal, 0.35 Low.
- Population Peak Multiplier, which "adjusts the desired population on the peak day".
- Respawn Hours: how long before zombies may respawn in a cell. "If zero, spawning is disabled."
If the lag tracks busy areas, such as a horde event or everyone in one town, population is worth a step down. If it is rhythmic, all-at-once freezing, it is memory, and fewer zombies won't touch it.
Did a mod do it?
If the lag started after a restart that changed the mod list, or after Workshop updates, suspect the newest mods first. Remove them one batch at a time and restart, minding the load order when you put them back. The Indie Stone officially supports Lua mods only. On 21 October 2026 it said Java-based mods "are not officially supported" and "will be fundamentally broken by those updates, without warning", so treat any Java mod as the first suspect after a game update.
Only one player is lagging
If the server is fine for everyone else, it isn't the server. Since 42.20.0 the Players and Users List tabs show each player's ping, so you can confirm it rather than guess.
- High ping. The usual reason is distance: a player in Europe on a US server carries that latency into every action, and no setting removes it. 42.21 improved driving at high ping (~150+), so make sure they are on the current build.
- Their game is out of step. Have them verify game files, check they are on the same branch as the server, and resubscribe to the server's mods if a mod updated recently.
- Their PC. If they also stutter in single player, it's their frame rate, not your server.
Settings people expect to matter, and how they work
- Pause when empty (
PauseEmpty) stops world time when nobody is online, so the world isn't advancing for an empty server. It is a gameplay choice as much as a performance one.
- Network "tuning" values from forums: we have found no developer documentation for any magic network setting that fixes lag. Server lag comes from memory, world state and population. Exhaust those first.
A fifteen-minute triage
- Who? One player → their connection or game. Everyone → keep going.
- Which build? Server and players on current Stable? If not, update first.
- The console.
OutOfMemoryError: Java heap space → heap, then check both -Xmx values.
- When did it start? After a mod change → bisect the mods. Gradually over weeks → world build-up settings.
- Where? Worse in busy areas → population. Everywhere at once → memory.
- Change one thing at a time, and write it down.
Running a server for friends? How to make a private Project Zomboid server keeps griefers out with a password or a whitelist.
Frequently Asked Questions
Why is my Project Zomboid multiplayer server lagging?
On Build 42 the usual causes are a Java heap that is too small, an out-of-date build, a world full of dropped items and corpses, or a high zombie population. Check the console for OutOfMemoryError: Java heap space first.
Did Build 42 patches fix server lag?
Some of it. 42.20.1 fixed "significant performance problems with chunk unloading on multiplayer servers" and a memory leak, 42.20.3 fixed more memory leaks, and 42.21 improved high-ping driving and desync.
Why do players get stuck loading chunks when joining?
On the server we diagnosed, the Java heap had run out. Check the console for OutOfMemoryError, and make sure the -Xmx in ProjectZomboid64.json isn't lower than the heap you meant to give it.
Does lowering the zombie population fix lag?
It helps when lag tracks busy areas and many zombies. It does not help rhythmic, everyone-freezes-at-once lag, which is memory.
How do I know if the lag is my PC or the server?
If you stutter in single player too, it's your PC. If everyone freezes at the same moment, it's the server. If only one player rubber-bands, check their ping in the Players list.
Should my server run the Pre-Release branch for the latest fixes?
Only if you are testing. The Indie Stone recommends the default Stable branch, and every player must be on the same branch as the server to join.