How much RAM does a Minecraft server need?
Short answer
About 2 GB for a few friends on a plain server, 4 GB for a group or a few plugins, and 6 to 8 GB for big mod packs. Leave the rest for the computer itself.
A rough guide
- 2 GB: a plain server for a handful of friends.
- 4 GB: a group of friends, plugins, or a few mods.
- 6 to 8 GB: big mod packs, or many players.
More isn't always better
Giving the server more memory than the computer can spare slows everything down, including the server. On an 8 GB computer, 4 GB for the server is plenty. Lag usually comes from too much going on in the world, like a big view distance or heavy mods, rather than too little memory.
How to set it yourself
Memory is set when the server starts, with -Xmx: java -Xmx4G -jar server.jar nogui gives it 4 GB.
Quick questions
What does 'Can't keep up!' mean?
The server is falling behind. Lower the view distance, remove heavy mods, or give it a little more memory.
Can I run a server on a laptop with 8 GB?
Yes, for a group of friends. Give the server about 4 GB.
Does more memory fix lag?
Only if it's running out. Otherwise the cause is usually view distance, farms, or mods.
Back to the website