Why Your Minecraft Server Is Lagging and How to Fix It
Not all lag is the same. Before changing anything, find out whether it's the server or your connection that's slow: they're fixed in different ways.
1. Is it the server or your connection?
If blocks take a while to break, animals move in jumps and it happens to everyone at once, it's the server. If it only happens to you and everyone else is playing fine, it's your connection or your computer.
On the server, the number that matters is TPS (ticks per second): 20 is perfect; below 15 you notice it. On Paper, the /tps command tells you.
To find out what's causing it without guessing, spark (included in Paper) measures where the time goes and points to the plugin, mod or farm to blame: it's step by step in the spark guide.
Rather not set it up yourself? Minecraft servers from €6 a month, no contract and a full refund within 72 hours. Or create a free Minecraft server, no card needed.
2. Memory
If the server's memory is always at the limit, Java spends all its time cleaning up and everything freezes now and then. In “Home”, your server's screen in the panel, you can see how much it uses against your plan's maximum. With mods or lots of players, more RAM makes a difference; on NapNodes you can add it without reinstalling anything.
3. Generating the world is expensive
Exploring new areas forces the server to generate them, and that's the heaviest load of all. That's why on NapNodes a new server's world comes already generated around the spawn. If you explore a lot, pregenerating with Chunky and setting a world border (/worldborder) help.
4. Farms, entities and redstone
Hundreds of animals in a farm, piles of items on the ground or redstone circuits that never stop weigh more than lots of players. Paper limits some of this on its own; the rest is a matter of not overdoing it, plus a few settings in its files that lighten the load without anyone noticing in game (optimising a Paper server).
5. Mods
With mods, performance depends a lot on which ones. If it's been slow since you added one, remove it and check. Some mods exist just to make things run more smoothly (Lithium and FerriteCore on Fabric, for example).
Frequently asked questions
How many TPS should a Minecraft server have?
20 is the maximum and the normal value. Below 15 it already feels slow.
Does more RAM fix lag?
If memory is at the limit, yes. If not, the lag comes from something else (world generation, entities, mods) and more RAM won't fix it.
Why is it only lagging for me?
If it's fine for everyone else, it's your connection or your computer: the server is the same for everyone.
Shall we set it up for you?
Minecraft servers from €6 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Minecraft server, no card needed.
Your server doesn't show up in the game? Check it in a second with “Is my Minecraft server online?”: players, version and MOTD, free. Need a player's UUID for the whitelist or permissions? Look it up here. Handing out enchanted items? Build the command with the /give generator.
Rather not edit the file by hand? Use the server.properties editor: every option explained, with a warning on the ones that no longer work.
How many GB do you need? Work it out with the RAM calculator: server type, players and view distance.
Free tool: Chunky pre-generation calculator. How much disk and time pre-generating your world with Chunky takes for a given radius, with the console commands ready.
Free tool: Minecraft region file calculator. From coordinates or an area of your Minecraft world to the r.X.Z.mca file and its folders, to delete or regenerate just that piece.
Free tool: Ping test. Measure from your connection the ping to the machines our servers run on, and whether you'll lag before setting one up.
Keep reading
- High Ping on a Minecraft Server: What It Is and How to Lower It
What ping is in Minecraft, how much is too much, how to tell if it's your connection or the server, and what to do: wifi, distance, downloads, VPN, settings.
- Minecraft Server Won't Start or Keeps Crashing: Causes and Fixes
Wrong Java, clashing mods, out of memory, port in use or a corrupted world: how to read the console and fix a Minecraft server that won't start.
- How to Play Minecraft Java and Bedrock Together on One Server
Crossplay between Java (PC) and Bedrock (mobile, console, Windows): Geyser and Floodgate, which port to use, how each player joins and the limits.