Game server hosting on a VPS

A Minecraft or Valheim server for a group of friends fits on P4 (2 vCPU, 4 GB RAM, 80 GB NVMe); modded worlds and larger communities want P8 or a dedicated plan. Pick the city with the lowest ping for most players.

Recommended start: P2, $6.95/mo

How much memory should I give Minecraft, Valheim or CS2?

Each game has its own appetite, and the numbers below are what the server processes actually use once players are online:

GameTypical useMemoryPlan
Minecraft Java, Paper, vanillaup to 10 players2~3 GB heapP4
Minecraft Java, Paper20~40 players5~6 GB heapP8
Minecraft modpacks (Forge, Fabric)10~20 players6~10 GB heapD16
Minecraft Bedrockup to 20 players1~2 GBP2
Valheim dedicated serverup to 10 players2.5~4 GBP4
CS2 dedicated serverone match, 10~12 slots2~3 GB, plus about 40 GB diskP4

Keep 1~1.5 GB outside the Java heap for the JVM itself, the OS and backups. A server with 4 GB should run Minecraft with -Xmx3G, not -Xmx4G.

Why does single-core speed matter more than core count?

Most game servers simulate the world on one main thread. Minecraft ticks 20 times a second on that thread; if one tick takes longer than 50 ms, every player feels lag, no matter how many idle cores the server has.

That is why the Performance family is our default pick: newer AMD EPYC generations with quick single cores, sold in all 15 cities. For a public server that is busy every evening, the Dedicated CPU family reserves each thread for you, so a neighbour compiling code never steals a tick. The Shared vCPU family can host a small private world in Europe, but tick time will vary more.

Extra cores still help: chunk generation, plugins like Dynmap and world backups run on other threads and keep the main thread free.

Plans that fit

Sizes picked for this project, smallest first. Prices are per month; the order total is the shortest term that reaches $40.

PlanWhySizePer monthOrder from
P2Minecraft Bedrock or a tiny Java world for 2~5 friends1 vCPU, 2 GB RAM, 40 GB NVMe$6.95$41.70 for 6 months
P4Paper, Valheim or one CS2 match for up to 10 players2 vCPU, 4 GB RAM, 80 GB NVMe$12.05$72.30 for 6 months
P8Paper for 20~40 players, or two small games4 vCPU, 8 GB RAM, 160 GB NVMe$21.65$64.95 for 3 months
D16Modpacks and public servers with steady tick times4 vCPU, 16 GB RAM, 160 GB NVMe$51.95$51.95 for 1 month
D32A network of several worlds behind a proxy8 vCPU, 32 GB RAM, 240 GB NVMe$83.45$83.45 for 1 month

Which city should a game server be in?

Choose the city that gives the median player the lowest ping, not the one nearest to you. Ask players to run ping to the test addresses of a few locations and compare.

Rough guide: European groups do well in Frankfurt or Amsterdam; mixed US groups in Ashburn; West Coast and Pacific players in Hillsboro; South-East Asia in Singapore; Japan and Korea in Tokyo; Australia in Sydney; Brazil in Sao Paulo. Under 60 ms feels good for building games; shooters like CS2 benefit from staying under 40 ms.

How do I set up a Minecraft server?

Use Ubuntu 24.04, a dedicated user and a systemd unit so the server restarts on its own:

apt -y install openjdk-21-jre-headless screen
adduser --disabled-password --gecos "" mc
sudo -u mc mkdir -p /home/mc/server && cd /home/mc/server
# download the latest Paper jar from the official site, then:
echo "eula=true" > eula.txt

Create /etc/systemd/system/minecraft.service:

[Service]
User=mc
WorkingDirectory=/home/mc/server
ExecStart=/usr/bin/java -Xms3G -Xmx3G -XX:+UseG1GC -jar paper.jar --nogui
Restart=on-failure
[Install]
WantedBy=multi-user.target

Then systemctl enable --now minecraft and open the port with ufw allow 25565/tcp. In server.properties lower view-distance to 8 and simulation-distance to 6 for a large drop in CPU use with little visible change.

How do I install Valheim or CS2?

Both come through SteamCMD, which installs and updates dedicated servers without a Steam login:

dpkg --add-architecture i386 && apt update
apt -y install steamcmd
sudo -u steam steamcmd +force_install_dir /home/steam/valheim +login anonymous +app_update 896660 validate +quit

Valheim listens on UDP 2456~2458 (ufw allow 2456:2458/udp) and is started with start_server.sh, where you set the world name and password. For CS2 the app id is 730, the game port is 27015 UDP and TCP, and the install is large, so plan for 40 GB or more of disk; P4 has 2 vCPU, 4 GB RAM, 80 GB NVMe. Run each game under its own Linux user and wrap it in a systemd unit like the Minecraft example.

How much traffic does a game server use?

Less than most people expect. A Minecraft player typically sends and receives 50~150 MB per hour, and Valheim is in the same range. Twenty players for four hours every evening come to roughly 0.3~0.4 TB of outgoing data per month.

That fits easily in 20 TB in Europe. In North America and Asia-Pacific P4 includes 1 TB, which is still enough for a regular group. Map renderers and resource pack downloads add more, so host large resource packs on a separate web server or CDN if your community grows. Extra data is $0.72 per TB in Europe and North America, $4.98 in Asia-Pacific and Sao Paulo.

How do I protect a game server?

Network DDoS filtering sits in front of every server, which handles volume floods that are common around public game servers. The rest is in your hands:

  • Enable white-list=true on private Minecraft servers and set online-mode=true.
  • Keep RCON closed to the internet, or bind it to 127.0.0.1 and use it over SSH.
  • Open only the game ports and SSH in ufw.
  • Back up the world folder on a schedule with tar while the server runs save-off, or take the backup add-on for seven daily copies of the whole disk.

What does a game server cost?

P4 is $12.05 a month and is sold from $72.30 for 6 months. Split between eight friends, that is a small monthly share each. A modded server on D16 is $51.95 a month and can be paid one month at a time, since that term already passes the $40 order minimum. Every term carries the same monthly price.

Game server VPS, answered

Can one plan host two or three game worlds at once?

Yes, if memory allows. Give each its own user, port and systemd unit. Two small Minecraft worlds and a Valheim server fit on P8 with room to spare.

Do you offer a game panel?

No panel is preinstalled. You can install Pterodactyl, Pelican or AMP yourself on the Docker CE image or plain Ubuntu, since you have full root access.

Is Windows available for game servers?

No, all images are Linux. Minecraft, Valheim, CS2, Rust, ARK and most Steam dedicated servers have native Linux builds.

Can I upgrade when my community grows?

Plans are not resized in place. Order the bigger plan in the same city, copy the world folder with rsync, and give players the new address. See moving to a bigger plan.

Should I add swap?

A small swap file prevents crashes during short spikes, but a game that actually uses swap will lag. Size the plan so the game fits in RAM. Details are in swap and memory.

Build it on CheapVPS

Pick the plan, a city near your users and the image, then pay the order in crypto.