Minecraft server lagging: finding the cause
Updated: 18 November 2026 · Guide · Minecraft · Game server
A lagging server is almost always a server that can't keep up with its ticks. So measure the MSPT (milliseconds per tick) first: if it's permanently above 50, the server is computing too much, and a profiler such as spark shows you what with. If it's below that and things still stutter, the problem is a player's computer or the connection. More RAM is rarely the answer.
TPS and MSPT in two sentences
Minecraft computes the world in fixed steps, the ticks: 20 per second, i.e. one every 50 milliseconds. If a tick takes longer, the server manages fewer than 20 per second, the TPS drop, and everything counted in ticks slows down: crops grow more slowly, mobs jump around, broken blocks reappear.
MSPT tells you more than TPS. TPS stays at 20 as long as a tick takes at most 50 ms; whether it needs 10 or 45 ms you can't see from it. MSPT shows how much headroom is left. And because averages smooth out outliers, it's worth looking at the maximum: spark describes a case where the minimum was around 20 ms but the maximum around 80 ms. Those are the lag spikes players feel.
Server, player or connection?
If it lags for everyone at the same time and in the same way, with mobs jumping and blocks coming back, it's the server. If the picture only stutters for one player while the others play smoothly, it's that player's computer: their frames per second are shown in the debug screen under F3. If everything moves with a delay for one player but not for the others, it's usually their connection. The measurements below tell you whether the server is involved at all.
Measuring: /mspt, /tps and spark
Paper has two built-in commands. /tps shows the TPS over the last 1, 5 and 15 minutes, /mspt the average, minimum and maximum MSPT over 5, 10 and 60 seconds. PaperMC itself points to spark for more detailed values, which has been part of Paper since 1.21. On Fabric, Forge or NeoForge you install spark as a mod; spark doesn't list a version of its own for a pure vanilla server.
/mspt /spark tps /spark health /spark gc
/spark tps shows TPS and CPU load, /spark health an overall report, /spark gc the history of garbage collection, i.e. Java's memory cleanup. If the MSPT is too high, start the profiler. Important: it only measures what's happening right now. So start it while the lag is happening, not at night on an empty server.
/spark profiler start --timeout 600
After ten minutes spark outputs a link to a report. In it you see as a tree which part of the server takes how much time: entities, chunk loading, a particular plugin. You can also show the link to plugin developers or in PaperMC's support channel.
Lag spikes rather than constant load
If it only stutters briefly every few seconds, a normal profiler dilutes the picture because all the good ticks are counted too. For this there's a filter that only records ticks above a threshold:
/spark tickmonitor /spark profiler start --only-ticks-over 100
With /spark tickmonitor you first see how long the bad ticks are. You then set the threshold below that value; spark recommends something between 50 and 100 ms.
Lever 1: view and simulation distance
Two values in server.properties determine how much world the server processes per player. view-distance is the radius in chunks it sends to each player. simulation-distance is the radius in which mobs and machines are actually computed. Both default to 10 and allow 3 to 32. Because it's a radius, the area grows quadratically: every step down saves noticeably with many players. Setting simulation-distance lower than view-distance is a good start, because players then see far but only nearby areas are computed.
view-distance=8 simulation-distance=6
Lever 2: pre-generating the world with Chunky
Generating new chunks is expensive. When players fly into unexplored areas with elytra, that's exactly where load comes from. The plugin or mod Chunky generates the world in advance, when nobody is playing. It runs on Paper, Spigot, Folia, Fabric, Forge, NeoForge and Sponge. The radius is given in blocks, and Chunky resumes interrupted runs:
chunky world world chunky center 0 0 chunky radius 5000 chunky start chunky pause chunky continue
Pre-generated chunks take up disk space. So limit the world with a world border to the area you pre-generate.
Lever 3: entities, redstone, farms
If the spark report shows a lot of time on entities, searching helps more than tuning. /paper entity list lists all entities currently being computed, /paper chunkinfo the loaded chunks per world. Common culprits are full animal farms, thousands of dropped items and hopper chains. Paper has adjustment screws for this in config/paper-world-defaults.yml, for example:
| Option | Default | What it does |
|---|---|---|
| collisions.max-entity-collisions | 8 | stops computing after this many collisions per entity |
| chunks.entity-per-chunk-save-limit | per type | limits how many entities of a type are saved per chunk |
| entities.armor-stands.tick | true | set to false, armour stands are no longer ticked |
| tick-rates.mob-spawner | 1 | how often spawners are computed, in ticks |
| misc.redstone-implementation | VANILLA | EIGENCRAFT or ALTERNATE_CURRENT instead of vanilla redstone |
According to PaperMC the redstone implementations can reduce redstone lag considerably, but they change the behaviour of redstone dust. Rebuild your most important circuits once afterwards. Always change only one option, measure, and then decide.
Lever 4: RAM, too little and too much
Too little memory leads to frequent garbage collection pauses, and those slow down the TPS. /spark gc shows you this. But more only helps up to a point: the Paper docs on Aikar's flags explicitly say that beyond a certain amount more memory no longer brings more performance, and recommend setting -Xms and -Xmx to the same value and leaving memory for the operating system. Which amount suits your server and what the start parameters look like is in the linked articles.
At MRMedia
Our Minecraft servers start with Paper, so spark is already on board: you type spark and mspt in the control panel's console. You set view and simulation distance in the settings, each between 3 and 16 chunks there, and you upload Chunky into the plugins folder like any other plugin.
- How much RAM does the server need?Too little, too much and why
- Start parameter generatorAikar's flags to match your memory
- server.properties in fullview-distance, simulation-distance and more
- Installing pluginsGetting Chunky and spark onto the server
- Paper, Spigot or Purpur?What each software brings
- Rent a Minecraft serverPaper with spark preinstalled
Sources
- Minecraft Wiki: Tick (20 TPS, MSPT)
- Minecraft Wiki: server.properties (view-distance, simulation-distance)
- Minecraft Wiki: Debug screen (F3, FPS)
- spark: Download (platforms)
- spark: The tick loop
- spark: Command Usage
- spark: Finding lag spikes
- PaperMC: Profiling
- PaperMC: Commands (/tps, /mspt, /paper entity list)
- PaperMC: World configuration
- PaperMC: Aikar's flags
- Chunky on Modrinth
- Chunky wiki: Commands