All guides
Guide

How to fix Minecraft server lag (TPS) step by step (2026)

By the MACO Core team · · 6 min read

Short answer: a Minecraft server should run at 20 TPS (ticks per second). If it drops below that, find out what is slow before changing anything: run /spark profiler start --timeout 300 while the lag is happening and look at the report. The usual culprits are too many entities (mob farms, item drops, villagers), chunk generation as players explore new land, and view or simulation distance set too high. Fix the cause, not the symptom.

Server lag or connection lag?

First, make sure it is really the server. There are two kinds of "lag":

What you see Likely cause
Everyone lags at once, mobs freeze, blocks reappear after you break them Server lag (low TPS)
Only one player rubber-bands or has a high ping Connection lag on that player's side
Smooth server, but low FPS and stuttering for one player Client lag (their PC or graphics settings)

This guide is about the first one: the server itself falling behind.

Step 1: check TPS and MSPT

The game runs 20 ticks per second, so each tick has 50 ms. MSPT (milliseconds per tick) is how long the server actually takes. If MSPT stays under 50, you get a full 20 TPS. Over 50, TPS drops and everything slows down.

How to check:

  • Paper: run /spark tps (spark is built into Paper since 1.21). The older /tps and /mspt commands still work.
  • Vanilla (1.20.3 and newer): run /tick query as an operator. It shows the target tick rate and the average time per tick.
  • Fabric or Forge: install the spark mod and use /spark tps.

A healthy small server usually sits well under 50 MSPT. If you see occasional spikes but a normal average, it is often a single event like a big explosion or a player flying into new land.

Step 2: find the cause with spark

Guessing wastes time. A profiler shows exactly what the server is spending its time on.

  1. Wait until the lag is actually happening (a profile of a healthy server shows nothing useful).
  2. Run /spark profiler start --timeout 300. It stops by itself after 5 minutes.
  3. Open the link it gives you and expand the biggest entries under the server thread.

What you will typically find:

  • Entity ticking high: too many mobs, item drops or villagers in loaded chunks.
  • Chunk generation or loading high: players exploring new terrain.
  • A plugin or mod name high: that plugin or mod is the problem. Update it, configure it, or remove it.
  • Block entities high: lots of hoppers, furnaces or other machines in one area.

/spark health is also handy for a quick look at TPS, CPU, memory and disk in one place.

Step 3: lower view and simulation distance

These two settings in server.properties decide how much of the world the server handles per player. Both default to 10 chunks.

  • view-distance is how far players can see.
  • simulation-distance is the radius around each player where living entities are updated.

Lowering simulation-distance to 6 to 8 is one of the biggest wins on a busy server, and most players never notice. You can keep view-distance a bit higher so the world still looks far away. Restart the server after changing them.

Step 4: pre-generate your world

Generating brand new chunks is one of the heaviest things a server does. When several players explore in different directions, TPS can drop fast.

The fix is to generate the world before players get there, using the free Chunky plugin or mod (Paper, Fabric, Forge and NeoForge):

  1. Install Chunky.
  2. Run /chunky radius 3000 to set a 3,000-block radius around the world centre.
  3. Run /chunky start and let it finish (do this when nobody is online).
  4. Use a world border so players stay inside the generated area.

Big radii take a while and use disk space, so start sensible and grow it later.

Step 5: deal with entities

Entities are the most common cause of lag on survival servers.

  • Clear dropped items with /kill @e[type=item] when the ground is littered after a big build or a death.
  • Limit mob farms. One huge farm can cost more than every player combined. Ask players to add a kill chamber or cap the number of animals.
  • Watch villager trading halls. Hundreds of villagers in one spot are expensive. Fewer villagers per hall helps a lot.
  • Check hopper chains. Long rows of hoppers in one area add up.

On Paper, a few settings in config/paper-world-defaults.yml help without changing gameplay much:

  • chunks.entity-per-chunk-save-limit: cap how many of a given entity type (for example arrows or experience orbs) are saved per chunk.
  • misc.redstone-implementation: ALTERNATE_CURRENT is a faster redstone engine than VANILLA. Test your contraptions afterwards.
  • tick-rates.mob-spawner: raising it makes spawners tick less often.

Change one thing at a time and check TPS again, so you know what actually helped.

Step 6: use the right software and keep it updated

  • Vanilla has no performance tuning at all. Switching to Paper (for plugins) usually gives a noticeable boost on its own. See our Paper vs Fabric vs Forge guide.
  • Fabric servers can add performance mods like Lithium that run on the server only, so players do not need them.
  • Keep plugins and mods updated. Old versions are a common source of lag and errors.

Step 7: let the server rest when nobody is on

Since 1.21.2, vanilla has a pause-when-empty-seconds setting that pauses the world after the last player leaves. Vanilla sets it to 60, but Paper turns it off by default (-1) because some plugins expect the server to keep running. If your plugins are fine with it, setting it to 60 stops farms and mobs piling up while nobody is online.

Is it RAM or CPU?

More RAM rarely fixes lag on its own. If the server is not running out of memory, extra RAM does nothing for TPS, and far too much can even cause longer garbage-collection pauses. Most lag is CPU work on Minecraft's main thread, which is why a fast single core matters. Our RAM guide explains how much you actually need.

Quick checklist

  1. Confirm it is server lag (low TPS), not one player's connection.
  2. Check TPS and MSPT with /spark tps or /tick query.
  3. Profile with spark while it lags and read the top entries.
  4. Lower simulation-distance to 6 to 8.
  5. Pre-generate the world with Chunky and set a world border.
  6. Clear items and tame big farms and villager halls.
  7. Run Paper (or Fabric with Lithium) and keep everything updated.

FAQ

What is a good TPS for a Minecraft server? 20 TPS is the maximum and the target. Short dips to 19 are barely noticeable; a steady 15 or lower feels slow to everyone.

What does MSPT mean? Milliseconds per tick. Each tick has 50 ms to finish. Under 50 MSPT means a full 20 TPS.

Does more RAM fix lag? Only if the server is actually running out of memory. Otherwise the cause is almost always CPU load from entities, chunk generation or plugins.

Why does my server lag when players explore? Generating new chunks is heavy work. Pre-generate the world with Chunky and add a world border.

Tired of fighting lag on a slow machine? MACO Core game servers run on AMD Ryzen 9 9950X3D cores, one of the fastest single-thread CPUs around, and you can switch to Paper or add Chunky and spark from the panel in a couple of taps. See our Minecraft plans.