Why is my Minecraft server lagging? How to fix it
Minecraft server lagging? Work out if it’s the server, the connection or one player’s device, then fix it: RAM, view distance, farms, mods, Paper and pregenerating.
On this page
- Server lag, ping or FPS: which is it?
- How to check your server’s TPS
- How much RAM does a Minecraft server need?
- Lower view distance and simulation distance
- Big farms, mobs and redstone
- Lag when exploring: pregenerate the world
- Too many mods or plugins
- Is Paper better than vanilla for lag?
- Is the host’s CPU the problem?
- Why is my ping so high?
- Fixing FPS lag on your own device
- If your server is on block
- Running it somewhere else?
Server lag, ping or FPS: which is it?
“Lag” is three different problems, and each has its own fix. Work out which one you have first.
- Server lag. Everyone lags at the same moment. Mobs freeze and then jump, broken blocks pop back, and furnaces slow down. The server can’t keep up with the world.
- Network lag. Only some players lag, and they get pulled back as they walk, called rubber-banding. The server is fine. The trip to it is slow.
- FPS lag. One player’s screen is choppy, even in singleplayer. That’s their device, not the server.
Two numbers tell them apart. TPS (ticks per second) is how often the server updates the world. It aims for 20, and below about 18 you feel it. Ping is how long a message takes to reach the server and come back, in milliseconds (ms).
How to check your server’s TPS
- On Paper or Purpur, type /tps. It shows the average over the last 1, 5 and 15 minutes.
- On vanilla Java 1.20.3 or newer, /tick query shows how long each tick takes. A tick has 50 ms. Any longer and TPS drops below 20.
- With spark, /spark tps works on any software, Fabric and Forge too.
Ping shows as bars in the player list, under Tab on Java. F3 on Java shows your FPS in the top-left corner.
How much RAM does a Minecraft server need?
With too little memory, the server stutters while Java clears space over and over, and then crashes with OutOfMemoryError
. Amounts that work:
- 2 GB for vanilla with a few friends.
- 4 GB for around 10 friends, or a few light mods.
- 8 GB or more for big modpacks.
More isn’t always better. Memory doesn’t make the server think faster, so past enough, extra does nothing for lag. On a home PC you also play on, leave about 6 GB for Windows and your own game, or everything slows down.
Lower view distance and simulation distance
View distance is how many chunks (16 by 16 block squares) around each player the server sends. Simulation distance is how far out mobs, crops and redstone keep running. Both cost more than they look: going from 10 to 12 is about 40% more ground.
They’re view-distance and simulation-distance in server.properties, and both start at 10. Try 8 and 6, then restart. Most players won’t notice, and the server runs less than half the chunks it did.
Big farms, mobs and redstone
Every mob, dropped item and hopper is work the server does 20 times a second. A huge mob farm, a hall of 200 villagers or a floor of items nobody picked up can drag a whole server down.
- Clear dropped items with /kill @e[type=item].
- Keep farms smaller, or put a lever on them to switch them off when nobody needs them.
- Breed fewer animals in one place. Pens of hundreds add up.
To find the real cause, use spark, a free profiler. It’s built into recent Paper, and a mod for Fabric and Forge. Type /spark profiler start, play for a few minutes, then /spark profiler stop. You get a link that shows what took the most time.
Lag when exploring: pregenerate the world
Making new land is the heaviest thing a server does. One friend flying with an elytra can lag everyone else.
The fix is to generate the world ahead of time with Chunky, a free plugin and mod. It’s smoothest while nobody’s on.
- Type /worldborder set 6000. Nobody can go past this square, 6,000 blocks wide around the middle of the world. Pick a bigger number if your builds are further out.
- Type /chunky worldborder so Chunky fills exactly that square.
- Type /chunky start. It shows progress as it goes, and can take a while.
Too many mods or plugins
Each mod or plugin adds work, and one badly made one can cause most of the lag alone. spark’s profiler names it.
Remove what you don’t use. On Fabric, add Lithium, which makes game logic faster, and FerriteCore and ModernFix, which cut memory use. FerriteCore and ModernFix also exist for Forge and NeoForge. None of them change how the game plays.
Is Paper better than vanilla for lag?
Yes, for most servers. Paper is a replacement for the vanilla server that runs the same game faster, with settings that limit mobs and items. Plugins run on it. Fabric and Forge mods don’t.
Purpur is Paper with even more settings. One catch: Paper turns off a few vanilla bugs that some technical farms use, like TNT duping. If your world has those, check before you switch. A vanilla world carries over as it is.
Is the host’s CPU the problem?
Often, yes. Minecraft runs each world on one CPU core, so how fast that core is matters more than how many there are.
- Free and cheap hosts put many servers on one machine. When the others get busy, yours gets less.
- A home PC shares its CPU with everything else on it, including your game if you play there too. Plug in a laptop: on battery it slows down to save power.
- Realms doesn’t let you add Paper or change most settings. Cutting farms, mobs and items is what you can do there.
If TPS is low with a few players, small farms and a sensible view distance, the host is what’s left. Moving is the fix.
Why is my ping so high?
Ping is mostly distance. A signal needs about 10 ms for every 1,000 km there and back, before the route adds more. No plan makes a server on another continent feel close.
- Pick a host near most of your players.
- Use a cable instead of Wi‑Fi, or move closer to the router.
- Pause big downloads and streams on the same internet.
- Hosting from home? Everything the server sends goes through your upload speed, which is often far slower than your download.
Fixing FPS lag on your own device
If only one player lags, and it lags in singleplayer too, the fix is on their device.
- Lower render distance in Video Settings. It doesn’t have to match the server.
- Turn off shaders and go back to default textures.
- On Java, install Sodium. It often doubles FPS and looks the same.
- Plug in laptops and close other apps, browsers especially.
If your server is on block
block already runs Paper on Minecraft worlds, builds the land around spawn and adds the performance mods to modded worlds. If it still lags:
- Read the terminal. With Advanced tools on, Problems says it in plain words, like
Fell 2 seconds behind. Lots of mobs, redstone or new land at once.
Press Lower view distance next to it. - Build further out. In the terminal, type chunky radius 3000 and then chunky start.
- Check your plan. Each plan is made for a number of friends at once. If you often play near it, the next one up has more memory. Compare plans.
Running it somewhere else?
On block, the fixes above are set up already: Paper, land built ahead, performance mods and memory sized to your plan. It’s always on, with no start button, and Java and Bedrock friends share one world.
Upload your world and keep playing where you left off. block vs Aternos and Bedrock server hosting have more.
Still stuck? Write to help@joinblock.gg.