RAM for players, plugins and mods
These are starting points for a survival world with moderate settings. Build style matters as much as the number of players: one large redstone farm can cost more than five people walking around.
| Group | Java heap | Server RAM | Plan | Per month, with public IP |
|---|---|---|---|---|
| 1–4 friends, vanilla or Paper | 1.2 GB | 2 GB | Basic | ₼37.90 |
| 5–10 players, a few plugins | 2.5–3 GB | 4 GB | Standard | ₼49.90 |
| 10–25 players, or a light mod pack | 5–6 GB | 8 GB | Professional | ₼83.90 |
| Heavy mod pack, small group | 8–12 GB | 16 GB | Business Pro | ₼155.90 |
- Basic₼27.90/mo
2 vCPU · 2 GB RAM · 40 GB NVMe
Public IP +₼10/mo, With public IP: ₼37.90/mo
- Standard₼39.90/mo
2 vCPU · 4 GB RAM · 60 GB NVMe
Public IP +₼10/mo, With public IP: ₼49.90/mo
- Professional₼73.90/mo
4 vCPU · 8 GB RAM · 100 GB NVMe
Public IP +₼10/mo, With public IP: ₼83.90/mo
| Plan | vCPU | RAM | NVMe | Server, monthly | With public IP |
|---|---|---|---|---|---|
| Basic | 2 | 2 GB | 40 GB | ₼27.90/mo | ₼37.90/mo |
| Standard | 2 | 4 GB | 60 GB | ₼39.90/mo | ₼49.90/mo |
| Professional | 4 | 8 GB | 100 GB | ₼73.90/mo | ₼83.90/mo |
Prices in manat (AZN), billed monthly. The public IP is +₼10 a month and is assigned automatically.
Never give the whole memory to Java. The JVM uses extra memory beside the heap, and the system needs some too, so leave about 1 GB free on a small server and more on a big one. Adding heap "to be safe" is not free either: cleaning a huge heap can cause short freezes. Our RAM guide shows how to tell real shortage from cached files.
Why more cores rarely raise TPS
The main game loop, with mobs, redstone and block updates, runs on one thread. It should finish 20 ticks a second; if a tick takes longer than 50 ms, everybody feels lag. Other cores help with network traffic, chunk work, garbage collection and backups. Two vCPU are a sensible minimum, but going from four to eight seldom changes how the game feels.
What does help, in this order:
- Lower
simulation-distanceto 5 or 6 andview-distanceto 7 or 8 inserver.properties. - Generate the world in advance with a chunk pre-generation plugin and set a world border.
- Use Paper instead of the plain server if you need plugins and performance.
- Find the cause with the spark profiler before paying for a larger plan.
Match Java to the game version
| Minecraft Java Edition | Java needed |
|---|---|
| 1.20.5 to 1.21.11 | Java 21 |
| 26.1 and newer | Java 25 |
| 1.18 to 1.20.4 | Java 17 |
On Ubuntu 24.04 install openjdk-21-jre-headless or openjdk-25-jre-headless with apt. Debian 12 ships only Java 17, so add the Eclipse Temurin repository:
sudo apt install -y wget gpg
sudo install -m 0755 -d /etc/apt/keyrings
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public \
| sudo gpg --dearmor -o /etc/apt/keyrings/adoptium.gpg
echo "deb [signed-by=/etc/apt/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb bookworm main" \
| sudo tee /etc/apt/sources.list.d/adoptium.list
sudo apt update && sudo apt install -y temurin-21-jre # or temurin-25-jreInstall the server and accept the EULA
sudo adduser --system --group --home /opt/minecraft minecraft
cd /opt/minecraft
# copy the link from the official Minecraft or PaperMC download page
sudo -u minecraft wget -O server.jar "PASTE_THE_LINK_HERE"
sudo -u minecraft java -Xmx1G -jar server.jar nogui # first run stops at the EULARead the Minecraft EULA. If you agree, change eula=false to eula=true in eula.txt; nobody can accept it for you, and a public or paid server must also follow Mojang's usage guidelines. Then set at least white-list=true, online-mode=true and motd in server.properties. Open two ports only:
sudo ufw allow OpenSSH
sudo ufw allow 25565/tcp
sudo ufw enableLeave RCON off if you do not need it. If you do, keep its port closed in the firewall. The other steps are in securing a VPS.
A systemd service with a console
The socket gives you a pipe for commands, so no screen session is needed. First /etc/systemd/system/minecraft.socket:
[Unit]
PartOf=minecraft.service
[Socket]
ListenFIFO=/run/minecraft.stdin
SocketUser=minecraft
SocketMode=0600
RemoveOnStop=trueThen /etc/systemd/system/minecraft.service:
[Unit]
Description=Minecraft server
After=network-online.target
Wants=network-online.target
[Service]
User=minecraft
WorkingDirectory=/opt/minecraft
Sockets=minecraft.socket
StandardInput=socket
StandardOutput=journal
StandardError=journal
ExecStart=/usr/bin/java -Xms2500M -Xmx2500M -jar server.jar nogui
SuccessExitStatus=143
TimeoutStopSec=120
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.targetsudo systemctl daemon-reload
sudo systemctl enable --now minecraft
journalctl -u minecraft -f
echo "whitelist add PlayerName" | sudo tee /run/minecraft.stdinA normal stop sends SIGTERM; the server saves the world and exits, which is why the timeout is generous.
Back up a world that is in use
Copying files while the game writes to them can produce a broken archive. Pause saving, flush, copy, resume. Save as /usr/local/bin/mc-backup, make it executable and run it from root's cron:
#!/bin/bash
P=/run/minecraft.stdin
[ -p "$P" ] || exit 1
mkdir -p /var/backups/minecraft
trap 'echo save-on > "$P"' EXIT
echo save-off > "$P"; echo "save-all flush" > "$P"; sleep 20
tar -C /opt -czf "/var/backups/minecraft/mc-$(date +%F-%H%M).tar.gz" \
--exclude=minecraft/logs minecraft
find /var/backups/minecraft -name 'mc-*.tar.gz' -mtime +5 -deleteRun it only while the server is up, and watch the disk: worlds grow with every explored chunk. Copy the archives to S3 storage, because a backup on the same disk is lost with the disk.
Where a VPS is the wrong choice
- Players mostly outside the region. The server is in Baku. Friends in Western Europe or Turkey may get a better ping elsewhere; measure before choosing.
- You want a game panel. There is no one-click Minecraft installer here. You get a clean Linux server and the commands above.
- Public servers that attract attacks. The plans do not include DDoS protection. A whitelisted server for friends is a much better fit.
- Very large modded worlds. If one thread is already full, a bigger VPS will not save it.
Minecraft server questions
Is 2 GB of RAM enough for a Minecraft server?
For up to about four friends on vanilla or Paper with a reduced view distance, usually yes. For plugins, exploration or more players, take 4 GB.
Do I need a public IPv4 address for Minecraft?
Yes, your friends connect to that address. The public IP is a separate ₼10 a month; the prices in the table of player groups already contain it. On a private network VPS, which has no public address of its own, you would have to forward TCP 25565 from your router to the server.
Can Bedrock players join?
Not a plain Java server. Bedrock has its own server software on UDP 19132, or you can add a Java plugin such as Geyser that translates between the two.
How do I update the server safely?
Stop it, make a backup, replace server.jar, check which Java version the new release needs and start it. A world opened in a newer version cannot simply be opened in the old one again.
Can I change the plan when more friends join?
Yes. You can request more CPU, RAM or disk in the panel. Raise the heap in the service file afterwards, otherwise Java will not use the new memory.