How much RAM a Project Zomboid server needs
Recommended memory for Project Zomboid servers by players and mods, the Java heap trap in ProjectZomboid64.json and how to spot a server running out of RAM.
Short answer
For a small group without mods, 4 GB is enough, but that is the bare minimum. In practice most servers for friends settle at 6 to 8 GB, and modpacks can push the requirement into double digits.
| Type of server | Players | Recommended RAM |
|---|---|---|
| No mods, one area of the map | 2 to 4 | 4 GB |
| No mods, group spread across the map | 4 to 8 | 6 GB |
| A dozen or so mods | up to 8 | 8 GB |
| Large modpack, extra maps | 8 to 16 | 12 GB |
| Public server with a full modpack | 16 and more | 16 GB and up |
The trap most guides do not mention
The Project Zomboid server runs on Java, and the Java settings do not come from your plan. They come from ProjectZomboid64.json, a file that ships with the game from Steam. That file has a fixed heap size written into it, no matter how much memory the server has.
This has two unpleasant effects. If the value is larger than your plan, the server can be killed mid-game, because Java tries to grab memory that is not there. If it is smaller, you pay for memory the game never uses.
On our servers you do not have to touch this. The heap is matched to your plan automatically, with headroom left for Java itself, and it follows when you change plans. If you edit ProjectZomboid64.json by hand, leave the -Xmx value alone.
What actually eats memory
- The explored map. Zomboid keeps the area around every player in memory, and the world remembers every change: broken doors, moved furniture, smashed windows.
- Mods. Packs with new items and maps can double the requirement. Extra maps are especially expensive.
- Players in different places. Four people in four towns load the server more than ten in one base.
- How long you have played. A world after a few hundred hours is much heavier than a fresh one, because it stores every trace players left behind.
How to tell if memory is running out
The Dashboard shows live memory usage. Look at it when the most people are playing. If the server suddenly disappears and the log shows the process ending without a game error, that is the classic sign of running out of memory.
Lag with plenty of free memory is a different story. It is usually the CPU dealing with a large number of zombies, or one specific mod. A bigger plan will not change that.
FAQ
How much RAM does a Project Zomboid server for 4 players need? Without mods, 4 GB is enough. With a dozen or so mods, 8 GB is the safer choice. Zomboid grows together with the explored map.
Why does my server shut down suddenly? Most often because Java tried to use more memory than the plan has. On our servers the Java settings are matched to your plan, so this should not happen.
Do extra maps put a lot of load on the server? Yes, they are among the most demanding mods. With several maps at once, plan for 12 GB and up.
Does changing the plan delete my world? No. The world, config and mods stay. Only the memory limit changes after a restart.
More about Project Zomboid with us: Project Zomboid. Pick a plan for your group: Project Zomboid server hosting.