FreeMCHost logoFreeMCHost
All articles
Performance

How Much RAM Do You Really Need for a Minecraft Server? (2026)

A practical guide to sizing RAM for a Minecraft server based on player count, mods, plugins, and view distance — with real-world benchmarks.

6/10/20267 min read

Why RAM matters more than CPU

Minecraft is single-threaded for world ticks — one CPU core does most of the work. RAM is what lets the server keep more chunks loaded, run more plugins, and avoid stop-the-world garbage collection pauses that crash your TPS.

If your server lags at 8 players but the CPU sits at 30%, RAM (or GC tuning) is almost always the bottleneck.

Quick sizing table

| Setup | Players | Recommended RAM | |---|---|---| | Vanilla 1.21 | 1–5 | 1.5 GB | | Vanilla 1.21 | 5–15 | 2–3 GB | | Paper + 10 plugins | 10–20 | 3–4 GB | | Paper + 25 plugins | 20–40 | 5–6 GB | | Light modpack (50 mods) | 5–10 | 4 GB | | Medium modpack (100 mods) | 5–10 | 6 GB | | Heavy tech modpack (200+ mods) | 5–15 | 8–10 GB |

These numbers assume view-distance = 8 and simulation-distance = 6. Bump view-distance to 12 and you'll need ~30% more.

What actually eats RAM

1. Loaded chunks — every chunk loaded by a player is roughly 200–500 KB resident. 20 players × 25 chunks each = 500 chunks = ~250 MB just for terrain. 2. Entities — each mob is a few KB, but a Create modpack with hundreds of belts and items can balloon to 1 GB of entity data. 3. Plugin caches — economy, towny, dynmap render caches can each hold 200–500 MB. 4. JVM overhead — the JVM itself reserves 300–500 MB for class metadata and GC bookkeeping. That's why a "1 GB" server actually has ~600 MB available to the game.

Don't over-allocate

A common mistake: giving 16 GB to a server that only needs 4. With G1GC (the default since Java 11), larger heaps mean longer GC pauses. A 6 GB heap with Aikar's flags will out-perform a poorly-tuned 12 GB heap every time.

Rule of thumb: allocate what you need + 1 GB headroom, no more.

Aikar's flags (still relevant in 2026)

Use these in your startup script for any Paper / Purpur / Fabric server above 4 GB:

`` -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 ``

On FreeMCHost these flags are applied automatically on Paper and modded eggs — no setup needed.

When to upgrade

Watch for these symptoms: - TPS drops below 18 while CPU stays under 50% - GC pause lines in your console longer than 1 second - Server OOM-kills itself after a few hours

Any of these = you're undersized. Bump RAM by 50% and re-measure.

Related

  • [Optimize Minecraft server performance](/blog/optimize-minecraft-server-performance)
  • [Paper vs Purpur vs Fabric vs Forge](/blog/paper-vs-purpur-vs-fabric-vs-forge)
  • [Free hosting plans](/free-minecraft-server-hosting)