Minecraft servers are simple to start and surprisingly easy to overload. How much hardware you need depends on the version, the number of players, the plugins and the world. This guide gives you realistic starting points and the settings that cut lag the most.
What Uses Resources In Minecraft
- Loaded chunks. The server keeps the world around each player loaded and simulated. More players spread across the map means more chunks in memory.
- Entities. Mobs, items, minecart tracks and farms add up. Huge animal pens and item farms are a classic cause of lag.
- Redstone and hoppers. Large contraptions use server time on every tick.
- Plugins and mods. Each one has a cost, and some have a large one.
- World generation. Exploring new terrain is more expensive than visiting old terrain.
Starting Points
| Server | Players | CPU | RAM for the server |
|---|---|---|---|
| Friends | 1 to 10 | 2 fast cores | 2 to 4 GB |
| Small community | 10 to 40 | 2 to 4 fast cores | 4 to 8 GB |
| Large community | 40 to 100 | 4 or more fast cores | 8 to 16 GB |
| Heavy modpack | Varies | 4 or more fast cores | 8 GB or more |
The VPS needs additional memory for the operating system, so choose a package with some headroom above the server's RAM. Heavily modded servers usually need much more than plain ones, so check your modpack's recommendations.
The CPU Matters More Than You Think
The main game loop of a Minecraft server runs mostly on one thread. This means per-core speed decides how smooth the server feels, and extra cores mainly help with background tasks. Choose a modern high-clock CPU and avoid hosts where many customers share the same cores.
Do Not Give Java All The RAM
Allocating more memory to Java than the server needs does not make it faster, and can make garbage collection pauses worse. Set the minimum and maximum to the same value, leave room for the operating system, and measure before you increase it.
java -Xms6G -Xmx6G -jar paper.jar --nogui
Many owners also use tuned Java options, often called Aikar's flags, which are designed to keep garbage collection pauses short on Minecraft servers. Look up the current recommended flags for your Java version before using them.
Optimization Settings That Help Most
- Use Paper or a similar optimized server instead of the plain vanilla jar. It includes many performance fixes and options.
- Lower the view distance. In
server.properties, try a view distance of around 8 and a lower simulation distance. Players often do not notice, and the server does far less work. - Pre-generate the world. A plugin that generates chunks in advance prevents lag when players explore new land.
- Limit entities. Use the server's entity limits and keep mob farms and animal pens under control.
- Review plugins. Remove the ones you do not use and use a profiler to find the expensive ones.
- Restart regularly. A scheduled restart clears memory and keeps the server fresh.
Find The Cause With A Profiler
Instead of guessing, use a profiling tool for Minecraft servers. It shows which plugins, tasks or entities take the most server time per tick. Fixing the top item is usually more effective than adding hardware.
Understand TPS
A healthy Minecraft server runs at 20 ticks per second (TPS). If your TPS drops below that, the game feels slow for everyone, even if the connection is fine. Watching TPS is the simplest way to tell if the server is struggling.
Network And DDoS
Minecraft servers are public by design, so the IP address is easy to find, and they get attacked often. Hosting with network-level DDoS protection keeps you online. Read What Is a DDoS Attack on a Game Server? to learn the basics.
Next Steps
If you still need to set up the server, follow How to Host a Minecraft Server on a VPS. You can compare Linceris.com VPS packages by cores, memory and storage, and move to a bigger package when you run a large network.