← All posts
minecraftserver-managementperformancehardwarejvmhostingguide

Minecraft Server Hardware and Hosting: RAM, CPU, Java Flags and Where to Run It

What actually limits a Minecraft server, how much RAM to give it, which Java version each Minecraft release needs, what Aikar's flags, MeowIce's flags, G1GC, ZGC and Shenandoah do, and how Realms, a VPS with a panel and a hosting provider compare.

ChunkPod Team · · 33 min read

Most advice about Minecraft server hardware starts and ends with RAM, because RAM is the number hosts sell by the gigabyte. It's rarely the thing that decides whether a server runs at a steady 20 TPS. This guide goes through the parts that do, in the order they usually matter:

  1. What actually limits a server: single-thread CPU speed, loaded chunks and entities.
  2. How much RAM to give it, and why more than that can hurt.
  3. Which Java version each Minecraft release needs, and what breaks when you get it wrong.
  4. What JVM flags and garbage collectors do, including Aikar's flags, MeowIce's flags, G1GC, ZGC and Shenandoah.
  5. Where to run it: Realms, a home PC or VPS with a panel, or a hosting provider.

If you already have a lagging server and want a troubleshooting checklist, How to Fix Minecraft Server Lag covers that side in more detail.

What actually limits a Minecraft server

The tick and its 50 millisecond budget

A Minecraft server runs its game logic in ticks, aiming for 20 per second. That gives each tick a budget of 50 milliseconds. Inside that window the server has to process every block update, redstone signal, hopper transfer, mob AI decision, crop growth check and player action for every loaded chunk.

If a tick takes longer than 50 ms, the next one starts late. When that keeps happening, TPS drops below 20, the game slows down for everyone, and players see rubber-banding, delayed block breaks and mobs that freeze in place. If the server falls far enough behind, the console logs the familiar "Can't keep up!" warning.

Single-thread speed matters more than core count

The main game loop is single-threaded. All the work listed above happens on one core, one tick after another. That has a direct consequence for hardware: a CPU with 8 fast cores will run one Minecraft server better than a CPU with 32 slow ones.

Extra cores still do some useful work:

  • Chunk loading and saving, network I/O and lighting run partly off the main thread on modern versions.
  • Plugins that do their work asynchronously, such as database writes, can use other cores.
  • The garbage collector runs some of its work on background threads (more on that below).
  • Several servers on the same machine, for example a Velocity proxy in front of a survival and a creative server, each get their own main thread.

What extra cores can't do is raise the TPS ceiling of a single server. Folia, a Paper fork, splits the world into regions that tick on separate threads, but it breaks most plugins and is aimed at very large servers. Almost every server people run today, Vanilla, Paper, Purpur, Fabric, Forge or NeoForge, is still bound to one core for the core simulation.

When you compare plans or machines, the useful questions are what CPU generation it is and what its single-thread performance looks like. A plan that says "8 cores" without naming the CPU tells you very little about how the server will tick. On a VPS, also be aware that shared vCPUs can be slower than the same core on dedicated hardware when neighbours are busy.

Loaded chunks are the real workload

A chunk is a 16 by 16 column of blocks. Every chunk the server keeps active has to be ticked: water flows, fire spreads, crops grow, mobs pathfind, hoppers pull items. The number of active chunks, multiplied by what's in them, is the server's actual workload.

Two settings in server.properties decide how many chunks are loaded around each player:

  • view-distance sets how many chunks the server sends to clients so they can render them.
  • simulation-distance, added in Minecraft 1.18, sets how many chunks around each player are actually ticked.

Before 1.18, view distance did both jobs, and raising it was the fastest way to overload a server. Now you can give players a wide view for the scenery and simulate a smaller ring around them. The number of chunks grows with the square of the distance: a radius of 10 around one player is a 21 by 21 square, or 441 chunks, while a radius of 6 is 169. Overlapping players share chunks, players spread across the map don't.

Reasonable starting points:

Serverview-distancesimulation-distance
Small SMP, a few friends106 to 8
Busy public server84 to 6
Modded server with heavy machinery mods64, then tune

The default view distance of 10 is often too high for a public server with 20 or more players online. Lowering view and simulation distance is the single change that most often shows an immediate TPS improvement.

Entities are chunks with legs

Every mob, villager, dropped item, item frame, armor stand, minecart and boat is something the server thinks about every tick. Two servers with the same player count and view distance can tick very differently because one has three large mob farms and the other doesn't.

The usual offenders:

  • Mob farms that hold hundreds or thousands of mobs in a small area.
  • Villager trading halls with large numbers of villagers pathfinding.
  • Item sorting systems and storage rooms with walls of hoppers pulling from chests.
  • Dropped items that never despawn because hoppers keep moving them.

On Paper and Spigot, spigot.yml, bukkit.yml and Paper's paper-world-defaults.yml expose the settings that control this: entity activation range (how close a player has to be before a mob starts thinking), mob spawn limits per player, item merge radius and hopper transfer rates. Which server software you run affects how many of these knobs you have. Vanilla and Fabric expose far fewer than Paper and its forks, which is covered in Paper vs Spigot vs Fabric vs Forge.

World generation is the biggest single spike

Generating new terrain is the heaviest thing a server does. Building a chunk from scratch involves noise sampling, placing features and structures, and in modded worlds whatever extra worldgen mods add. When a player flies or sprints into unexplored land, the server has to generate every new chunk in their path, and TPS can collapse until it catches up.

Pregeneration moves that work to a quiet time. Chunky, available for Paper, Spigot, Purpur, Fabric and NeoForge, generates a fixed radius of chunks and saves them to disk, so the server only loads them later. Combined with a world border at the same radius:

  • New terrain is never generated during peak hours.
  • The world folder stops growing once the pregen finishes.
  • Backups take a predictable amount of time and space.

For a survival server with 20 to 50 players, a 5,000-block radius is usually enough. Remember to pregenerate the Nether and the End too, usually at a smaller radius.

Measure before you change anything

A profiler tells you what is actually eating the tick. spark is the standard choice and works on Paper (where it's built in on recent versions), Fabric, Forge and NeoForge. Run a profile during normal play, then look at which entities, chunks, plugins or mods take the most time. spark also reports garbage collection activity separately from tick time, which matters for the sections on JVM flags below.

A sensible order of operations for a struggling server:

  1. Profile with spark to find out what's using the tick.
  2. Lower view distance and simulation distance.
  3. Deal with entity counts: cap or redesign farms, tune entity activation range and hopper settings.
  4. Pregenerate the world and set a border.
  5. Update the startup flags to match your Java version.
  6. Only then decide whether RAM or the CPU itself is the limit.

Most servers never need to get past step 4. The ones that do usually need a faster CPU core, not a bigger plan.

How much RAM a Minecraft server needs

RAM sets a floor, not a ceiling

A server needs enough memory to hold its loaded chunks, entities, player data, plugins or mods, and the JVM's own overhead. Below that floor it struggles: the garbage collector runs constantly, and in the worst case the server crashes with an OutOfMemoryError.

Above that floor, extra RAM doesn't make the game faster. A server stuck at 12 TPS with 10 GB of heap will not reach 20 TPS with 16 GB, because the tick loop is limited by CPU time, not memory. Extra heap can even make things worse. Memory the server doesn't need is just more space for garbage to pile up before a collection, which can mean bigger, longer collections when they do happen.

Rough sizing by server type

These are starting points for the Java heap (the -Xmx value), not guarantees. Plugin and mod choices, player behaviour and view distance all move the number.

ServerTypical playersHeap to start with
Vanilla or Paper, few or no plugins1 to 52 to 3 GB
Paper or Purpur SMP with a normal plugin set5 to 204 to 6 GB
Paper or Purpur public server with many plugins20 to 506 to 10 GB
Fabric or Forge with a light modpack (under ~100 mods)2 to 104 to 6 GB
Large kitchen-sink modpack (200 or more mods)2 to 108 to 12 GB
Velocity proxyAny512 MB to 1 GB

Modded servers need more memory mainly because of the mods themselves: every mod adds classes, registries, block and item data, and often extra worldgen and machinery that keeps chunks loaded. If you're choosing a modpack for a group, Top Minecraft Modpacks for Multiplayer gives a sense of how heavy the popular ones are.

The RAM Calculator gives an estimate from your player count, server software, number of plugins or mods and view distance. Treat it, and the table above, as a starting point, then watch actual usage in spark after a week of normal play.

Heap is not total memory

The -Xmx value only caps the Java heap. The JVM also uses memory outside it: metaspace for loaded classes (large on modded servers), thread stacks, the JIT compiler's code cache, and direct buffers used for networking and chunk I/O. Leave room for that.

Practical rules:

  • Set -Xms and -Xmx to the same value. The heap is then a fixed size from startup, and the JVM never pauses to grow or shrink it. Paper's documentation recommends this alongside Aikar's flags.
  • Leave 1 to 2 GB above the heap for the JVM's non-heap memory and the operating system. On a machine or container with 8 GB, a 6 to 6.5 GB heap is a reasonable ceiling.
  • On a host or panel with a memory limit, the limit usually covers the whole process. If you set the heap equal to the limit, the process can get killed when non-heap memory pushes it over.
  • Don't expect the panel's memory graph to show "real" usage. With -XX:+AlwaysPreTouch (part of Aikar's flags), the JVM touches the whole heap at startup, so the server shows as using its full allocation immediately. That's expected.

Which Java version your Minecraft server needs

The version table

Minecraft Java Edition is written in Java, so the server needs a Java runtime. The game launcher bundles the right Java for players, but on a server you install it yourself, and the wrong version stops the server from starting.

Minecraft versionMinimum JavaClass file version
Up to 1.16.5Java 852
1.17 and 1.17.1Java 1660
1.18 to 1.20.4Java 1761
1.20.5 to the last 1.21.x releaseJava 2165
26.1 and laterJava 2569

The jump from 1.21 to 26.1 is Mojang's switch to year-based version numbers for Java Edition, not a gap.

Java 17, 21 and 25 are all long-term support (LTS) releases, which vendors keep patching for years. Java 16 was not, and Mojang moved to 17 one Minecraft version later. Always check the requirement for the exact version you're about to run instead of relying on an old forum post.

Mojang keeps raising the minimum for three reasons. Newer JVMs run the game better, garbage collection in particular. Newer language features such as records, switch expressions and pattern matching can't be loaded by an older Java once the game's code uses them. And old Java versions eventually stop receiving security fixes, which matters for software that accepts connections from strangers.

You don't need a full JDK on a server, only a runtime. Free OpenJDK builds such as Eclipse Temurin, Amazon Corretto and Azul Zulu all provide Java 8, 17, 21 and 25.

When Java is too old

This fails immediately with an error like:

code
java.lang.UnsupportedClassVersionError: ... has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

Read the two numbers with the table above: the jar needs class file version 65 (Java 21), and the server was started with Java 17 (61). The fix is to run it with the right Java. The server files don't need to change.

The same error can come from a single plugin or mod compiled for a newer Java than your server runs. In that case the server starts but that plugin fails to load, and the error names the file.

When Java is too new

Newer Java can usually run code built for older Java, so an old vanilla server often starts fine on a modern runtime. Modded servers are where this breaks. Forge for 1.12.2 is the best-known case: its loader was built around Java 8 and doesn't work on Java 9 or later, so a 1.12.2 modpack server needs Java 8 regardless of what else is installed.

Plugins and mods can also break on a newer Java for reasons that have nothing to do with Minecraft:

  • Reflection into Java internals. Java 16 blocked access to JDK internals by default, and Java 17 removed the switch that turned the old behaviour back on. Plugins that relied on it fail with an InaccessibleObjectException.
  • Removed components. The Nashorn JavaScript engine was removed in Java 15, which broke plugins that ran scripts through it unless they bundled their own copy.

Most breakage after an upgrade still comes from Minecraft's own code changing, not Java. Test upgrades on a copy of the server, read the full console log on first start, and check each plugin's or mod's page for supported versions before upgrading.

When the startup flags are too old

Java removes JVM options over time. The CMS garbage collector was removed in Java 14, so an old start script containing -XX:+UseConcMarkSweepGC fails on modern Java with "Unrecognized VM option" followed by "Could not create the Java Virtual Machine". The server never loads. If you've carried the same start script since your first server, replace the flags rather than patching them one at a time.

Running several Java versions side by side

Admins who keep an old modpack, an old world and a current Paper server on one machine need several Java versions. They install side by side without conflict. The problem is the bare java command: it runs whichever install the system treats as the default (set by update-alternatives or the package manager on Linux, or by PATH order on Windows). If every start script says java, every server uses the same version.

The fix is to point each server's start script at the full path of the Java it needs, for example /usr/lib/jvm/temurin-8-jre/bin/java instead of java. Then installing a new Java for one server can't break another. The Startup Script Generator builds a start.sh or start.bat with RAM, Java flags and an optional restart loop for Vanilla, Paper, Purpur, Fabric, Forge and NeoForge, and swapping java for a full path is a one-line edit.

Two habits help: keep a short note in each server folder saying which Java it needs and where that install lives, and update each Java install within its own major version (a newer Java 8 build for the 1.12.2 server is safe, Java 17 is not).

JVM flags and garbage collectors

Why garbage collection causes lag spikes

A Minecraft server creates a huge number of short-lived objects every tick: packets, entity movement, pathfinding results, block updates, temporary lists. Most are useless a few milliseconds later. Java's garbage collector (GC) finds which objects are still reachable and reclaims the rest. The memory it manages is the heap, capped by -Xmx.

To do some of that work safely, a collector has to stop all of the program's threads briefly. That's a stop-the-world pause, and the main thread can't run a tick until it ends.

A pause of a few milliseconds fits inside a tick's spare time and nobody notices. A pause of several hundred milliseconds blows through the budget, and players feel it as a lag spike. JVM flags exist to keep those pauses short and predictable. They can't fix a tick loop that's overloaded by entities or chunks: if spark shows the tick itself taking 80 ms, no GC tuning will bring TPS back to 20.

G1GC: the default collector

G1 (Garbage-First) has been the default collector in HotSpot since Java 9, so every Java version a modern Minecraft server needs uses it unless you choose otherwise.

G1 splits the heap into equal-sized regions. Some hold new objects (the young generation), some hold objects that survived a few collections (the old generation).

  • Young collections copy surviving objects out of young regions and free the rest. They're stop-the-world but usually short, because most young objects are already dead.
  • Concurrent marking works out what's alive in the old generation while the server keeps running.
  • Mixed collections then clean young regions plus the old regions with the most garbage. Collecting the emptiest regions first is where the name comes from.

G1 takes a pause-time goal through -XX:MaxGCPauseMillis (default 200 ms) and sizes its work to try to meet it. It's a goal, not a promise. If G1 can't free memory fast enough, it falls back to a full GC that pauses the server while it cleans the whole heap, and that's the pause players really notice.

Aikar's flags

Aikar's flags are the best-known G1 tuning for Minecraft. Aikar was a long-time Paper contributor, and Paper's documentation still recommends his flags. The standard set, used here with an example 10 GB heap:

code
java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar server.jar --nogui

What the important flags do:

FlagEffect
-XX:+UseG1GCSelects G1. Already the default, but stated so the rest apply.
-XX:+ParallelRefProcEnabledProcesses weak, soft and phantom references with multiple threads, shortening pauses.
-XX:MaxGCPauseMillis=200Keeps G1's default pause goal. Treated as an upper bound, not a per-tick target.
-XX:+UnlockExperimentalVMOptionsUnlocks the young generation sizing flags below.
-XX:+DisableExplicitGCIgnores System.gc() calls from plugins or mods, which would otherwise trigger a full collection mid-tick.
-XX:+AlwaysPreTouchCommits the whole heap at startup. Startup is slower, but there are no page-fault stalls later.
-XX:G1NewSizePercent=30 and G1MaxNewSizePercent=40Makes the young generation much larger than G1's default (5 to 60 percent, adaptive), so short-lived Minecraft garbage dies young instead of being promoted.
-XX:G1HeapRegionSize=8MFixes the region size. Objects larger than half a region are "humongous" and handled expensively, so larger regions reduce that for large arrays such as chunk data.
-XX:G1ReservePercent=20Keeps 20 percent of the heap free for evacuation, so G1 doesn't run out of room mid-collection and fall back to a full GC.
-XX:G1HeapWastePercent=5Keeps collecting old regions until only 5 percent of the heap is reclaimable garbage (default 10).
-XX:G1MixedGCCountTarget=4Spreads old-generation cleanup over 4 mixed collections instead of 8.
-XX:InitiatingHeapOccupancyPercent=15Starts concurrent marking at 15 percent heap occupancy instead of 45, so mixed collections are ready before the heap fills.
-XX:G1MixedGCLiveThresholdPercent=90Lets old regions with up to 90 percent live data be included in mixed collections.
-XX:G1RSetUpdatingPauseTimePercent=5Limits how much of each pause goes to remembered-set updates.
-XX:SurvivorRatio=32 and -XX:MaxTenuringThreshold=1Small survivor spaces, and objects that survive one young collection are promoted. With a young generation this large, anything that survives is usually long-lived anyway.
-XX:+PerfDisableSharedMemStops the JVM writing performance data to a file, removing a small source of stalls when the disk is busy.

The -D properties at the end are markers that Paper recognises. They don't change behaviour.

For heaps of 12 GB or more, Aikar's published set changes five values: G1NewSizePercent=40, G1MaxNewSizePercent=50, G1HeapRegionSize=16M, G1ReservePercent=15 and InitiatingHeapOccupancyPercent=20. Using the small-heap values on a big heap, or the other way round, gives you the wrong young generation and region size.

The overall shape: a large young generation, an early marking trigger and a generous reserve. It trades a little memory efficiency for steady tick times.

MeowIce's flags

MeowIce's flags are a newer preset that grew out of the modded and high-population server community. The commonly copied version is still G1, with the same base as Aikar's (DisableExplicitGC, AlwaysPreTouch, a large young generation, MaxTenuringThreshold=1), but it pushes G1 harder towards concurrent work and adds JIT compiler tuning flags. MeowIce also publishes variants for ZGC and Shenandoah.

Where the G1 version differs from Aikar's:

  • A lower pause goal. The published set uses 130 ms instead of 200. G1 responds with smaller collections that run more often but finish faster.
  • 16 MB regions regardless of heap size, for fewer regions to track and fewer humongous allocations.
  • Earlier marking. InitiatingHeapOccupancyPercent=10 instead of 15, useful on servers that fill the heap quickly during chunk loading storms or big modded ticks.
  • Fewer mixed collections. G1MixedGCCountTarget=3 instead of 4.
  • Remembered-set work out of the pause. G1RSetUpdatingPauseTimePercent=0 pushes that work onto background refinement threads.
  • Concurrent tuning flags such as G1SATBBufferEnqueueingThresholdPercent, G1ConcMarkStepDurationMillis, G1ConcRSHotCardLimit and G1ConcRefinementServiceIntervalMillis, which make the background GC threads do smaller, steadier units of work between ticks.

One caution: some of those concurrent refinement flags were removed from G1 in Java 20 when its refinement code was reworked. Depending on the Java version, a removed flag is either ignored with a warning or stops the JVM from starting. Check the first lines of the startup log after switching flag sets.

The trade-off is CPU. MeowIce's approach moves work out of pauses and onto background threads. On a machine with cores to spare, that's close to free. On a server with 2 or 3 cores, those threads compete with the main thread, and Aikar's calmer defaults may behave better.

Choosing between Aikar's and MeowIce's flags

SituationStarting point
Small Vanilla, Paper or Fabric server, 4 to 8 GB heap, few coresAikar's flags
Large Paper or Purpur server, 12 GB or more, dedicated coresEither, MeowIce's tends to give flatter tick times if there's spare CPU
Modded server with heavy chunk loadingTry MeowIce's, fall back to Aikar's if spark shows the main thread starved of CPU
You don't want to think about itAikar's flags, sized correctly for the heap

On newer Java versions the gap between the two shrinks, because G1's own defaults have improved. Neither set fixes an overloaded tick loop.

Both sets need to be sized to the heap you actually give the server. The JVM Arguments Generator builds a startup line for Vanilla, Paper, Forge or Fabric in Aikar or MeowIce style, scaled to the RAM you choose.

ZGC: pauses that don't grow with the heap

ZGC was experimental in Java 11 and production-ready in Java 15. You enable it with -XX:+UseZGC.

ZGC does almost all its work while the server runs, including moving objects to compact the heap. It uses colored pointers and load barriers: a small check every time the program reads a reference, which redirects the thread if the object has moved. As a result, ZGC pauses are typically well under a millisecond and don't get longer as the heap grows.

The work doesn't disappear, it moves:

  • CPU. ZGC's threads run alongside the server's threads, and the load barriers add a little overhead to the server's own code. On few cores, the GC competes with the main thread.
  • Headroom. If the server allocates faster than ZGC can reclaim, threads hit an allocation stall and wait, which freezes the server just like a pause. ZGC generally wants more spare heap than G1.

The version history matters for Minecraft. The original ZGC used a single generation, a poor fit for a game where most objects die young. Java 21 added generational ZGC behind -XX:+ZGenerational, Java 23 made it the default, and Java 24 removed the old non-generational mode. The older mode also mapped the heap into memory several times, so some tools showed the server using far more memory than it was, which confused a lot of admins.

Shenandoah

Shenandoah was built by Red Hat, experimental in Java 12 and production-ready in Java 15. You enable it with -XX:+UseShenandoahGC. Like ZGC, it compacts the heap while the server runs, so pause times stay short regardless of heap size.

When it falls behind, Shenandoah first slows down allocating threads slightly (pacing), then falls back to a degenerated collection, and as a last resort a full GC. Both of those are stop-the-world pauses.

Two practical points:

  • Not every Java build includes it. Oracle's JDK builds leave it out, while many OpenJDK builds such as Eclipse Temurin include it. If your build doesn't have it, the JVM refuses to start with the flag.
  • Generational mode is newer. Java 21's Shenandoah is single-generation. A generational mode arrived as experimental in Java 24 and became a supported, opt-in mode in Java 25 with -XX:ShenandoahGCMode=generational.

Collectors by Java version

CollectorProduction-ready sinceFlagNotes
G1GCDefault since Java 9-XX:+UseG1GC or nothingIn every HotSpot build
ZGCJava 15-XX:+UseZGCGenerational is opt-in on Java 21, default from Java 23, the only mode from Java 24
ShenandoahJava 15-XX:+UseShenandoahGCNot in Oracle JDK builds. Generational mode opt-in from Java 25

Lined up against Minecraft's own requirements:

  • 1.18 to 1.20.4 (Java 17): ZGC and Shenandoah are available, neither is generational.
  • 1.20.5 to 1.21.x (Java 21): generational ZGC exists but only with -XX:+ZGenerational. A ZGC flag set written for Java 23 or later and copied onto a Java 21 server will quietly run the older single-generation ZGC.
  • 26.1 and later (Java 25): ZGC is always generational, and Shenandoah's generational mode is available as an option.

Why most flag sets still use G1

  • It's in every Java build and every Java version Minecraft has needed in years.
  • It's generational, and most of what a Minecraft server throws away is young.
  • It doesn't need spare cores to keep pauses reasonable, which suits the 2 to 4 core machines many servers run on.
  • It behaves consistently across Java versions, while ZGC changed significantly between 17, 21, 23 and 25.

On a small heap, G1's young collections have little to work through and pauses stay short, so ZGC or Shenandoah rarely pay for their extra CPU. On a large heap with spare cores, where G1's mixed and occasional full collections get longer, a concurrent collector has the most to offer. If you want to try one, change only the collector, run under normal load and compare GC pauses and tick times in spark against what you had before.

Where to run a Minecraft server

The hardware advice above applies wherever the server lives. What changes between options is how much you can configure and how much of the work lands on you. There are three main choices: Minecraft Realms, self-hosting on a home PC or VPS (usually with a panel), and a Minecraft hosting provider.

Minecraft Realms

Realms is Mojang's own server subscription. You pay monthly, Mojang runs the server, and you invite players from inside the game. Java and Bedrock realms are separate products, and players from one can't join the other.

What you get and don't:

  • No plugins or mods on Java. A Java realm runs vanilla Minecraft only: no Paper, Fabric or Forge. Bedrock realms can use add-ons and Marketplace content, which isn't the same thing.
  • No server.properties. You get a short menu of options such as difficulty, game mode and PvP. View distance, simulation distance, spawn rates and JVM flags aren't yours to change.
  • No public address. Players join through the Realms menu after an invite, so you can't list the server or run it publicly.
  • A small player cap of about ten people online at once, which fits a friend group, not a growing community.
  • No admin work. Mojang handles hardware, network, security and version updates. The flip side is that you don't choose when the realm updates, and there's no console or logs if something goes wrong.

Realms fits a friend group that wants vanilla survival with zero admin work. The first request for a land claim plugin or a Fabric performance mod means you've outgrown it.

Self-hosting on a home PC or VPS

Self-hosting means you run the server software yourself, on a spare computer at home or a VPS rented from a cloud company. You get full control: any server software, any plugins or mods, every config file, your own Java version and startup flags, and you decide when to update.

You also handle everything:

  • Setup: Java, the server jar, a start script, and making the server restart after a crash or reboot.
  • Updates: the operating system, Java, the server software and every plugin or mod.
  • Security: a firewall that opens only the ports you need, strong passwords for things like RCON, and a patched OS. The Firewall Rules Generator and RCON Password Generator cover two parts of that.
  • Backups: nobody makes them unless you do, and a backup on the same disk doesn't help if that disk dies.
  • Staying online: if the server goes down at 2am, it stays down until someone notices.

A home PC costs nothing extra if you already own it, but it has to stay on whenever people want to play. Your home upload speed limits how many players it handles smoothly, you'll usually need port forwarding, your home IP may change, and handing out the address exposes your home connection. Gaming or streaming on the same PC or line competes with the server.

A VPS lives in a data centre, stays online without your electricity or router, and keeps your home IP private. You still get root access. The catch is that it's a bare Linux machine: you need to be comfortable in a terminal, and the provider only looks after the hardware and network. VPS plans vary a lot in real CPU performance, and since Minecraft depends on single-core speed, check what CPU a plan actually uses before you buy.

Server panels for self-hosting

A panel gives you a browser interface for starting servers, watching the console and editing files, instead of SSH and a screen or tmux session. Four come up most often.

PterodactylPelicanCrafty ControllerAMP
CostFree, open source (MIT)Free, open sourceFree, open source (GPLv3)Paid licence
Built forMany gamesMany gamesMinecraft Java and BedrockMany games
How servers runDocker container per server, via the Wings daemonDocker container per server, via its own Wings forkNormal processes on the hostInstances managed by AMP, across one or more machines
Host OSLinuxLinuxWindows, Linux or DockerWindows or Linux
Per-server resource limitsHard limits per containerHard limits per containerOnly the Java -Xmx you setSet per instance

Pterodactyl is a PHP (Laravel) web panel plus Wings, a Go daemon installed on every machine (node) that runs servers. Servers are created from "eggs", templates for Paper, Forge, Vanilla and so on, and each runs in its own container with hard RAM, CPU and disk limits, so a server that leaks memory hits its own wall without affecting neighbours. One panel can control many nodes. It has a web file manager, built-in SFTP, per-server backups to the node or S3-compatible storage, schedules for backups, restarts and commands, and subusers with granular permissions. Many hosting companies use it or a modified version. It's also the heaviest to run, needing a web server, database and Redis on top of Wings.

Pelican is a fork of Pterodactyl started by former Pterodactyl developers. It keeps the panel-plus-Wings model, eggs, container limits, SFTP, backups, schedules and subusers, with an admin side rebuilt on Filament. Its docs cover migrating from Pterodactyl. It's the youngest of the four, so check its current release status before trusting it with an important server.

Crafty Controller (Crafty 4) is a Python app focused on Minecraft. One install runs several Java or Bedrock servers on the same machine, either downloaded from Crafty's list of server types or imported from an existing folder. There's no daemon and no container per server, which keeps setup simple but means there's no hard wall between servers. It has a web file manager and editor, scheduled backups, restarts and commands, and role-based permissions. For large uploads you use whatever file access the machine already has, such as SFTP over SSH on Linux. It suits a few Minecraft servers on one home PC or VPS, including on Windows.

AMP (Application Management Panel) from CubeCoders is the only paid one. It runs on Windows and Linux, manages "instances" that can live on several linked machines, and has a Minecraft module for Java and Bedrock where you pick and switch server types from the interface. It includes a file manager, SFTP, a scheduler with both timed tasks and event triggers, and very detailed role-based permissions. It's less work to set up than Pterodactyl, but you're tied to a commercial licence.

In short: Pterodactyl if you're comfortable with Linux and Docker and want hard isolation across possibly several machines, Pelican for the same model on a newer project, Crafty for a simple Minecraft-only setup, and AMP if you want a polished paid panel that also runs other games.

Minecraft hosting providers

A Minecraft host sits between Realms and self-hosting. You rent a server set up for Minecraft and manage it through a web panel, often one of the panels above or a modified version.

  • Control: you can usually pick Vanilla, Paper, Fabric, Forge and others from a menu, install modpacks, upload any plugin or mod through the file manager or SFTP, edit server.properties and the other configs, and often set your own Java version and startup flags.
  • Limits: you normally don't get root access, your RAM, CPU and storage are fixed by the plan, and some hosts restrict extra ports, databases or custom software. What's allowed differs between hosts, so check before committing.
  • Who does what: the host handles hardware, network, the operating system and keeping the machine online. Backup policies vary by host and plan. You handle everything inside the server: plugins and mods, configs, permissions, whitelists and ops. If a plugin causes lag, that's still yours to fix.

Everything earlier in this guide applies when choosing a plan. Look for information about the CPU and its single-thread performance, not just a core count. Size RAM from your actual server type rather than buying the biggest plan, and check whether you can change the Java version and startup flags.

ChunkPod is a Minecraft host in early access. Hosting isn't open to the public yet, and you can join the waitlist on the home page.

Side by side

RealmsHome PCVPSHosting provider
Plugins (Java)NoYesYesYes
Mods and modpacks (Java)NoYesYesYes
Full server config and JVM flagsNoYesYesMostly
Choice of Java versionNoYesYesUsually
Root accessNoYesYesUsually no
You handle OS and securityNoYesYesNo
Stays online without youYesOnly while the PC is onYesYes
Public server with an IPNoYesYesYes

Picking one

Start from what your group wants to play:

  • Vanilla survival for a handful of friends, nobody wants admin work: Realms.
  • Plugins or mods, and someone enjoys running a Linux box: a VPS, probably with a panel.
  • Plugins or mods without looking after the machine: a hosting provider.
  • Testing, or a small group playing at set times: a home PC.

The order of priorities is the same everywhere: a fast CPU core, enough RAM for your server type plus overhead, the right Java version for your Minecraft version, startup flags sized to your heap, and sensible view and simulation distances. If you're still deciding which server software to run, Paper vs Spigot vs Fabric vs Forge and the Server Software Comparator are good next steps, followed by 10 Best Minecraft Plugins or 10 Best Minecraft Mods once you've picked.