How to Read a spark Report and Find What's Lagging Your Minecraft Server
TPS tells you that the server is struggling. spark tells you why. Here's how to capture a useful profile and read it like an engineer.

Infrastructure & Support Team
On this page
When players say "the server is lagging", they usually mean one of two very different things. Either the server can't finish its work fast enough, or the network between the player and the server is slow. Treating Minecraft server lag without knowing which one you have is how people end up deleting random plugins at 2 a.m. This guide shows you how to use the spark profiler to find out exactly what is eating your tick time, and how to read the report without getting lost in it.
Everything here applies to Paper and its forks (Purpur, Pufferfish), and most of it to Spigot, Fabric and Forge too.
TPS and MSPT: the two numbers that matter#
A Minecraft server runs in ticks. It aims for 20 ticks per second, which gives it a budget of 50 milliseconds per tick.
- TPS (ticks per second) tells you whether the server is keeping up. 20 is perfect. Below about 18 players start to notice: mobs stutter, blocks reappear, furnaces slow down.
- MSPT (milliseconds per tick) tells you how much of the 50 ms budget each tick actually uses. It is the more useful number, because it shows trouble before TPS drops. A server at 45 MSPT still shows 20 TPS, but it has almost no headroom left.
On Paper you can check both from the console:
tps
msptIf MSPT is consistently under 50 and players still complain, stop here: the problem is probably the network, not the server. Our network troubleshooting guide walks through measuring that properly.
Installing spark#
spark is a free, open-source performance profiler for Minecraft servers. Recent Paper builds ship with spark built in, so try the command first:
sparkIf it isn't recognised, download spark for your platform from its website and install it like any other plugin or mod. Our guide to installing plugins covers the upload steps on the LordCloud panel.
Capturing a profile that's actually useful#
The most common mistake is profiling at the wrong time. A profile taken while the server is idle tells you nothing. Start the profiler while the lag is happening, or just before the busy hour:
spark profiler startLet it run for at least a few minutes while players play normally, then stop it:
spark profiler stopspark uploads the result and prints a link to an interactive viewer. Share that link when asking for help — it's far more useful than a screenshot of TPS.
Profiling only the bad ticks#
If your server is fine most of the time but has sudden spikes, a normal profile averages the spikes away. Tell spark to record only ticks that went over a threshold, for example 100 ms:
spark profiler start --only-ticks-over 100This is the best way to catch things like a big redstone contraption that fires every few minutes, or an autosave that freezes the server.
Reading the report#
The viewer looks intimidating at first. You only need three things.
1. Start at the server thread#
Expand the Server thread. Everything that happens inside a tick runs here. Other threads (async chunk loading, network threads) matter less for TPS.
2. Follow the biggest percentages down#
Each line shows what share of the sampled time was spent inside that method. Keep expanding the child with the largest percentage. You are looking for the point where the time stops being "Minecraft doing Minecraft things" and becomes something specific — a plugin's package name, entity ticking, block entities or chunk generation.
3. Recognise the usual suspects#
| What you see in the call tree | What it usually means |
|---|---|
| A plugin's package name taking a large share | That plugin is expensive. Check its config, update it, or replace it |
Entity ticking (tickEntities, mob AI, pathfinding) |
Too many mobs: farms, villager halls, animals bred in thousands |
| Block entities (hoppers, furnaces, chests) | Large hopper chains, sorting systems, item storage builds |
| Chunk generation or loading | Players exploring new terrain, or a low world border |
| Redstone and block updates | Clocks, observer chains, flying machines |
| Garbage collection pauses | Memory pressure: too little RAM, or a plugin leaking memory |
Fixing Minecraft server lag: what to change first#
Change one thing at a time, then profile again. Otherwise you'll never know which change worked.
Plugin hot spots. Update the plugin first — performance fixes are common. If it's still heavy, look for a config option that reduces how often it runs (scanning intervals, holograms refreshing every tick, scoreboard updates). Some plugins simply do too much on the main thread; replacing them is a valid fix.
Too many entities. Find where they are. On Paper, this lists entity counts by type for a world:
paper entity listThen visit the worst areas — it's usually one player's farm, not the whole map. Paper's world configuration (config/paper-world-defaults.yml on modern versions) has settings for entity despawn ranges and per-chunk limits. The PaperMC documentation explains each option.
Hoppers. Large hopper systems are a classic cost. Encourage players to use fewer, shorter chains, or use Paper's hopper-related optimisations rather than banning them outright.
Chunk generation. Pre-generate your world so exploration doesn't generate terrain live. Our guide to managing worlds shows how to do it with Chunky and a world border.
View and simulation distance. These two settings change the amount of work per tick more than almost anything else. A simulation-distance of 4–6 is plenty for most survival servers, and players rarely notice the difference. See server configuration for where to change them.
When it really is the hardware#
Sometimes the profile is clean: no single plugin, no mob farm, just a busy server doing legitimate work. That's when more resources make sense. Two signs to look for:
- CPU time is the limit. MSPT stays high even after optimisation, and spark shows time spread evenly across normal game work. More CPU share helps here.
- Memory is the limit. You see frequent or long garbage-collection pauses, or
OutOfMemoryErrorin the logs. More RAM helps here, and only here.
If you're running on LordCloud, the Minecraft hosting plans list the RAM and CPU share for each plan, and you can upgrade a plan from the billing area without moving your files. Profile first, though — an upgrade can't fix a plugin that freezes the server every five minutes.
A five-minute lag checklist#
- Run
mspt. Under 50 ms consistently? Check the network instead. - Start
spark profilerduring the lag, wait a few minutes, stop it. - Expand the server thread and follow the largest percentages.
- Name the culprit: a plugin, entities, block entities, chunk generation or memory.
- Fix one thing, then profile again to confirm.
- Keep the spark link — it's the evidence you'll want if you ever need help.
Most lag has a single, specific cause. spark is how you stop guessing and find it.
Frequently asked questions
What is a good MSPT for a Minecraft server?
Anything consistently under 50 ms keeps the server at a full 20 TPS. Healthy servers usually sit well below that, often in the 10–30 ms range, which leaves headroom for spikes.
Does running spark cause lag itself?
The overhead is small because spark samples the server periodically instead of tracing every call. It is safe to run on a live server for a few minutes.
My TPS is 20 but players still lag. Why?
If TPS and MSPT are healthy, the problem is usually network latency or the player's own connection, not the server. Check ping and packet loss from the player's side.
Should I just buy more RAM?
Only if spark or your memory graphs show memory pressure, such as frequent long garbage-collection pauses. Most lag comes from CPU-heavy ticks, which extra RAM does not fix.
References
Drafted with AI assistance and checked against LordCloud's published product information. Spotted a mistake?Suggest an edit.



