How much RAM does a Minecraft server need?
RAM is one of the first choices you make when you rent a Minecraft server, and also the easiest to get wrong. Too little causes lag and crashes. Too much wastes money and does not make the game faster. Here is how to pick the right amount.
The short answer
| Your setup | Suggested RAM |
|---|---|
| Vanilla or Paper, 1 to 5 friends | 2 GB |
| Paper with plugins, 5 to 15 players | 4 GB |
| Light mods, 10 to 25 players | 6 to 8 GB |
| Large modpack or 30+ players | 8 to 16 GB |
These are starting points. Every server is different, so watch how yours performs and adjust.
What uses RAM on a Minecraft server
- Players: each player loads the chunks around them, and more players means more loaded world.
- View distance: a higher view distance loads many more chunks per player.
- Mods and modpacks: large packs add thousands of blocks, items and recipes, and they use the most memory by far.
- Plugins: most are light, but map renderers, large minigames and anti-cheat can add load.
- Entities and farms: thousands of mobs, hoppers and redstone machines add up quickly.
RAM for modpacks
Modpacks are where most people run short. Small packs with a few dozen mods often run on 4 to 6 GB. Medium packs usually want 6 to 8 GB. Very large kitchen-sink packs can need 8 to 12 GB or more. Always check the recommendation on the modpack's own page, because it is written for that exact pack.
Why more RAM is not always better
Minecraft's main game loop runs mostly on a single CPU core. If your server lags while memory use is low, the CPU is the limit and extra RAM will not help. Giving a small server a huge amount of memory can also make Java's garbage collection pauses longer. Allocate what you need, plus some room to breathe.
How to tell if you need more RAM
- You see
OutOfMemoryErrorin the console or crash reports. - Lag spikes appear every few minutes, which often means constant garbage collection.
- Memory use sits near 90 to 100 percent all the time.
- Joining players makes the server stutter.
To see what is really going on, install the free spark profiler. It shows memory use, TPS (ticks per second) and which plugins or mods cost the most. A healthy server holds 20 TPS.
Cheap ways to cut lag before upgrading
- Lower
view-distanceandsimulation-distanceinserver.properties. - Switch from vanilla to Paper.
- Pre-generate your world so new chunks are not built while players explore.
- Remove unused plugins and mods.
- Limit mob farms and clean up loose items.
Picking a plan
Start small and upgrade when your community grows. Bytebath lets you change plans any time from 2 GB to 16 GB. Use the RAM calculator or compare plans. If you are new to servers, begin with our setup guide.
Frequently asked questions
How much RAM do I need for 10 players?
About 4 GB is a comfortable starting point for 10 players on Paper. Modded servers need more.
How much RAM do I need for modpacks?
Most modpacks run best with 6 to 8 GB, and very large packs can need more. Check the modpack page for its recommendation.
Does more RAM reduce lag?
Only if memory is the bottleneck. If lag comes from the CPU, more RAM will not fix it.
Ready to host your own Minecraft server? Plans start at $3/mo with instant setup, DDoS protection and daily backups.
View plans