How to Fix Minecraft Server Lag (TPS, MSPT & Ping Guide)
Fix Minecraft server lag step by step: check TPS and MSPT, find entity, chunk, plugin, RAM and CPU causes, read 'Can't keep up' warnings and profile with spark.

Minecraft server lag has three different causes, and the fix depends on which one you have. If TPS is below 20 or MSPT is above 50 ms, the server itself is overloaded (entities, chunks, plugins, memory or CPU). If TPS is 20 but players rubber-band, the problem is network latency between them and the server. If only one player stutters while everyone else is fine, it is their client. This guide covers the first case in depth and shows how to rule out the other two.
Follow the troubleshooting sequence in order; most servers find their cause in the first five steps.
The troubleshooting sequence
- Check TPS and MSPT. On Paper or Purpur run
/tpsand/mspt; on other software use/spark tpsafter installing spark. 20 TPS with MSPT under 50 ms means the server is keeping up. Anything else is server-side lag; keep going. - Check player, entity and chunk load. Lag that appears only when a certain farm is loaded or a certain player is online points at entities or chunks, not at hardware.
- Check view-distance and simulation-distance. These two values in
server.propertiesscale the amount of world the server ticks and sends. Simulation distance is the one that costs CPU. - Check plugins or mods. Disable half, test, repeat. A profiler shortens this to minutes.
- Check world generation. New terrain is one of the most expensive things a server does. Pre-generate it.
- Check RAM pressure and garbage collection. Long GC pauses look like periodic lag spikes; an undersized heap ends in
OutOfMemoryError. - Check CPU saturation. The main thread uses one core. A slow core or a shared, oversold core is the limit no setting can remove.
- Profile with spark. Stop guessing: a 30-second profile shows which plugin, entity type or chunk is eating the tick.
- Review the logs.
Can't keep up!, watchdog thread dumps and memory errors each mean something specific. - Change one variable at a time. Measure, change one thing, measure again. Otherwise you will not know what fixed it or what made it worse.
The sections below explain each step, then cover the specific symptoms people search for: "can't keep up", low TPS, high MSPT, lag spikes and tick lag.
Step 1: Check TPS and MSPT
Minecraft runs a game loop of 20 ticks per second. Every tick has a budget of 50 milliseconds. TPS (ticks per second) is the result: 20 is perfect, below about 18 players notice. MSPT (milliseconds per tick) is the cause: it is how long the last ticks actually took.
/tpsshows the average over 1, 5 and 15 minutes./msptshows minimum, median and maximum tick times over the last 5 seconds, 10 seconds and 1 minute.
Read them together. A median MSPT of 20 ms with a maximum of 300 ms is a spike problem (step 6 or 8). A median of 70 ms is a sustained overload (steps 2 to 5). The Minecraft TPS and MSPT calculator converts between the two and shows how much headroom you have left.
Step 2: Check player, entity and chunk load
Every mob, item, minecart, armor stand and experience orb is an entity the server updates each tick. Every loaded chunk has blocks, block entities (hoppers, furnaces, chests) and random ticks. The usual culprits:
- mob farms with hundreds of entities waiting to be killed
- item overflow (full chests with hoppers still pushing, exploded creeper drops, broken sorters)
- villager trading halls (villagers run expensive AI)
- players spread across the map, each loading their own set of chunks
On Paper, /paper entity list shows entity counts by type and the chunks with the most of them. If one chunk holds 600 entities, you have found your lag.
Step 3: Check view-distance and simulation-distance
view-distance controls how many chunks around each player are loaded and sent to them. simulation-distance controls how many of those chunks actually tick (mobs move, crops grow, redstone fires). Simulation distance is the expensive one. A common starting point for a busy survival server is view-distance=8 to 10 with simulation-distance=5 or 6; players still see far away, but the server only simulates what is near them.
Both live in server.properties. The server.properties generator produces a correctly formatted file, and view distance vs simulation distance explains what each setting does to performance and gameplay before you pick numbers.
Step 4: Check plugins or mods
Plugins and mods run inside the tick. A chunk-scanning anti-cheat, a badly configured hologram or shop plugin, or a mod that scans inventories every tick can cost more than the whole Vanilla game loop. Signs that an add-on is the cause:
- lag started after you installed or updated something
- lag correlates with a specific command, menu or event
- the profiler (step 8) shows one plugin at the top of the main thread
Binary search works when you have no profiler: move half the plugins out, restart, test, repeat.
Step 5: Check world generation
When a player enters chunks that have never been loaded, the server generates terrain, structures and features on the fly. This is far more expensive than loading saved chunks. Symptoms: lag whenever someone goes exploring or flies with elytra, fine when everyone is at spawn.
Fix it by pre-generating the area players will actually use with a plugin like Chunky while the server is empty, and by setting a world border so exploration stays inside the pre-generated region. Chunk loading from disk still costs something, which is where NVMe storage and view distance come in, but generation is the part that hurts.
Step 6: Check RAM pressure and garbage collection
Java frees memory with garbage collection (GC). Two failure modes cause lag:
- Too little heap. The collector runs constantly, each run pauses the main thread, and eventually the server crashes with
java.lang.OutOfMemoryError. Fix: give the server what it needs. The Minecraft RAM calculator gives a starting point and the RAM requirements guide explains what consumes memory. - Poorly tuned or oversized heap. A huge heap with default flags can produce long, infrequent pauses that feel like random lag spikes. Fix: use Aikar's flags (the Java startup flags generator builds them for your memory size) and leave memory outside the heap for Java itself.
Do not confuse memory with tick time. More RAM does not raise TPS unless garbage collection is the cause, and a profiler will show you if it is.
Step 7: Check CPU saturation
Most of a Minecraft server runs on one thread, so what matters is the speed of one core, not the core count. If MSPT is high across the board, entity counts are reasonable, simulation distance is low and the profiler shows the work spread evenly across the game loop, you have simply reached the limit of that core. Options are to reduce the workload (fewer players per server, lower simulation distance, split game modes across servers behind a proxy) or to run on a faster per-core CPU. Shared hosting on an oversold node shows the same symptom with the extra tell-tale that MSPT changes with the time of day, when other customers are busy.
Step 8: Profile with spark
spark is bundled with recent Paper builds and available as a plugin or mod for everything else. The three commands you need:
/spark tpsfor TPS, MSPT and CPU usage in one line/spark profiler startthen, after 30 to 60 seconds of normal play,/spark profiler stopfor a link to a report that lists what used the main thread, by plugin, entity type and chunk/spark healthfor memory, GC and disk at a glance
Profile during the lag, not after it. If lag is intermittent, start the profiler and leave it running until a spike happens.
Step 9: Review the logs
Open latest.log or paste it into the Minecraft server log analyzer, which flags the common patterns:
Can't keep up! Is the server overloaded? Running 2000ms or 40 ticks behind— the tick budget was blown. Occasional lines after a restart or a big chunk load are normal; constant lines are a sustained overload.The server has not responded for 10 seconds! Creating thread dump— the watchdog caught a tick that took far too long. The thread dump that follows usually names the plugin or operation.java.lang.OutOfMemoryError— the heap is too small for the workload, or something is leaking memory.- repeated plugin stack traces — an add-on throwing errors every tick is also wasting time every tick.
Step 10: Change one variable at a time
Take a backup. Change one thing: simulation distance, a plugin, memory, flags. Restart, play for a while under realistic load, read /mspt again, write down the result. Then change the next thing. Doing five changes at once almost always leaves you with a server you no longer understand.
Symptom guide
"Can't keep up! Is the server overloaded?"
This console message means a tick (or a run of ticks) took far longer than 50 ms. It is a symptom, not a cause. Look at how far behind it reports: a few hundred milliseconds now and then is a spike, thousands of milliseconds continuously is an overload. Work through steps 2, 5 and 6 first; chunk generation and garbage collection produce the biggest single stalls.
Low TPS all the time
Sustained TPS below 20 with MSPT above 50 ms means the main thread cannot finish its work. Usual order of likelihood: too many entities, simulation distance too high for the player count, a heavy plugin or mod, then CPU limits. Profile (step 8) and fix the top item.
High MSPT but TPS still 20
MSPT between 40 and 50 ms with TPS at 20 means you are almost out of headroom. Nothing is broken yet; the next farm or the next five players will push it over. Treat it as an early warning and reduce the load now.
Lag spikes every few seconds or minutes
Periodic spikes with a low median MSPT are typically garbage collection (step 6), scheduled plugin tasks (auto-save, backups, chunk scans) or a player crossing into new terrain (step 5). spark's profiler with a longer window will show which.
Rubber-banding with TPS at 20
If the server reports 20 TPS and low MSPT, the lag is between the player and the server. Check the player's ping, their connection (Wi-Fi versus cable), and the physical distance to the server location. A server hosted in a different continent from its players will feel laggy no matter how fast it is. LuxuryNodes servers are in Miami and Dallas, which suit players in North and Latin America.
Tick lag only in one area
If lag appears only when a specific chunk is loaded, it is almost always an entity or block-entity concentration there: a farm, a storage system, a redstone clock. /paper entity list and spark's per-chunk breakdown point at it.
Lag after a Minecraft or plugin update
New versions change performance characteristics, and plugins compiled for the previous version can misbehave. Check the log for plugin errors, make sure every plugin build matches the Minecraft version, and compare /mspt before and after on the same workload.
Does switching server software help?
If you run Vanilla or Spigot, moving to Paper usually lowers MSPT on the same workload because of asynchronous chunk loading and entity optimizations; see Paper vs Spigot. Moving from Paper to Purpur does not change performance in a meaningful way, since Purpur is built on Paper; see Paper vs Purpur. Software is one lever among many. Entity counts, simulation distance, pre-generation and memory sizing matter more.
When the hardware is the limit
If you have done the ten steps, the profiler shows the work spread across the normal game loop, and MSPT is still over 50 ms with a sensible player count, the server needs a faster core or a smaller workload. Paper and Purpur server hosting at LuxuryNodes runs on AMD Ryzen 9 5900X nodes with NVMe storage; for modpacks see modded Minecraft hosting, or compare every Minecraft server hosting plan. Bring your spark report when you ask support which plan fits; it is the most useful thing you can share.
Paper vs Purpur: Which Minecraft Server Software is Better?
Paper vs Spigot: Which Minecraft Server Software is Better in 2026?
Ready to host your own server?
Experience blazing-fast performance with LuxuryNodes. Built for gamers, loved by developers.
View Hosting Plans