Explainer

DayZ server lag and desync: causes and fixes

Rubber-banding, doors that take seconds to open, items that won't move in your inventory and shots that don't land: that's desync, and on a DayZ server it nearly always means the server is struggling to keep up. The good news is that most of the causes are settings you control. Here's how to tell server lag from a player's connection, and what to fix first.

  • 4 min read
  • Updated
  • PlayStation, Xbox and PC

Server lag or player lag?

If one player struggles while everyone else is fine, the problem is usually their connection or distance from the server. If everyone feels it at the same time, especially at busy times or late in the day, it's the server.

Ask a few players when it happens. Lag that builds up over hours and clears after a restart is the classic sign of a server that needs more frequent restarts or has too much in the world.

Restart regularly

DayZ servers slow down the longer they run. Nitrado recommends restarting four to six times a day. If you restart less often and lag builds through the day, more restarts are the cheapest fix there is. See how to schedule restarts.

Too much in the world

Every item, body, car, infected and base part is something the server tracks. Big loot boosts with long lifetimes, dozens of sprawling bases and hundreds of cars add up.

  • Keep lifetimes short for common loot so it clears. See item despawn times
  • Avoid huge loot multipliers; 2x to 3x is usually plenty. See how to increase loot
  • Don't push vehicle counts far beyond vanilla
  • Let abandoned bases decay rather than giving everything very long lifetimes

Infected and animals

Infected and animals are some of the busiest things on a server. If you've raised ZombieMaxCount or AnimalMaxCount in globals.xml, bring them back towards vanilla (1000 and 200) and see if it helps. Infected hordes in events.xml add up too. See zombie and animal numbers.

Mods on PC servers

On modded servers, a single badly written or outdated mod can cause constant script errors that drag performance down. Check the script logs for repeating errors, keep mods updated, and remove mods you don't really use. See server logs.

Watch the server's own warnings

serverDZ.cfg has a serverFpsWarning setting (15 in Bohemia's example, with 11 as the minimum) that makes the server warn in its log when its frame rate drops below that value. If you see those warnings at busy times, the server is overloaded. Ping settings (pingWarning, pingCritical and MaxPing) handle players with very high ping.

A quick lag checklist

Work through these in order and change one thing at a time:

  • Restart more often, at least four times a day
  • Shorten lifetimes for common loot
  • Bring infected and animal counts back towards vanilla
  • Reduce vehicle counts if you raised them a lot
  • Check logs for repeating errors, especially on modded servers
  • Turn on Reduce log output on Nitrado if logs are very busy

Ping and location

Players far from the server feel delay on every action, which looks like lag to them even when the server is healthy. If most of your community is in one region and the server is in another, moving the server closer can help more than any setting. See choosing a host.

When it's time for more resources

If you've restarted regularly, trimmed the economy and checked mods, and the server still struggles when full, it may simply need more resources. A server that's often full with many bases and mods needs more than a small group's server. Ask your host whether a larger plan gives more CPU and memory, not just more slots.

Tools for this

Common questions

What causes desync in DayZ?

Usually the server struggling to keep up, from running too long without a restart, too much in the world, too many infected or a misbehaving mod.

How often should I restart to stop lag?

Nitrado recommends four to six times a day. If lag builds up through the day, restart more often.

Does more loot cause lag?

It can, especially with long lifetimes that fill the map. Moderate boosts with short lifetimes are usually fine.

Will removing mods fix lag?

If a mod is throwing errors or is very heavy, yes. Check script logs for repeating errors, and test without a suspect mod for a day.

Do bigger bases cause lag?

Huge bases with hundreds of parts and full storage add load. Normal bases are fine; very large, abandoned ones are worth letting decay.

Why is the server fine after a restart but laggy by evening?

Things build up as the server runs. More frequent restarts, especially before your busiest hours, usually fix it.

Can a player's connection cause desync for everyone?

Rarely. One player's bad connection mostly affects them. Lag everyone feels at once points to the server.

Is lag worse on console servers?

The causes are the same. Console servers can't run mods, so the economy, restarts and player counts are what to check.

Run your DayZ server from one place

Free editors for every config file, plus a live dashboard and Discord feeds when you're ready.