Hosting a Minecraft Java server

Java Edition rewards fast cores and a large cache. On a whole machine you can run one huge world or a network of servers behind a proxy.

What do I need to run a Java server?

A current Java runtime, the server software and an open TCP port. Minecraft 1.20.5 and later need Java 21; install the headless JDK from your distribution or from a vendor build such as Temurin. Most communities run Paper, a performance-focused fork of the vanilla server that supports Bukkit and Paper plugins, rather than the vanilla jar.

apt install openjdk-21-jre-headless      # Ubuntu 24.04, Debian 13 ships 21 or newer
adduser --system --group --home /srv/mc mc
cd /srv/mc && runuser -u mc -- java -Xms6G -Xmx6G -jar paper.jar --nogui

Accept the EULA by setting eula=true in eula.txt after the first start. Open TCP 25565, the default port, in the firewall.

How much memory should a server get?

Less than people think, but enough to avoid constant garbage collection. Give the JVM a fixed heap with equal -Xms and -Xmx, and leave memory for the operating system's file cache, which speeds up chunk loading.

ServerPlayersHeap
Vanilla-like survival, Paper10 to 304 to 6 GB
Survival with many plugins30 to 808 to 12 GB
Large modpack (Fabric or NeoForge)10 to 408 to 16 GB
Velocity proxyAny512 MB to 1 GB

Use the G1 collector with tuned pause targets, as in the widely shared flag sets for Paper, and watch tick times rather than memory graphs: a healthy server holds 20 ticks per second with an average tick well under 50 ms.

How do I build a network of servers?

Put a proxy in front and run each game mode as its own server. Velocity is the modern proxy for Paper networks: players connect to it on 25565, and it forwards them to a lobby, survival, minigames and so on, each listening on a local port. Spread the backends across cores; each server's main thread uses one core heavily.

# velocity.toml (excerpt)
[servers]
lobby = "127.0.0.1:30066"
survival = "127.0.0.1:30067"
try = ["lobby"]

Bind backend servers to 127.0.0.1 and enable modern forwarding with a shared secret, so nobody can bypass the proxy. On one machine with 16 cores, such as GAME-2 2026, a network of eight to ten busy servers fits with room for the database and backups.

Why pre-generate the world?

Because generating new chunks is the heaviest work a server does. When players explore fresh terrain, the main thread spends its time building it and everyone feels lag. Pre-generating a border, for example 10,000 blocks around spawn, with a plugin such as Chunky moves that work to a quiet hour. Set a world border to match so exploration stays in generated land.

Which machine suits Minecraft Java?

A high-clock processor with a large cache, plus NVMe drives. The Game line was built for this: GAME-1 2026 with the AMD Ryzen 7 9800X3D holds a big survival world with many players at a steady 20 ticks per second. For smaller communities, ESSENTIAL-GAME-1 and ESSENTIAL-GAME-2 offer Ryzen 5000 chips at a lower price, and ESSENTIAL-M provides Zen 5 cores for growing networks. Read Game server hosting for a wider look at game hosting.

How do I back up a running world?

Pause saving, copy, then resume, so the copy is consistent. From the console or RCON: save-off, save-all flush, copy the world folders, save-on. Send the archive to another machine nightly and keep a week or more of copies; griefing is often noticed days later.

mcrcon -H 127.0.0.1 -p "$RCON_PW" "save-off" "save-all flush"
tar -C /srv/mc -cf - world world_nether world_the_end | zstd -T0 > /var/backups/mc-$(date +%F).tar.zst
mcrcon -H 127.0.0.1 -p "$RCON_PW" "save-on"

Keep RCON bound to localhost; never expose it to the internet.

Machines for Java servers and networks

Lowest monthly price of each model across its data centres; the model page shows the price in every location.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-GAME-1AMD Ryzen 5 5600X632 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
ESSENTIAL-GAME-2AMD Ryzen 7 5800X864 GB2x 960 GB SSD NVMe1 Gbps unmetered$60.00
ESSENTIAL-MAMD Ryzen 9 9900X1264 GB2x 512 GB SSD NVMe1 Gbps unmetered$70.80
GAME-1 2026AMD Ryzen 7 9800X3D864 GB2x 960 GB SSD NVMe1 Gbps unmetered$198.60
GAME-2 2026AMD Ryzen 9 9950X3D1664 GB2x 960 GB SSD NVMe1 Gbps unmetered$222.60

Compare the Ryzen and X3D models side by side by data centre.

See all servers and prices

Related pages

Game server hosting

Ryzen X3D and Ryzen 5000 machines for Minecraft, Rust, CS2 and FiveM worlds that need steady tick rates.

Read more

Minecraft Bedrock server

Host a Minecraft Bedrock Dedicated Server for phone, console and Windows players: install on Linux, open the UDP ports, add packs and size the machine.

Read more

Game servers

AMD Ryzen X3D processors with large L3 cache for game servers.

from $198.60 a monthRead more

Firewall for game servers

Open exactly the UDP and TCP ports a game needs, protect query ports from reflection abuse and keep lag low under load.

Read more

Questions and answers

Which Java version does a Minecraft server need?

Java 21 for Minecraft 1.20.5 and later. Install the headless runtime from your distribution or a vendor build.

How much RAM should I give Minecraft?

4 to 6 GB for a typical Paper server, 8 to 16 GB for large modpacks. Set equal -Xms and -Xmx values.

What is Velocity?

A proxy that sits in front of several Paper servers, so players move between lobby and game modes through one address.

Which port does Minecraft Java use?

TCP 25565 by default. Backend servers behind a proxy should listen on localhost only.

Which server is best for a large Minecraft network?

GAME-2 2026 with 16 fast cores and a large cache runs many backend servers on one machine.