EN · $ USD
Server Sizing and Performance

How Much RAM Does a Minecraft Server Need? Table by Player Count

6 min read Updated: OyunBulut technical team

In short

A Minecraft server's RAM needs depend on player count and server type. As a guideline: 2 GB for a 5-player vanilla server, 4-8 GB for a 10-20 player Paper server with plugins, 10-16 GB for a 50-player plugin server, and 8 GB or more for modpack servers even with just 5 players. Single-core CPU speed matters as much as RAM.

In this guide
  1. Why does a Minecraft server use so much RAM?
  2. RAM and CPU table by player count
  3. Three example scenarios
  4. RAM alone isn't enough: the role of the CPU
  5. Does giving it more RAM improve performance?
  6. 5 practical ways to reduce RAM usage
  7. When should you upgrade to a bigger plan?
  8. The final step to choosing the right plan

How much RAM a Minecraft server needs depends on three things: how many players are online at the same time, whether the server is vanilla, plugin-based or modded, and how spread out players are across the world. The short answer: a small vanilla server for friends runs on 2 GB, a 20-player server with plugins needs 6–8 GB, and modpack servers shouldn't go below 8 GB even with 5 players. The table below maps each scenario to a matching plan.

Why does a Minecraft server use so much RAM?

The server loads the pieces of the world around each player (chunks, 16x16-block areas) into memory and calculates everything in them 20 times per second (20 TPS, ticks per second): mob movement, dropped items, redstone circuits, crop growth. The main factors that drive RAM usage up are:

  • View distance (view-distance): At a value of 10, roughly 21x21 = 441 chunks are loaded per player. If players are in different places, those areas don't overlap and memory grows linearly.
  • Entities: Animal farms, items piling up on the ground and mob farms eat both RAM and CPU.
  • Plugins: Every plugin keeps its own data in memory. Economy, map (Dynmap/BlueMap) and logging plugins are among the heavy ones.
  • Mods: Every mod registers new blocks, items, recipes and world generation rules. That's why a modded server starts up using several times the RAM of a vanilla server, even with no players online.

The Java Virtual Machine (JVM) also uses memory outside the heap allocated to the game (heap, the space set with -Xmx). So you can't hand all of a plan's RAM to the game world; leaving some headroom is normal.

RAM and CPU table by player count

The values below are widely accepted starting recommendations, not hard limits. They assume a view-distance of 8–10, a pre-generated world and players following a normal survival playstyle.

Server typeConcurrent playersRecommended RAMRecommended CPUMatching plan
Vanilla52 GB2 coresOB-MC-1
Vanilla103–4 GB2–4 coresOB-MC-2
Vanilla204–6 GB4 coresOB-MC-2
Vanilla508 GB4 coresOB-MC-3
Plugins (Paper)53–4 GB4 coresOB-MC-2
Plugins (Paper)104–6 GB4 coresOB-MC-2
Plugins (Paper)206–8 GB4 coresOB-MC-3
Plugins (Paper)5010–16 GB4–6 coresOB-MC-5
Modded (medium/large modpack)56–8 GB4 coresOB-MC-3
Modded (medium/large modpack)108–12 GB4 coresOB-MC-4
Modded (medium/large modpack)2012–16 GB6 coresOB-MC-5
Modded (medium/large modpack)5024 GB or more8+ coresOB-MC-6 or higher

Two plans in the table stand out. The OB-MC-3 plan with 8 GB RAM is the sweet spot for plugin-based survival servers with up to 20 players and small modpack groups. The OB-MC-5 plan with 16 GB RAM and 6 CPUs leaves headroom on both memory and CPU for 50-player plugin communities and 20-player modpack servers.

What to watch for when reading the table

  • Concurrent players, not registered players: If a server with 200 registered members has 25 people online in the evening, plan for 25.
  • Spread-out players cost more: There's a big memory difference between 10 people playing in the same village and 10 people exploring opposite ends of the map.
  • Modpack size is decisive: A light pack with 20–40 mods behaves like a plugin server, while “kitchen sink” packs with 200+ mods approach the top of the table.

Three example scenarios

Scenario 1: A group of 6 school friends

Survival on Paper, a few essential plugins (LuckPerms, EssentialsX, CoreProtect), at most 6 people online in the evening. This matches the “Plugins, 5–10 players” row in the table: 4–6 GB RAM is enough. The 6 GB in OB-MC-2 stays comfortable even when the group grows by a few people or you add a map plugin.

Scenario 2: A Discord community of 25–30 players

Paper, 20+ plugins, an economy and land claims, with players spread across the map. This profile sits above the “Plugins, 20 players” row; 8 GB may be cutting it close. If the community keeps growing, the 12–16 GB range is safer, and more CPU cores also ease chunk generation.

Scenario 3: A tech modpack group of 8

Around 200 mods, machines, pipes and automation. On modded servers, RAM needs depend more on the number of mods and the factories players build than on player count. For this group, 10–12 GB is the starting point; it wouldn't be surprising to need 16 GB as players build bases and machines multiply.

RAM alone isn't enough: the role of the CPU

A Minecraft server's main loop (main thread) runs largely on a single core. Each tick has a 50-millisecond budget; if calculations go over it, TPS drops below 20 and players see lag like blocks reappearing and mobs teleporting. That's why:

  • More cores don't make up for a slow single core; however, tasks like chunk generation, network traffic and garbage collection do benefit from extra cores.
  • A server with plenty of RAM but a weak CPU can perform worse than one with just enough RAM and a strong CPU.
  • You need to measure the source of lag instead of guessing. Use the checklist in our how to fix Minecraft server lag guide for that.

Does giving it more RAM improve performance?

No, not past a certain point. As Java memory fills up, the garbage collector (GC) kicks in and clears out unused objects. A heap far larger than you need doesn't fix problems; the real source of lag is usually a farm, a plugin or ungenerated chunks. The right approach:

  1. Start with the recommendation in the table.
  2. Monitor memory usage and TPS during your server's busiest hours.
  3. If memory is constantly near the ceiling and you see OutOfMemoryError, upgrade to the next plan.

JVM startup flags also affect how memory behaves. We explain the popular flag set that tunes the G1 garbage collector for Minecraft in our article JVM tuning with Aikar's flags.

5 practical ways to reduce RAM usage

  1. Lower view-distance and simulation-distance: Dropping simulation-distance to 6–8 in server.properties shrinks the processed area without narrowing players' view too much.
  2. Pre-generate the world: When you pre-generate a limited area with the Chunky plugin, there's no on-the-fly chunk generation load while players explore.
  3. Set a world border: A border like worldborder set 10000 keeps endless exploration from bloating disk and memory.
  4. Limit entity counts: The entity and item settings in Paper's configuration let you optimize how dropped items merge and how long they take to despawn.
  5. Remove unused plugins: Every plugin allocates memory at startup; plugins installed “just in case” come at a cost.

To measure memory and CPU usage, these spark plugin commands are the quickest place to start:

/spark tps
/spark health
/spark profiler start
/spark profiler stop

When should you upgrade to a bigger plan?

If you regularly see two or more of the signs below, it's time to add resources rather than keep tweaking settings:

  • Memory usage is constantly near the plan's limit during peak hours.
  • TPS drops below 18 even after cleaning up unnecessary plugins and farms.
  • The Can't keep up! Is the server overloaded? warning keeps repeating in the console.
  • You're moving to a new modpack or a large plugin set.

For communities reaching 100 or more players, splitting across multiple servers behind a proxy like Velocity is healthier than scaling up a single server. We cover planning at that scale in our article Infrastructure plan for a 100+ player Minecraft server.

The final step to choosing the right plan

Match your scenario to a row in the table and leave one tier of headroom: communities usually grow faster than expected, and modpacks get heavier with updates. If you're planning a plugin-based survival server for up to 20 players, it makes sense to start with OB-MC-3; for a 50-player community or a medium-sized modpack, go with OB-MC-5. To see every option side by side, browse the OyunBulut Minecraft server plans; all plans include NVMe SSD storage, DDoS protection and a web panel, and you can upgrade your plan as your needs grow.

Frequently asked questions

Is 4 GB of RAM enough for a Minecraft server?

As a guideline: 4 GB is usually enough for a vanilla server or a lightly modified Paper server with up to 10 players. It falls short for modpack servers.

Why does a modded Minecraft server need more RAM?

Every mod registers new blocks, items, recipes and world generation rules, and machine and automation mods add block entities that run constantly. That's why a modded server uses far more memory than a vanilla server, even with no players online.

Will more RAM completely fix lag?

No. Lag mostly comes down to single-core CPU speed, heavy farms, plugins or on-the-fly chunk generation. Past the amount you actually need, extra RAM doesn't improve performance; measure with spark to find the real cause.

How much RAM does a 20-player Minecraft server need?

As a starting recommendation: 4-6 GB for vanilla, 6-8 GB for a Paper server with plugins, and 12-16 GB for a medium or large modpack.

Which matters more for a Minecraft server, CPU or RAM?

You need both, but once RAM is sufficient, single-core CPU speed determines performance, because the server's main loop runs largely on a single core.

For this guide

Recommended plans

OB-MC-3 with 8 GB RAM covers plugin servers for up to 20 players, and OB-MC-5 with 16 GB RAM and 6 CPUs covers 50-player communities and modpacks, both with headroom over the needs in the table.

OB-MC-3

Recommended

8 GB RAM

$6.88/mo

+VAT

  • Processor4 CPU
  • Disk55 GB NVMe
  • LocationIstanbul
  • DDoS Protection
  • Automatic Setup
  • Web Panel
  • 7/24 Support

16 GB RAM

$12.58/mo

+VAT

  • Processor6 CPU
  • Disk80 GB NVMe
  • LocationIstanbul
  • DDoS Protection
  • Automatic Setup
  • Web Panel
  • 7/24 Support

2 GB RAM

$3.54/mo

+VAT

  • Processor2 CPU
  • Disk20 GB NVMe
  • LocationIstanbul
  • DDoS Protection
  • Automatic Setup
  • Web Panel
  • 7/24 Support

Minecraft — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.