If you've built a Valheim dedicated server and everything worked fine for the first few weeks — but now players are complaining about stutter, rubber-banding, or world saves that freeze the game — you're not alone. Valheim's charm is its persistent, physics-driven world, but that same simulation gets heavier as your group explores more of the map and builds bigger bases.
This guide focuses on server-side performance problems. Client-side lag (low FPS on your gaming machine, texture pop-in) is a different issue. Here we'll identify and fix the most common reasons a Valheim dedicated server slows down as the world grows.
If you haven't set up a dedicated server yet, read our Valheim dedicated server hosting guide first — this article assumes you have a server running and need to make it run better.
1. Understanding Valheim's Server Architecture
Before diving into fixes, it helps to know why Valheim servers struggle. The game uses a ZDO (Zoned Data Object) system to track every item, creature, building piece, and player in the world. Each ZDO is a server-side entity that must be simulated, stored, and synchronised with every connected player.
Here's the crucial limitation: vanilla Valheim runs its server logic on a single CPU core. No amount of additional cores will speed up the simulation thread. A 12-core Xeon at 2.2 GHz will perform worse than a 4-core consumer CPU at 4.0 GHz for Valheim, because only one core does the heavy lifting.
As your world ages and players explore further, the ZDO count grows. A fresh world might have 5,000–10,000 ZDOs. A 300-day world with heavy building can easily hit 50,000+ ZDOs, and that's where the lag starts.
2. RAM Allocation — The Quickest Fix
If you're running your Valheim server on a machine that has plenty of RAM, but you haven't told the game to use it, you're leaving performance on the table.
What's the Right Amount?
2–4 Players
Minimum: 2 GB — works for a fresh world with light building
5–10 Players
Recommended: 4 GB — handles explored worlds and moderate building well
10+ Players or Old Worlds
Recommended: 6–8 GB — needed for large groups and 200+ day worlds
How to Check Current RAM Usage
On Linux (including most VPS and dedicated hosts):
# Show RAM usage for the Valheim process
ps aux | grep valheim | grep -v grep
# Or use htop for a live view
htopOn Windows (Task Manager):
- Open Task Manager (Ctrl+Shift+Esc)
- Find the
valheim_server.exeprocess - Check the Memory column — if usage exceeds 80% of available RAM, you need an upgrade
How to Increase Allocated RAM
Valheim's dedicated server is a Unity application, and you control its RAM limit via command-line arguments in the start script:
# Example start script with 4 GB RAM (Linux)
./valheim_server.x86_64 \
-name "My Server" \
-port 2456 \
-world "MyWorld" \
-password "mypassword" \
-savedir "/home/valheim/saves" \
-logFile "/home/valheim/logs/server.log" \
-batchmode \
-nographics \
-maxplayers 10Unity automatically uses whatever RAM is available, but the-batchmode and -nographics flags reduce overhead. The real trick is ensuring the machine itself has enough free RAM so Valheim isn't competing with other processes. If your server shares RAM with a web panel, database, or monitoring tools, reserve at least 4 GB for Valheim alone.
Signs You Need More RAM
- World save stutter: every 15–30 minutes the server freezes for 2–10 seconds
- Slow world loading: players wait 30+ seconds to connect
- Memory errors in the server log: "Out of memory" or "Allocation failed"
- Crashing after player count increases: the server runs fine with 3 players but dies at 6
3. CPU and Process Priority
Since Valheim only uses one core, your goal is to make sure that single core runs as fast as possible and isn't interrupted by other processes.
Setting CPU Affinity on Linux
Pin the Valheim process to a specific core to stop the OS scheduler from bouncing it between cores (which destroys cache performance):
# Find the PID first
pgrep valheim_server
# Pin to core 0 (the first core)
taskset -cp 0 <PID>
# Or launch directly pinned to core 0
taskset -c 0 ./valheim_server.x86_64 [args...]On a system with hyperthreading, physical cores are usually 0, 2, 4, 6 and logical cores are 1, 3, 5, 7. Pin Valheim to a physical core for best results. Check your CPU topology with lscpu.
Setting High Process Priority
On Linux, use nice or renice to give Valheim priority over background services:
# Launch with high priority (lower nice value = higher priority)
nice -n -10 ./valheim_server.x86_64 [args...]
# Or change priority on a running process
renice -n -10 -p <PID>On Windows, open Task Manager, right-click valheim_server.exe, go to "Set Priority" and choose "High".
What CPU Matters Most
Single-core clock speed is the single biggest factor in Valheim server performance. A modern CPU running at 4.0–5.0 GHz will handle twice as many ZDOs per tick as one at 2.5 GHz. CPU generation also matters — IPC (instructions per clock) improvements between generations mean a newer 3.5 GHz chip can outperform an older 4.0 GHz chip.
When choosing a host, ask about the specific CPU model, not just core count. "Intel i9-13900K at 5.0 GHz" is more useful than "8 vCPU cores".
4. Network and Latency Optimisation
Sometimes the server is running fine, but players experience lag because of network issues.
Check Your Upload Speed
Every connected player sends and receives data through your server's upstream connection. For a group of 5–10 players, we recommend a minimum of 5 Mbps upload. If you're hosting from home, run a speed test at speedtest.net — if your upload is below 5 Mbps, players will experience rubber-banding and desync.
Ethernet Over WiFi, Always
If you're self-hosting on the same machine you use for browsing, streaming, or gaming, connect it via Ethernet. WiFi introduces variable latency (jitter) that feels like server lag even when the CPU has plenty of headroom. A simple Ethernet cable eliminates this variable.
Data Centre Location
Every 100 km adds roughly 1 ms of latency. If your player group is spread across Europe, a UK data centre offers the best compromise — central enough for EU players (20–40 ms) and well-connected to US East (70–90 ms). That's why Ilyssa Hosting operates UK-based servers: it gives the majority of European players a low-latency experience without penalising anyone severely.
Port Forwarding Best Practices
- Forward UDP ports 2456–2458 (not TCP) — Valheim uses UDP exclusively
- Set a static internal IP for the server machine so the port forward rule doesn't break after a reboot
- If your router has a "QoS" (Quality of Service) setting, prioritise UDP traffic on ports 2456–2458
5. World Settings That Impact Performance
Some server launch arguments and settings have a measurable impact on performance.
Disable Server Crossplay (If Not Needed)
By default, Valheim servers enable crossplay support so Xbox and PC players can play together. If all your players are on PC, you can disable it:
# Add this flag to disable crossplay
./valheim_server.x86_64 [args...] -crossplayWait — actually, the -crossplay flag enables crossplay. If you don't use it, simply omit the flag. Some server owners report a 5–10% CPU reduction when crossplay is disabled because the server doesn't have to translate between the two network protocols.
World Save Interval
Valheim auto-saves every 15 minutes by default, and each save briefly freezes the server while it serialises the world. You can adjust this:
# No command-line flag to change save interval.
# You can use the Valheim Plus mod's server configuration
# or use a wait-loop in your start script to issue:
# "save" via the server console every X minutes.Alternatively, you can manually trigger saves during quiet periods instead of during peak play. Connect to the server console and type save at a convenient time, then the next auto-save 15 minutes later won't have much new data to write.
6. World Save Optimisation — The Biggest Win
The world save stutter is Valheim's most famous performance issue, and it's the one thing most server owners can dramatically improve with one change: storage.
Why World Saves Cause Lag Spikes
When the server saves, it serialises the entire ZDO database to disk. On a slow drive, this write operation blocks the main simulation thread. During that time, the server cannot process player movements, monster AI, or building interactions. Players see a 2–10 second freeze every 15 minutes.
SSD / NVMe vs HDD
The difference is dramatic:
If your hosting provider uses HDDs or network-attached storage, world saves will always be slow. NVMe is ideal. This is one of the key advantages of managed hosting with NVMe storage — it eliminates the most common source of lag complaints.
World File Size Management
Every explored area, placed building piece, and killed creature adds data to your world file. Over months, a world can grow to 100–200 MB. There are a few things you can do:
- Use the
resetzdoconsole command: removes orphaned ZDOs (creatures that died and their bodies despawned, items that were destroyed, etc.) - Avoid over-exploration: each new chunk adds permanent data to the world file. Only explore what you need.
- Run a world optimisation tool: community tools like UpgradeWorld or the Valheim World Manager can clean up unused entities
7. Mods That Help (and Hurt) Performance
Running mods on a Valheim server is common, but some mods improve performance and others destroy it. Here's what to know.
BepInEx Mods That Can Improve Server Performance
| Mod | What It Does |
|---|---|
| Valheim Plus | Includes performance toggles: disable unused systems, cap entity counts, adjust save behaviour |
| ServerSideSaves | Offloads save work from the client to the server, reducing hitches for connected players |
| InstantMonsterLootDrop | Reduces entity processing time by dropping loot instantly instead of running a timed animation |
| OdinsQoL | Collection of server-side QoL fixes including ZDO cleanup and entity optimisation |
Mods to Avoid (Performance-Heavy)
- Mods that increase spawn rates — each extra creature is a CPU-bound physics calculation. Doubling spawn rates roughly doubles server-side CPU load.
- Mods that add many new items or creatures — content packs increase ZDO counts across the board.
- Mods that log excessive data — some admin/audit mods write every player action to a log file, which competes with the save thread for disk I/O.
How to Test If a Mod Causes Lag
- Back up your world files
- Disable all mods and restart the server
- Play for 30–60 minutes. If the lag is gone, a mod was the cause
- Re-enable mods one at a time, testing for 20–30 minutes each
- When the lag returns, you've found the culprit
8. When to Switch to a Managed Host
Self-hosting is a great way to learn, but it has limits that eventually affect performance:
- ISP throttling: most residential ISPs don't optimise for game server traffic
- Power and cooling: running a server 24/7 on consumer hardware means heat, noise, and electricity costs
- Hardware age: the single-core speed advantage of consumer CPUs diminishes if the machine is more than 3–4 years old
- No redundancy: if your home internet goes down, the server is unreachable
A managed host solves all of these. At Ilyssa Hosting, every Valheim server runs on its own dedicated virtual machine — there are no noisy neighbours competing for CPU or RAM. All plans include NVMe storage (eliminating save stutter), high-frequency CPUs optimised for single-threaded workloads, and a UK data centre for low-latency European play.
Stop Tuning, Start Playing
If optimising server config isn't how you want to spend your gaming time, let Ilyssa Hosting handle it. Dedicated CPU resources, NVMe storage, UK data centre, and free migration from self-hosted setups. Plans from £6.99/month.
View Valheim Hosting Plans9. Troubleshooting Checklist
When you're debugging server lag, work through these in order — from easiest to hardest:
- Check RAM usage. If the server is using >80% of available RAM, increase allocation or upgrade.
- Verify storage type. Is the world on an HDD? Move it to SSD or NVMe for an immediate improvement.
- Disable crossplay. If all players are on PC, omitting the crossplay flag saves 5–10% CPU.
- Pin CPU affinity. Use
taskset(Linux) or Task Manager (Windows) to lock Valheim to a single physical core. - Check upload speed. Run a speed test. If upload is below 5 Mbps, players will suffer.
- Disable mods temporarily. Rule out mod-related lag before tuning anything else.
- Run
resetzdo. Clean up orphaned ZDOs in the server console. - Monitor single-core CPU usage. If one core is pegged at 100% while others sit idle, you've hit Valheim's architectural ceiling.
- Compare world file size. Worlds over 150 MB need active management or a more powerful host.
- Consider managed hosting. If you've tried all the above and the server still struggles, the hardware may simply not be up to the task.
Common Symptom Patterns
“My server lags at exactly [time] every day”
Likely cause: auto-save + backup collision. Check if a backup cron job runs at the same time as the auto-save. Stagger them or use NVMe storage to reduce write time.
“My server stutters when players explore new areas”
Likely cause: world generation load. Every new chunk must be generated on the fly. Consider pre-generating the world with tools like Better Continents or the Valheim World Generator.
“My server runs fine but my friends lag”
Likely cause: network issue. Check your upload speed, switch to Ethernet, or move the server to a data centre closer to the majority of players.
“My server worked fine yesterday”
Likely cause: recent update or mod change. Valheim patches and mod updates can introduce incompatibilities. Roll back the change and test.
Conclusion
Valheim's single-threaded simulation engine means server performance degrades naturally as worlds grow. The good news is that most performance problems have a clear cause and a fix that doesn't require a complete rebuild:
- Add more RAM and pin the process to a fast core
- Switch to SSD or NVMe storage to eliminate save stutter
- Check your network: upload speed, Ethernet, data centre location
- Disable crossplay if you don't need it
- Be selective with mods — some help, some hurt
- When tuning is no longer enough, consider a managed host with dedicated resources
If you'd rather spend your time exploring the tenth world biome than tweaking server configs, Ilyssa Hosting's Valheim plans give you dedicated CPU, NVMe storage, and UK low-latency out of the box. No tuning required.
Questions about Valheim server performance or our hosting setup? We're real people based in the UK and we'd love to help.