Minecraft server lag means low TPS — the "Can't keep up!" warning, blocks breaking slowly, mobs stuttering. The fix is switching to Paper/Purpur, tuning view and simulation distance, capping entities and mob spawns, applying Aikar's flags, profiling with spark, and pre-generating the world. Here's how to get back to a solid 20 TPS.
TPS (ticks per second) is Minecraft's heartbeat — 20 is healthy. When the server can't finish a tick in 50 ms you get the "Can't keep up!" warning and everything feels sluggish. The usual causes are too many loaded chunks, entity and mob-farm overload, an unoptimised server type, or a weak CPU. Work through them and TPS recovers.
Below is the fix, from biggest win to hardware. For settings context see our best settings to reduce lag; if the CPU is the wall, our Minecraft hosting runs fast dedicated cores.
What you'll need
- Access to server.properties and the server type (Paper/Purpur).
- The spark plugin to profile tick time.
- A pre-generation plugin (Chunky) for the world.
- Aikar's flags and sensible -Xmx/-Xms values.
- A fast high-clock CPU (Minecraft is single-thread bound).
Fix Minecraft server lag, step by step
Step 1: Switch to Paper (or Purpur)
The single biggest win. Paper (and Purpur on top of it) add extensive performance patches vanilla and Spigot lack — chunk loading, entity limits, mob-spawn control. Switching to Paper alone often fixes most lag on a vanilla/Spigot server. Your world and plugins carry over.
Step 2: Lower view & simulation distance
View distance is how far chunks render; simulation distance is how far the server actually ticks entities and blocks — the heavier of the two. Drop simulation-distance to 4-6 and view-distance to 6-8. This is often the fastest single fix.
# server.properties view-distance=8 simulation-distance=5Step 3: Cap entities & mob farms
Item stacks, mobs and giant mob/XP farms are heavy. In Paper's config, cap entities per chunk, tune mob-spawn ranges, and merge dropped items. A single unoptimised mob farm can drag a whole server's TPS down.
Step 4: Apply Aikar's flags & right-size RAM
Aikar's flags are a tuned G1GC set that smooths out garbage-collection pauses on servers with 4 GB+. Apply them and set sensible
-Xmx/-Xms— but don't over-allocate RAM, which can make GC pauses worse.java -Xms4G -Xmx4G <Aikar's flags> -jar paper.jar noguiStep 5: Profile with spark
Install the spark plugin and run
/spark profilerduring lag. It shows exactly which plugin, mob or task is eating tick time — so you fix the real cause instead of guessing./spark profiler --timeout 60Step 6: Pre-generate the world
Generating new chunks as players explore is a big lag source. Use a pre-generation plugin (Chunky) to build the world out to your border in advance, so exploration doesn't hitch the server.
/chunky radius 5000 /chunky startStep 7: Give it a fast CPU
Minecraft is single-thread bound, so TPS lives on one core's speed. If the server is optimised and TPS still dips, the CPU is the wall — a fast high-clock dedicated core is the fix, not more RAM.
Biggest wins first
Paper is the #1 fix
Switching from vanilla/Spigot to Paper (or Purpur) adds performance patches that fix most lag on their own. Do this first — your world and plugins carry over.
Simulation distance is the heavy one
It's not render distance that hurts most — it's simulation-distance, which ticks entities and blocks. Drop it to 4-6 for a fast TPS gain.
spark finds the real cause
Don't guess. /spark profiler shows exactly which plugin, mob or task eats tick time, so you fix the actual bottleneck.
TPS lives on one core
Minecraft is single-thread bound. When it's optimised and TPS still dips, a fast high-clock core — not more RAM — is what restores it.
Common problems & fixes
TPS drops when players explore new areas
Chunk generation is the cause. Pre-generate the world with Chunky out to your border so exploration doesn't generate chunks live.
TPS tanks near a specific base or farm
An unoptimised mob/XP farm or entity pile-up. Profile with /spark, cap entities per chunk in Paper's config, and tune the farm.
Still laggy after switching to Paper
Lower simulation-distance, apply Aikar's flags, and run /spark to find the offending plugin or task. If clean, the CPU is the wall.
Optimised everything and TPS still dips
Single-core speed is the limit. Move to a host with a fast high-clock dedicated core.
Minecraft is a trademark of Mojang Studios / Microsoft. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Mojang or Microsoft. You must own a legitimate copy of the game to play.