Survival & Factory 1–10 players
Valheim Server RAM Calculator
Vanilla Valheim allows up to 10 players. This estimate is 3 GB plus 0.35 GB per player, with extra memory for BepInEx mods and for large builds, since the server keeps every placed building piece in memory.
- RAM range
- 4–11 GB
Configure
Recommendation
Recommended RAM
5 GB
Total memory to rent, including OS headroom.
- CPU
- Single-core speed matters most. Large bases with many pieces make the structural-integrity simulation slow down the whole server.
- Storage
- The server install is small, but world saves grow with building. An SSD keeps periodic world saves from causing hitches.
- Tip
- Copy the start script before editing, because Steam updates overwrite it. The password must be at least 5 characters and cannot appear in the server name. With the Steam backend, forward UDP 2456–2457; -crossplay uses a relay and needs no port forwarding.
Config files
2#!/bin/sh
# Planned for 5 GB RAM
if [ "${#VALHEIM_PASSWORD}" -lt 5 ]; then
echo 'Set VALHEIM_PASSWORD to at least 5 characters.' >&2
exit 1
fi
export LD_LIBRARY_PATH="./linux64${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export SteamAppId=892970
exec ./valheim_server.x86_64 -name "My Valheim Server" -port 2456 -world "Dedicated" -password "$VALHEIM_PASSWORD" -crossplay
Save beside the Linux server binary as start_valheim.sh, leaving start_server.sh intact. Set VALHEIM_PASSWORD privately in the launch environment, check the world name matches your save, then run sh start_valheim.sh there. Remove -crossplay for Steam only.
#!/bin/sh
# Planned for 5 GB RAM
if [ "${#VALHEIM_PASSWORD}" -lt 5 ]; then
echo 'Set VALHEIM_PASSWORD to at least 5 characters.' >&2
exit 1
fi
export DOORSTOP_ENABLED=1
export DOORSTOP_TARGET_ASSEMBLY=./BepInEx/core/BepInEx.Preloader.dll
export LD_LIBRARY_PATH="./doorstop_libs:$LD_LIBRARY_PATH"
export LD_PRELOAD="libdoorstop_x64.so:$LD_PRELOAD"
export LD_LIBRARY_PATH="./linux64:$LD_LIBRARY_PATH"
export SteamAppId=892970
exec ./valheim_server.x86_64 -name "My Valheim Server" -port 2456 -world "Dedicated" -password "$VALHEIM_PASSWORD"
Install BepInExPack_Valheim in the Linux server directory. Save this script there under its new name, not over the pack launcher. Set VALHEIM_PASSWORD privately in the launch environment, check the world name, then run sh start_valheim_modded.sh there.
Hosting plans
Prices are approximate monthly reference figures, not quotes. Ranked by the smallest tier with a verified price that covers 5 GB, then by lower price within the same tier.
-
Hostinger Game PanelRank 1 · Best fit8 GB plan $14.99/mo
USD per month at renewal for a 24-month term, not monthly billing or the introductory rate. This is a self-managed VPS: check server software, OS support and setup requirements for your game.
Price source Placeholder link · not an order page
Other-game quotes · budget reference only
These prices come from another game’s plan page. They are shown only as a rough cross-game budget — never ranked or highlighted, and not a sign that the host supports this game.
-
Apex HostingMinecraft only6 GB plan $22.49/mo
Minecraft Java plans, billed monthly in USD. These are recurring rates, not first-month offers. The 16 GB price is for EX Series; check other games separately.
Price source Placeholder link · not an order page -
ShockbyteMinecraft only6 GB plan $23.99/mo
Minecraft only. Prices are the USD monthly equivalents shown before the annual promotion, not month-to-month checkout quotes. Confirm the term and renewal total before ordering.
Price source Placeholder link · not an order page
Not a compatibility guarantee: check that the host supports your game, version and mods before ordering.
Frequently asked questions
Can Valheim go past 10 players?
Not in vanilla: 10 is the built-in cap. Some BepInEx mods raise it, but load grows quickly, especially in shared bases.
Why does building size matter?
Every placed piece is saved in the world and checked for structural support. Huge bases raise both memory use and CPU time.
Does crossplay change requirements?
Not much for RAM. Adding -crossplay lets Xbox and Game Pass players join through PlayFab relay instead of Steam networking.
Which ports do I forward?
With the Steam backend, forward UDP 2456–2457 for the default -port 2456 (the server uses the port and port+1). With -crossplay, traffic goes through a relay, so no forwarding is needed.