There is no single best DayZ server configuration. The right setup depends on your player count, PvP or PvE rules, tolerance for dark nights, persistence expectations, and the CPU and memory headroom of the host. Start with serverDZ.cfg for identity, access, time, logging, and server limits; use cfggameplay.json for gameplay behavior; and edit the mission economy XML files for loot.
The profiles in this guide are practical starting points, not Bohemia Interactive defaults. Apply one change at a time, restart the instance, and compare server FPS, logs, and player reports before increasing population, view distance, or replication load.
What files control DayZ server settings?
DayZ splits configuration across a server-level file, an optional gameplay JSON file, and mission database XML files. Editing the wrong file is the most common reason a change appears to do nothing.
| File or launch control | What it controls | When it is read |
|---|---|---|
serverDZ.cfg |
Server name, passwords, whitelist and priority access, player cap, signature and build checks, voice and camera rules, crosshair and personal-light rules, time, acceleration, queues, logs, ping and server-FPS warnings, view-distance limits, and mission selection. | Loaded as the configuration file named by the -config launch parameter. |
cfggameplay.json |
Lighting and night behavior, temperature arrays, wetness modifiers, drowning depletion, weapon obstruction, spawn-gear presets, object spawners, and restricted areas. | Loaded from the mission folder only when enableCfgGameplayFile = 1; is enabled in the server configuration. |
mpmissions/<mission>/db/types.xml |
Individual item types, nominal and minimum quantities, restock behavior, and other loot definitions. | Read by the selected mission economy. |
mpmissions/<mission>/db/globals.xml |
Global economy variables that affect the mission-wide loot system. | Read by the selected mission economy. |
-cpuCount and -limitFPS |
Launch-time CPU scheduling and frame limiting. | Set in the server start command or host-panel launch options rather than in an INI-style setting. |
Bohemia Interactive’s annotated configuration reference explicitly notes that the filename itself is arbitrary: “The name server.cfg means nothing, and this file can be called anything.” The important part is that the launch command’s -config value points to the file you edited.
Which settings belong in serverDZ.cfg?
Use this file for rules that identify the server, decide who can connect, establish the time model, and expose operational diagnostics. It is also where you select the mission template and set the upper bounds that affect simulation load.
Identity, access, and capacity
hostname: The name shown in the server browser. Include rules such as “1PP” or “first person” if third-person view is disabled.- Passwords, whitelist, and priority access: Use these for private groups or reserved slots. A whitelist is more reliable than an obscure server name for a closed community.
maxPlayers: The connection cap. Set it to a population your host can sustain, not merely the number of slots your provider advertises.- Signature and build checks: Keep integrity and version checks enabled on public servers. They help reject modified or incompatible clients before they affect the session.
- Login queue: Enable a queue when the server regularly reaches its cap so players receive an orderly position instead of repeated connection failures.
Perspective, crosshair, voice, and personal light
disable3rdPerson enforces first-person play, while disableCrosshair removes the crosshair. Set both deliberately and advertise the result in the browser name. The voice-over-network quality setting is also in this file; the annotated reference shows vonCodecQuality = 20 as its top example value.
disablePersonalLight determines whether players receive the personal light intended to improve visibility in darkness. Treat it as a rules decision, not a performance shortcut: disabling it changes how night navigation feels and should be tested on the actual map.
Time, persistence, and mission selection
serverTimeAcceleration: Multiplies the passage of daytime in the simulation.serverNightTimeAcceleration: Applies a separate multiplier during night.serverTimePersistent: Keeps the in-game clock moving across restarts when enabled, allowing a community to return to a continuing day/night cycle.- Mission template: Selects the map and mission folder whose economy and optional gameplay files will be loaded.
Acceleration is not the same as setting a fixed clock. A higher multiplier compresses the simulated period, so verify the resulting sunrise and sunset times against your group’s real play schedule.
Logging, ping, and server-FPS diagnostics
Enable administrative, player, build, and placement logs when you need moderation or a baseline for troubleshooting. The documented example uses pingWarning = 200, pingCritical = 250, and MaxPing = 300. These are example thresholds, not universal targets; latency varies by region and connection route.
The same reference shows serverFpsWarning = 15. Use it as an alert threshold, not a promise that the server will always run at a particular frame rate. Pair warnings with log timestamps and a controlled change so you can identify which setting caused a regression.
Simulation and distance controls
simulatedPlayersBatch and multithreadedReplication affect how player simulation and network replication are scheduled. View-distance caps and object-distance limits determine how much world state must be considered and sent. Leave performance-sensitive distance values at the host’s defaults until you have a stable baseline, then adjust one limit at a time.
What does cfggameplay.json change?
This JSON file exposes gameplay behavior that is not represented by the server’s identity and access settings. Bohemia Interactive describes gameplay settings as a way for administrators to alter game behavior by modifying values in a gameplay-settings JSON file.
Enable the file before editing it
- Copy the shipped
cfggameplay.jsoninto the selected mission folder. - Add
enableCfgGameplayFile = 1;toserverDZ.cfg. - Validate the JSON structure and restart the server.
- Test the behavior in game before changing another section.
Without the enable flag, the file is ignored even if it is perfectly formatted and in the correct-looking directory.
Gameplay areas exposed by the JSON
- Lighting and night configuration: Use these with the server time multipliers when you want a particular darkness or night duration.
- Temperature and wetness: Arrays and modifiers alter environmental survival pressure; change them carefully because they affect the whole mission.
- Drowning depletion and weapon obstruction: These adjust specific interaction and survival behaviors.
- Spawn-gear presets: Define what players receive at spawn. Treat this as a ruleset choice because it changes the early-game economy.
- Object spawners and restricted areas: Add or constrain mission objects and zones where supported by the selected build.
Where do loot and economy changes go?
Loot edits belong in the selected mission’s database XML, not in serverDZ.cfg. Use mpmissions/<mission>/db/types.xml for item-level definitions and mpmissions/<mission>/db/globals.xml for global economy variables.
Use types.xml for item behavior
Item entries define how many objects the economy tries to maintain, minimum quantities, and restock behavior. Make a backup before changing an entry, keep the XML well formed, and change a small set of related items so you can attribute the result to a specific edit.
Use globals.xml for economy-wide variables
Global values influence the mission economy as a whole. A global change can affect many item categories at once, so it should be tested separately from an individual types.xml adjustment.
Do not paste XML economy keys into serverDZ.cfg. The server may start while silently ignoring them, leaving you with the impression that the economy system is broken.
What are the best starting profiles for different groups?
The following values are editorial starting points. Bohemia’s documentation defines the available controls, while the ranges below must be validated against your group’s population, map, platform, and host hardware.
| Group and style | Starting values | Reasoning and checks |
|---|---|---|
| Private group, 4–10 players | maxPlayers 10–20; whitelist enabled; moderate day acceleration; night acceleration slightly higher; administrative logs enabled. |
Leaves room for a few additional friends without advertising a public-sized capacity. Confirm that the selected night length fits the group’s play sessions. Choose third-person and crosshair rules by agreement. |
| Community group, 10–30 players | maxPlayers 30–40; login queue enabled; persistent time if players return across sessions; leave distance limits at host defaults initially; player, build, and placement logs enabled. |
Provides queue behavior and moderation records while preserving performance headroom. One current community example uses maxPlayers = 40, serverTimeAcceleration = 6, serverNightTimeAcceleration = 4, and serverTimePersistent = 1; treat that as an example, not a universal recommendation. |
| Public server, 40–60 players | Set the cap to the population the host can sustain; keep signature and build checks on; publish first- or third-person rules in the hostname; monitor server FPS, ping, logs, and restart behavior before increasing distance or population. | The annotated reference includes a 60-player example. Raise one limit at a time and roll back if server measurements worsen. |
How should I choose the player cap?
Start below the host’s advertised maximum if you cannot observe server FPS under peak activity. A 60-slot setting is documented as an example, not proof that every host can sustain 60 concurrent players with long view distances and a busy economy.
How should I choose day and night acceleration?
Ask when your group actually plays. A faster night can keep a weekday session from spending most of its duration in darkness, but excessive acceleration can make the world feel disconnected from a persistent community clock. Change the night multiplier independently so you can judge its effect.
How do I make DayZ nights shorter?
Use serverNightTimeAcceleration in serverDZ.cfg to make the simulated night pass faster, then use the lighting and night options in cfggameplay.json to control how dark it appears. The two layers affect different aspects of the experience, so changing only one may not produce the result you expect.
- Stop the server or schedule a controlled restart.
- Increase
serverNightTimeAccelerationby a modest amount while leaving the daytime multiplier unchanged. - If the night is still too dark or visibility does not match your rules, review the lighting configuration and
disablePersonalLightin their owning files. - Restart, join during the night, and check the actual map and platform.
- Record the result before making another adjustment.
There is no documented universal “correct” night value. A community example uses a night acceleration of 4 alongside a daytime value of 6; it is a reference point for testing, not an official default.
Which settings reduce lag on a DayZ server?
Lag has several causes, so reduce load methodically rather than applying a large bundle of changes. Population, view distance, replication, CPU allocation, and frame limits all matter, and a setting that helps one host can hurt another.
Establish a baseline
- Enable server-FPS warnings and relevant logs.
- Record concurrent players, average and worst ping, restarts, and the times when players report rubber-banding.
- Keep the mission, mods, and economy unchanged while measuring.
Reduce the largest load sources first
- Lower
maxPlayerstemporarily if the server is saturated at peak population. - Leave view-distance and object-distance caps at host defaults; reduce them only after confirming the host’s baseline.
- Review replication settings such as
multithreadedReplicationand simulation batching according to the documented options for your build. - Check the launch command’s
-cpuCountand-limitFPSvalues so the process is not artificially constrained. - Change one variable, restart, and compare server FPS and logs with the baseline.
Use serverFpsWarning = 15 as a documented example threshold for an alert. It is not a guarantee of smooth play, and it does not identify the cause by itself. A rising ping warning with stable server FPS points toward network route or client connection issues; falling server FPS during high activity points toward simulation or replication load.
How should PvP, PvE, and hardcore rules be configured?
Hardcore or first-person servers
Set disable3rdPerson = 1 and usually disableCrosshair = 1. Put “1PP” or “first person” in the hostname so players understand the rule before joining. Test personal-light and lighting choices at night because visibility is part of the difficulty curve.
PvE and co-op servers
You may choose to disable base and container damage for a cooperative environment. That changes raid possibilities and persistence rules, so state it clearly in the server description and verify that the setting matches the mission and build you run.
PvP servers
Keep base and container damage, camera rules, and crosshair policy aligned with the advertised ruleset. Signature and build checks, administrative logs, and consistent moderation procedures are more valuable than simply increasing the player cap.
How do I edit and apply settings without losing them?
Use a controlled restart and preserve a dated backup after every successful change. Hosting panels can disable saving while an instance is running, and host-panel templates or game updates can rewrite files.
- Stop the instance: Shut it down or schedule a maintenance restart before opening the editor.
- Back up everything relevant: Save
serverDZ.cfg, the entire mission folder,types.xml, andglobals.xmlunder a dated filename. - Edit the owning file: Put server rules in
serverDZ.cfg, gameplay behavior incfggameplay.json, and loot or economy values in the mission XML. - Preserve syntax: End assignments with semicolons in
serverDZ.cfg; keep JSON valid; keep XML well formed and correctly nested. - Restart and verify: Check the browser name, player cap, map, time, and the gameplay behavior you changed.
- Measure performance: Use
-doLogs,-adminLog, server-FPS warnings, and player reports to compare the server with itself. - Archive the working copy: Keep a dated version after each successful restart so a panel rewrite or update can be reversed quickly.
Why do DayZ server settings reset?
The usual causes are editing a different file from the one named by -config, changing files while the panel has saving disabled, selecting a different mission template, or allowing a host panel or game update to restore its template. A JSON or XML syntax error can also cause a file to be ignored or replaced during startup.
Check the active file and mission
Confirm the launch command’s -config path, the selected mission folder, and the exact capitalization of filenames. If you edited a custom-named configuration, remember that the filename itself is not special; the launch parameter determines which file is loaded.
Check whether the server was actually stopped
Stop the instance before editing and wait for the panel to report that it is offline. Save, restart, and then inspect the file again. If your change vanished, compare it with the dated backup and the host panel’s generated configuration.
Check syntax and scope
Look for a missing semicolon in serverDZ.cfg, invalid JSON punctuation, or an unclosed XML element. Also confirm that you changed a value the selected file owns: economy keys in the server configuration will not affect loot.
What should I verify after every restart?
- The browser displays the intended hostname and the advertised perspective and crosshair rules.
- The player cap and queue behavior match the profile you selected.
- The correct map and mission load.
- The day/night cycle starts at the expected time and persistence behaves as intended.
- Gameplay JSON changes are visible in a controlled test and were enabled with
enableCfgGameplayFile = 1;. - Loot edits affect the mission economy without malformed XML errors.
- Administrative, player, build, or placement logs are being written when enabled.
- Server FPS and ping warnings remain within the thresholds you chose.
- A fresh dated backup exists before the next change.
Which documented figures are useful as reference points?
| Setting | Documented example | How to interpret it |
|---|---|---|
maxPlayers |
60 | Appears in Bohemia Interactive’s annotated configuration example; it is not a capacity promise for every host. |
vonCodecQuality |
20 | Top value shown in the annotated voice-over-network setting. |
pingWarning |
200 | Example warning threshold, generally expressed in milliseconds. |
pingCritical |
250 | Example critical threshold; tune for your region and player base. |
MaxPing |
300 | Example maximum-ping limit. |
serverFpsWarning |
15 | Example server-FPS warning threshold, not a guaranteed operating rate. |
| Community example | maxPlayers = 40, serverTimeAcceleration = 6, serverNightTimeAcceleration = 4, serverTimePersistent = 1 |
A current community configuration example; validate it on your own host rather than treating it as a Bohemia default. |
How do I decide whether a configuration is actually “best”?
Define success before tuning. For a private group, that may mean reliable access and a night schedule that fits weekly sessions. For a public server, it may mean stable server FPS at peak population, predictable restarts, clear rules, and enough CPU and distance headroom for the advertised player count.
Compare configurations using the same axes: peak concurrent players, first- or third-person and crosshair rules, day and night duration, persistence and restart policy, loot and economy changes, mod and mission support, CPU and view-distance headroom, logging or RCon access, backup and file ownership, and whether the provider exposes a US-facing control panel. Change one performance-sensitive variable at a time, keep the previous working copy, and let measurements—not a generic “best settings” list—decide the final profile.
Frequently Asked Questions
Does the filename have to be exactly serverDZ.cfg?
No. Bohemia Interactive’s configuration reference says the name itself is arbitrary. The file loaded at startup is whichever path you provide with the -config launch option, so verify that path when a change appears to be ignored.
Can I change loot by adding entries to the main server config?
No. Loot definitions are read from the selected mission’s db/types.xml, while economy-wide variables are in db/globals.xml. Keeping those edits in the mission database also makes it easier to back up or move the economy with the mission.
Why does a shorter night still look almost as dark?
A faster serverNightTimeAcceleration changes how quickly the clock advances, not necessarily the lighting curve. Review the lighting and night options in cfggameplay.json, confirm that the gameplay file is enabled, and test during an actual night on your map.
What should I record when players report lag?
Record concurrent players, the time of the incident, server-FPS warnings, ping warnings, and the relevant administrative or player logs. That timeline lets you separate simulation overload from a connection problem before you lower population or distance limits.