Free guide
The Minecraft Server Lag Checklist
I wrote this checklist because most lag advice on the internet starts with changing settings, and that is the wrong order. This guide starts with measuring, so you can see what your server is actually doing. Then it walks through the settings that genuinely move the needle, shows you how to find the real cause when the settings are not the problem, and is honest about where a checklist stops being enough.
You need console or OP access to your server and about fifteen minutes while players are online. Work through it in order — each section depends on the one before it.
1. Measure first
Every Minecraft server tick has a budget of 50 milliseconds. The server runs 20 ticks per second (TPS), and each tick — entities, redstone, chunks, plugins, everything — has to finish inside that 50 ms budget. When a tick takes longer, TPS falls, and players feel it as block lag, rubber-banding, and delayed hits.
Two numbers describe your server's health:
- TPS — ticks per second. 20 is perfect. Paper's
/tpscommand shows the average over the last 1, 5, and 15 minutes. The catch: it is an average, so a server can report 19 TPS while still freezing for a second at a time. - MSPT — milliseconds per tick. This is the number that matters. Paper's
/msptcommand shows the average, minimum, and maximum tick time over recent windows. If MSPT sits above 50, TPS cannot hold at 20, no matter what the average TPS says.
Healthy looks like this: TPS at 19.5–20, average MSPT comfortably under 50 (roughly 20–35 ms leaves real headroom), and the 95th-percentile MSPT — the tick time your worst regular spikes reach — still under 50 ms. If your average is fine but the percentile is over budget, you have a spike problem, not a load problem, and the fix is different.
Install spark and take three readings
The tool I use for all of this is spark, a free performance profiler by lucko. Install it as a plugin, restart, and run these three commands while your server is at its normal player count:
/spark health
/spark tickmonitor
/spark profiler start
/spark healthgenerates a report with TPS, MSPT including percentiles, memory use, and CPU load. This is your baseline — save the link./spark tickmonitorprints a line in chat every time a tick exceeds the 50 ms budget, so you can watch spikes happen live and note what players were doing at that moment./spark profiler startbegins sampling what the server spends its time on. Let it run through a laggy period — at least a few minutes — then run/spark profiler stopand open the viewer link it gives you. Section 3 covers how to read it.
Do not change a single setting before you have these readings. If you change five things and the lag improves, you will never know which one mattered — and if it gets worse, you will not know which one to revert.
2. The quick wins checklist
These are the settings I check first on any Paper or Purpur server. Each one lists the file it lives in. Change one or two at a time, restart, and compare against your baseline from Section 1. Keep a note of what you changed — future you will be grateful.
- Lower simulation-distance before view-distance
In
server.properties(or per-world inpaper-world-defaults.yml). View-distance controls how many chunks are sent to each player; simulation-distance controls how many chunks actually tick — entities, redstone, crops, spawners. Simulation is what costs CPU. For a survival server, simulation-distance of 4–6 with a view-distance of 8–10 gives players the view they want at a fraction of the tick cost. - Turn on per-player mob spawning
In
paper-world-defaults.yml, underentities.spawning, setper-player-mob-spawns: trueif it is not already. Without it, mob caps are shared across the whole server, so one player at a dark-room farm consumes the cap for everyone — and the server still pays to attempt spawns everywhere. - Trim the spawn limits
In
bukkit.yml, underspawn-limits. The defaults (70 monsters, 10 animals, 20 water-ambient, and more) are generous for a small server. Halving monster and ambient limits on a server that does not need them is free performance, and players rarely notice anything except fewer stray bats. - Reduce entity activation ranges
In
spigot.yml, underentity-activation-range. Entities outside these ranges tick at a reduced rate instead of fully. The defaults — 32 blocks for animals and monsters, 64 for raiders — can come down to roughly 24/24/48 on a survival server. Also confirmtick-inactive-villagers: trueso villagers outside activation range tick cheaply; trading halls are a classic hidden cost. - Stop hoppers from firing events nobody uses
In
paper-world-defaults.yml, underhopper, setdisable-move-event: true— unless a plugin you run depends onInventoryMoveItemEvent. Hopper chains are one of the most common tile-entity costs on survival servers, and most servers have no plugin listening to that event. While you are there, confirmcooldown-when-full: trueso full hoppers stop polling every tick, and review the hopper transfer and check intervals underticks-perinspigot.yml. - Protect loaded chunks from sync loads
In
paper-world-defaults.yml, underchunks, setprevent-moving-into-unloaded-chunks: true. This stops players from flying or riding into chunks that are not loaded yet, which otherwise forces the server to load them synchronously — a classic source of sharp MSPT spikes during exploration. Also checkentity-per-chunk-save-limitin the same section: capping how many entities save per chunk prevents a single entity-stuffed chunk from stalling a world save. - Use Paper's built-in anti-xray
In
paper-world-defaults.yml, underanticheat.anti-xray, setenabled: true. Engine mode 1 hides ores that are completely surrounded by other blocks and is relatively light. Engine mode 2 also disguises exposed veins, which stops more xray methods but costs more CPU per chunk sent. If you currently run a separate anti-xray plugin doing the same job with its own chunk processing, replacing it with the built-in version usually removes duplicate work. - Use Aikar's JVM flags, sized to your server
Your startup flags matter as much as your configs. Run Java 21 for Minecraft 1.21, use the G1GC flag set published by Aikar (aikar.co/flags), and set
-Xmsequal to-Xmxso the heap does not resize mid-game. Do not allocate every gigabyte your host has: the operating system needs memory for the page cache your world files are read through, and an oversized heap makes garbage-collection pauses longer, not shorter. For most servers, the heap you actually need is smaller than you think.
Restart, let the server settle under a normal player load, and take the same three spark readings again. If MSPT dropped and the percentile came under 50 ms, you are done — enjoy your server. If it barely moved, your problem is not in this list, and that is genuinely useful information.
3. Finding the real cause
Open the spark profiler report you captured in Section 1 — ideally one recorded during the lag, with players online. A profile of an empty server tells you what an empty server does, which is nothing.
Read self time, not total time
The profiler viewer shows a tree of everything the server did, with two percentages that beginners constantly mix up. Total time includes everything a method called underneath it, so the top of the tree always shows the server's main loop at nearly 100% — that tells you nothing. Self time is the time spent in that method's own code, and it is where the truth lives. Switch to the flat view, sort by self time, and the top entries are the actual work your server is spending its tick budget on.
Three patterns account for most of what I find:
- Entity ticking dominates. The entity section of the tree swells, often concentrated in one world. Compare your worlds: a villager trading hall, an over-bred animal pen, or a mob farm with hundreds of entities waiting to be processed will show up as one world's entity tick dwarfing the others. The fix is in that world, not in your configs.
- Tile entities dominate. Hoppers, furnaces, and other block entities show up under block-entity ticking. Thousands of hoppers in sorting systems are the usual cause. The checklist item on hopper events helps, but a farm built around tens of thousands of tile entities is a design problem, not a settings problem.
- One plugin's package dominates. Plugin code appears in the tree under its own package name, so a single plugin eating 20% of every tick is easy to spot once you know to look at self time. Note the percentage before you touch anything — that number is how you prove the fix worked.
What timings can and cannot tell you
If you are on an older setup you may also have a timings report. Timings can give you a rough per-plugin percentage of a tick, which is fine as a first glance. It cannot show you what inside the plugin is slow, it distorts badly once ticks are already over budget, and it has been deprecated in favour of spark on modern Paper. Treat a timings report as a hint, never as evidence.
The discipline that makes this work: one change at a time, a profiler capture before and after, and the self-time percentage written down. Lag that "feels better" is not a measurement. Servers I work on get a baseline, a change, and a comparison — in that order, every time.
4. When it is not a settings problem
Sometimes the checklist changes nothing, the profiler shows no single fat plugin, and the server still spikes. That pattern usually means one of these:
- A plugin is doing slow work on the main thread. Database queries, file reads and writes, and web requests must never run on the tick thread, but plenty of plugins do exactly that — saving player data to MySQL when someone logs out, or writing files during an autosave cycle. The signature is a regular MSPT spike at a fixed interval, or a spike whenever a specific command runs or a player joins. The profiler shows it as one plugin's method holding the thread while everything else waits.
- Your costs scale with players in a way settings cannot fix. Every additional player loads more chunks, ticks more entities, and fires more plugin events. A configuration that holds 20 TPS with five players may be mathematically incapable of holding it with twenty-five, no matter how it is tuned. At that point the honest options are reducing per-player cost (simulation distance, farm rules), splitting load across servers behind a proxy, or better hardware.
- The hardware is the ceiling. The main tick loop still depends heavily on single-thread CPU performance. Oversold shared hosting, where your "cores" are contended by every other customer on the machine, produces lag that no configuration can cure. If MSPT is high with almost nothing in the profiler, suspect the machine, not the server.
- It is the network, not the server. If TPS holds at 20 and MSPT is healthy while players still complain, stop tuning the server. Rubber-banding with a healthy tick rate points at bandwidth (a high view-distance multiplies the chunk data sent to every player), at the proxy if you run Velocity or BungeeCord, or at the connection between the player and the host. Server lag and network lag feel identical to a player and have completely different fixes.
None of these are failures of the checklist. Ruling out settings, entities, and plugins — with measurements, not guesses — is most of the diagnostic work. What remains is the part that needs a deeper look at your specific server.
The full diagnostic
What a Deep Server Diagnostic adds
This checklist covers measurement and the settings that matter. My Deep Server Diagnostic goes further: a per-plugin performance breakdown measured on your live server, a heap and thread review for memory and garbage-collection problems, a startup and full configuration audit across every file — not just the famous ones — plus proxy and network checks where a proxy is in use. You get a written report with every finding in priority order and the fix for each one, so you can apply the fixes yourself or hand the report to anyone.
Deep Server Diagnostic — $49. Open a ticket in my Discord and I will confirm the scope in writing before you pay anything.