EN · $ USD
Game and Bot VDS Guides

How to Run Multiple Game Servers on One VDS

7 min read Updated: OyunBulut technical team

In short

Yes, you can run multiple game servers on one VDS. Give each server its own port, folder and user, split total RAM while leaving headroom for the OS, and limit CPU cores with systemd, Docker or Pterodactyl. When total RAM stays maxed out or one server's load starts lagging the others, it's time to move to a separate VDS.

In this guide
  1. Start with the Resource Math: How Many Servers Will Fit?
  2. Port Planning
  3. Separate Folders and Users
  4. Splitting CPU and RAM: Three Methods
  5. Monitoring the Load
  6. Don't Let Backups and Maintenance Overlap
  7. When Should You Move to a Separate Server?
  8. Ryzen or Xeon? Choose by Workload Mix
  9. Next Step

Running multiple game servers on one VDS is the most cost-effective way to host a Minecraft server, a Valheim world, TeamSpeak and a few Discord bots on the same machine. Success comes down to three things: a conflict-free port plan, deliberate sharing of CPU and RAM between servers, and isolating each server from the others. This guide sets up all three hands-on, then makes clear when you should move to a separate server.

Start with the Resource Math: How Many Servers Will Fit?

On a VDS, resources aren't shared with other customers; they're dedicated to you. But your own servers share those resources among themselves. Start planning with two questions:

  • RAM: The combined peak usage of all servers shouldn't exceed the RAM left after the operating system's share. A good rule is to keep at least 1-2 GB free for the system on Linux, and more on Windows.
  • CPU: The main loop (tick) of games like Minecraft, FiveM, Rust and Valheim runs largely on a single core. So aim to give every heavy game server at least one, ideally two, full cores. Your vCPU count is the practical limit on how many heavy servers can run comfortably at the same time.

Example Allocation: 8 vCPU, 16 GB RAM

The table below is a guideline; real usage depends on player count, plugins and map.

ServiceAssigned coresRAM limit
Minecraft (Paper, survival)0-16 GB
Valheim2-34 GB
Rust (small map, testing)4-5Limited to what's left; not enough for a large map
TeamSpeak + Discord bots61-1.5 GB
Operating system, backups, monitoring72 GB

A balanced plan built for this scenario is the OB-R9-8 Ryzen VDS: AMD Ryzen 9 5900X, 8 vCPU, 16 GB RAM and 100 GB NVMe. If you add a RAM-hungry game like Rust to the mix, you'll need to redo the math; a large Rust map alone can take most of that RAM.

Port Planning

Two servers can't listen on the same port. If you get an "address already in use" error when starting a second server, this is the cause. Draw up a port table before installing, and configure every new server according to it.

ServerDefault portFor a second instanceWhere to change it
Minecraft Java25565/TCP25566/TCPserver-port in server.properties
FiveM30120/TCP+UDP30121/TCP+UDPendpoint_add_tcp and endpoint_add_udp in server.cfg
Rust28015/UDP, RCON 28016/TCP28025 and 28026+server.port and +rcon.port parameters
Valheim2456-2457/UDP2466-2467/UDP-port parameter (uses the port and the next one up)
TeamSpeak 39987/UDP, 30033/TCPAdded as a virtual serverTeamSpeak query interface or an admin tool

Example server.cfg for a second FiveM server:

endpoint_add_tcp "0.0.0.0:30121"
endpoint_add_udp "0.0.0.0:30121"

After changing a port, don't forget to open the same port in your firewall:

sudo ufw allow 25566/tcp
sudo ufw allow 30121
sudo ufw allow 2466:2467/udp

So players don't have to type a port, you can use an SRV record for Minecraft; details are in the How to Connect a Domain to Your Minecraft Server guide.

Separate Folders and Users

Create a separate Linux user and a separate folder for each server. That way, a vulnerable plugin or a buggy script can only reach its own folder and can't delete other servers' files.

sudo adduser --disabled-password --gecos "" mc1
sudo adduser --disabled-password --gecos "" valheim
sudo adduser --disabled-password --gecos "" rust

For Steam-based games, follow the steps in How to Set Up a Game Server on a VDS with SteamCMD in a separate folder for each user.

Splitting CPU and RAM: Three Methods

1. Limits with systemd (the Lightest Option)

If you run each server as a systemd service, adding two lines to the [Service] section of the unit file is enough. CPUAffinity pins the server to specific cores, and MemoryMax sets the maximum RAM it can use.

sudo systemctl edit minecraft
[Service]
CPUAffinity=0 1
MemoryMax=6G
sudo systemctl daemon-reload
sudo systemctl restart minecraft

For Java-based servers, keep -Xmx a bit below MemoryMax. Java also uses memory outside the heap; if you combine -Xmx6G with MemoryMax=6G, the system may kill the server when it hits the memory limit. For a 6 GB limit, -Xmx5G is a safe choice.

2. Isolation with Docker

Docker runs each server in its own container. Dependencies don't clash, and limits are set with a single command:

docker run -d --name mc1 --restart unless-stopped \
  --cpuset-cpus="0,1" --memory 6g \
  -p 25565:25565 \
  -e EULA=TRUE -e MEMORY=5G \
  -v /srv/mc1:/data \
  itzg/minecraft-server

--cpuset-cpus pins the cores, --memory sets the RAM cap, and -v keeps the world files on the server even if the container is deleted.

3. Pterodactyl Panel

Pterodactyl is open-source game panel software that uses Docker under the hood. You assign CPU percentage, RAM, disk and ports (allocations) to each server from a web interface, and you can give friends access to manage only their own servers. If you'll be managing several games on an ongoing basis, this is the cleanest solution. To install it, follow the How to Install Pterodactyl Panel on a VDS guide.

MethodDifficultyIsolationBest for
systemdLowResource limits, shared system2-3 servers, single admin
DockerMediumSeparate resources and dependenciesDifferent games and versions
PterodactylMedium-high (setup)Docker + web interface + user permissionsMany servers, team management

Monitoring the Load

You can't tell whether your allocation is right without measuring it. These tools are enough:

  • htop: Shows which process is pushing which core. A core pinned at 100% all the time means that server has hit its ceiling.
  • systemd-cgtop: Lists live CPU and RAM usage of systemd services.
  • docker stats: Shows container usage.
  • In-game metrics: TPS in Minecraft, hitch warnings in FiveM, server FPS in Rust. Even with a solid network, players experience a CPU shortage as lag.

Don't Let Backups and Maintenance Overlap

When several servers live on the same machine, timing is the most commonly overlooked issue. If every server's backup starts in the same minute, disk and CPU get hammered at once, and everyone in-game at that moment gets stutters.

  • Schedule each server's backup at a different time, and pick the hours with the fewest players.
  • Use low priority when compressing backups: nice -n 19 ionice -c3 tar -czf yedek.tar.gz dunya/ keeps the job from getting ahead of your game servers.
  • Keep backups on external storage too, not just on the same VDS; a disk failure or a bad command affects every server at once.
  • Stagger scheduled restarts as well, so the heavy startup load of one server doesn't overlap with another's.

The same discipline applies to updates: when updating one server, don't touch the others' files, and keep a separate note of each server's version.

When Should You Move to a Separate Server?

One VDS isn't always the right answer. If any of these signs becomes constant, it's time to split:

  1. Total RAM usage is nearly maxed out at peak hours and swap starts getting used.
  2. When one server's player count rises, TPS or FPS drops on the others.
  3. A large FiveM roleplay or high-population Rust server wants most of the machine on its own.
  4. Maintenance or restarts on one server affect the other communities too.
  5. Disk and CPU load during backups is felt by players.

General rule: move your main server, the one that matters most for revenue or community, to its own VDS; small and supporting services can stay on the shared machine.

Ryzen or Xeon? Choose by Workload Mix

You can get the same 8 vCPU and 16 GB RAM with two different processor families. The choice depends on which type of load dominates your VDS:

  • If game servers dominate: Because the tick loop is sensitive to single-core speed, the Ryzen 9 5900X-based OB-R9-8 is the better fit.
  • If bots, TeamSpeak, web panels and small servers dominate: These services are made up of many lightweight tasks; the OB-XEON-8 Intel VDS, which offers the same cores and RAM on a tighter budget, is enough.

Next Step

Once you've written down your port table and RAM allocation, you'll see the total you need. If you want several game servers running smoothly at the same time, start with OyunBulut's OB-R9-8 plan; with KVM virtualization, root access and layered DDoS protection, you can set up Docker or Pterodactyl however you like. If you'll mostly host bots and supporting services, OB-XEON-8 is the more economical choice.

Frequently asked questions

How many game servers can I run on one VDS?

There's no fixed number; total RAM and core count decide it. As a practical rule, give every heavy game server at least one, ideally two, cores and as much RAM as its peak usage, and leave headroom for the system.

How do I run two Minecraft servers on the same VDS?

Install each one in a separate folder and set a different server-port value in server.properties, for example 25565 and 25566. Open the second port in your firewall too.

Does Docker reduce game server performance?

Docker provides OS-level isolation rather than virtualization, so its overhead is very low. With the right CPU and RAM limits, game servers run comfortably.

Why is one server lagging the others?

Usually because no limits are set, so one server eats all the cores or RAM. Confine each server to its own share with CPUAffinity and MemoryMax, or with Docker limits.

Should I use Pterodactyl or systemd?

If you manage two or three servers on your own, systemd is enough. If you have many servers or need to give teammates separate permissions, Pterodactyl is more organized.

For this guide

Recommended plans

With 8 vCPU and 16 GB RAM, the OB-R9-8 gives you enough room to assign dedicated cores and RAM to multiple game servers, and root access lets you set up Docker or Pterodactyl yourself.

OB-R9-8

Recommended

16 GB RAM

$24.58/mo

+VAT

  • Processor8 vCPU
  • ModelAMD Ryzen 9 5900X
  • Disk100 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

16 GB RAM

$9.83/mo

+VAT

  • Processor8 vCPU
  • ModelIntel Xeon
  • Disk100 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

Ryzen VDS — tüm paketler Intel VDS — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.