Home/Minecraft guides/How much RAM does a Minecraft server need?

How much RAM does a Minecraft server need?

Real numbers for Vanilla, Paper, Fabric and Forge servers, how many players fit in 2, 4 or 8 GB, and how to tell when you actually need more.

Short version
  • 2 GB: Vanilla or Paper, 1–5 players.
  • 4 GB: Paper with plugins, about 5–15 players. The right size for most friend groups and small SMPs.
  • 6–8 GB: 15–40 players, lots of plugins, or a light-to-medium modpack.
  • 8–12 GB: big Forge modpacks with 200+ mods.
  • More players spread across the map cost more than more players in one base.

What actually uses the memory

A Minecraft server keeps every loaded chunk, entity, block entity (chests, hoppers, furnaces) and plugin or mod in memory. The player count matters mostly because each player loads the chunks around them. That's why these things move the number most:

  • View distance. Chunks loaded per player grow with the square of the view distance. Going from 10 to 16 loads roughly 2.5 times as many chunks.
  • How spread out players are. Ten players in one town share chunks. Ten players exploring in ten directions don't.
  • Mods. Every mod adds code, data and often new blocks and entities. Big Forge packs can use 4–6 GB before anyone joins.
  • Plugins. Most plugins are small. A few (dynamic maps, big economy or minigame plugins) are heavy.
  • Entities. Mob farms, item frames, villager halls and dropped items all live in memory and cost CPU every tick.

Recommended RAM by server type

PlayersVanilla / PaperPaper + 30 pluginsLight modpackHeavy modpack
1–52 GB3 GB4 GB6–8 GB
5–103 GB4 GB5 GB8 GB
10–204 GB5–6 GB6–8 GB10 GB
20–406 GB8 GB8–10 GB12 GB+
40–808–10 GB10–12 GB12 GB+16 GB

These assume a view distance around 8–10 and a pre-generated world. "Light modpack" means roughly 50–100 Fabric mods (optimisation packs, small content packs). "Heavy" means kitchen-sink Forge packs with 200 or more mods. For a number tuned to your setup, use our Minecraft RAM calculator.

How many players can 4 GB of RAM handle?

On Paper with a normal set of plugins, 4 GB comfortably runs about 10–20 players, assuming a view distance around 8 and a pre-generated world. On Vanilla expect a bit less, roughly 8–12, because Vanilla is less efficient with chunks and entities. On a modded server 4 GB is only enough for a light Fabric pack with a handful of players; most Forge packs need 6–8 GB just to start comfortably.

If the players on your 4 GB server mostly stay near spawn and each other, you can push past 20. If they're all exploring new terrain at once, you'll hit the limit sooner.

Can you give a server too much RAM?

Yes, in a sense. Extra RAM that the server never uses does nothing, and a very large heap can make garbage collection pauses longer, which shows up as small lag spikes. Lag is far more often caused by CPU (too many entities, redstone, chunk generation) than by memory. If your TPS is low but memory isn't full, more RAM won't fix it. See how to fix server lag.

When you set memory yourself, keep -Xms and -Xmx the same and leave some headroom for Java itself: on a 4 GB machine, give the server about 3.5 GB, not all 4.

Signs you need more RAM

  • The server crashes with java.lang.OutOfMemoryError or gets killed by the host.
  • Memory sits near 100% in your metrics and garbage collection runs constantly (spark's /spark health shows this).
  • Lag spikes line up with memory filling up, rather than with farms or chunk generation.

If memory looks fine and you still lag, it's a CPU or configuration problem instead.

How to change the RAM on a Minecraft server

On your own computer

Edit your start script and change the numbers in -Xms and -Xmx, for example -Xms6G -Xmx6G for 6 GB. Restart the server. You can't give it more than your computer has free.

On a host

Hosts control memory from their side, so editing flags won't help. On NS5, open Orders in the panel, choose Resize, slide to the new size and confirm. Upgrades charge only the difference for the rest of the month, downgrades credit the unused time, and your world and files stay where they are. The server picks up the new memory on its next restart.

Common questions

Is 2 GB enough for a Minecraft server?

For Vanilla or Paper with up to about five players, yes. It's not enough for modpacks or for a larger group exploring at the same time.

Is 8 GB enough for a modded Minecraft server?

For most modpacks with a small group, yes. The heaviest Forge packs with 300 or more mods can want 10–12 GB once several players are online.

How much RAM does a Minecraft server need for 10 players?

About 3–4 GB on Paper or Vanilla, 4–5 GB with a lot of plugins, and 6–8 GB for a modpack.

Does more RAM increase TPS?

Only if the server was actually running out of memory. TPS depends mainly on single-core CPU speed and how much the server has to simulate each tick.

Run it on NS5 instead

Minecraft Java servers from $3.70/month on AMD EPYC with dedicated RAM. One-click Paper, Fabric, Forge and Modrinth modpacks, backups and SFTP included. Try one free for 48 hours, no card needed.