How to Check Your Minecraft Server's TPS and MSPT (and What the Numbers Mean)
When players say "the server is lagging", the first thing to find out is whether the server is actually struggling, or whether it's their internet or their computer. Two numbers answer that: TPS and MSPT. Here's how to check them on any server type and how to read what you get.
/tps and /mspt. On any server with spark (built into Paper since 1.21, a mod on Fabric, Forge and NeoForge), run /spark tps for TPS, MSPT and CPU, or /spark health for a full report with memory and disk. On Vanilla 1.20.3 and newer, use /tick query. Good: TPS 20 and MSPT under 50. MSPT regularly above 50 means the server can't keep up.TPS and MSPT in plain words
Minecraft runs the world in steps called ticks. The target is 20 ticks per second, so each tick has 50 milliseconds to finish everything: moving mobs, growing crops, running redstone and hoppers, and so on.
- TPS (ticks per second) is how many ticks the server actually managed. 20 is perfect. Below 20, the whole world runs in slow motion: crops grow slower, mobs stutter, and blocks take a moment to break.
- MSPT (milliseconds per tick) is how long each tick took. Under 50 means the server finishes with time to spare.
MSPT is the more useful number. TPS stays at 20 whether a tick takes 10 ms or 45 ms, so it can't warn you that you're close to the limit. MSPT can.
The commands
You need to be an operator to run these in-game. You can also type them in the server console without the leading /.
Paper (and Purpur): /tps and /mspt
/tps
Shows TPS from the last 1, 5 and 15 minutes. The 1-minute number shows what's happening right now; the 15-minute one shows the longer trend.
/mspt
Shows the average, lowest and highest tick time over the last 5, 10 and 60 seconds. The highest number is the one to watch, it shows the worst spikes.
Paper's own docs say these are superseded by spark, which gives you more detail. Both are fine for a quick check.
spark: /spark tps
spark is a free performance plugin and mod. It's bundled with Paper since 1.21, so it's already there. On Fabric, Forge or NeoForge, install the spark mod (server side only).
/spark tps
You get three sections:
- TPS from last 5s, 10s, 1m, 5m, 15m
- Tick durations (min/med/95%ile/max ms) from last 10s, 1m, which is MSPT
- CPU usage from last 10s, 1m, 15m, for the whole machine and for the server process
The 95%ile value is very useful: it tells you how slow the slowest 5% of ticks are. A median of 20 ms with a 95th percentile of 80 ms means the server is mostly fine but has regular spikes, which players feel as stutter.
spark: /spark health
/spark health
This creates a health report and gives you a link to view it in your browser. It covers TPS, MSPT, CPU, memory (RAM) and disk use in one place. If you'd rather see it right in chat or the console:
/spark health show
/spark health show --memory
The --memory flag adds more detail about Java's memory use. Use this when you're not sure if the problem is CPU or RAM.
Vanilla: /tick query
Vanilla servers on 1.20.3 or newer have the /tick command (it needs permission level 3, so ops can use it).
/tick query
It shows the target tick rate, the average time per tick and percentiles of tick time. If the server is falling behind, it also says the game is running but can't keep up.
What the numbers mean
| MSPT | TPS | What it means |
|---|---|---|
| Under 30 | 20 | Healthy, plenty of headroom |
| 30 to 50 | 20 | Keeping up, but less room for busy moments |
| Spikes above 50 | Mostly 20, short dips | Something heavy is happening now and then: autosaves, a farm, chunk generation |
| Steadily above 50 | Below 20 | Overloaded. The world is slowing down for everyone |
Some extra context:
- A dip right after startup is normal. The server is loading worlds and catching up. Measure after it has been running a few minutes.
- Measure when players are on. An empty server will nearly always read 20 TPS. Check during the busy time when people actually complain.
- TPS 20 but players still lag? Then the server is keeping up, and the lag is probably network (high ping) or the player's own computer (low FPS). spark also has
/spark pingto show players' ping. - "Can't keep up!" in the console is the server telling you MSPT was over 50 long enough to fall behind. See what "Can't keep up" means.
Your numbers are bad. What next?
TPS and MSPT tell you that the server is struggling, not why. To find the cause, run the spark profiler while the lag is happening:
/spark profiler start
Let it run for a few minutes during the lag, then:
/spark profiler stop
It gives you a link to a report showing which mod, plugin, entity or chunk is using the most tick time. Our guide on how to read a spark profiler report walks through it.
The most common causes we see:
- Too many entities. Animal pens, mob farms and dropped items. See TPS drops from too many mobs.
- High simulation distance. Lowering it is often the quickest single fix. See view and simulation distance.
- Chunk generation while exploring. Pre-generating the world moves that work to a quiet time.
- A heavy mod or plugin. The profiler will name it.
For a full walkthrough of lag causes, start with why your server is lagging.
Keep an eye on it
Checking TPS once tells you how things are right now. Checking it regularly catches problems early, before a mob farm grows to thousands of entities. A good habit:
- Run
/spark tpsduring your busiest hour once a week. - Note the median and 95%ile MSPT.
- If they've crept up since last time, run a profiler and find out what changed.
On FreaksMC you can run all of these from the panel's Console, no need to join the game.
Quick reference
| Command | Works on | Shows |
|---|---|---|
/tps |
Paper, Purpur | TPS over 1, 5 and 15 minutes |
/mspt |
Paper, Purpur | Average, min and max MSPT over 5s, 10s, 60s |
/spark tps |
Any server with spark | TPS, MSPT percentiles, CPU |
/spark health |
Any server with spark | TPS, MSPT, CPU, memory, disk |
/tick query |
Vanilla 1.20.3+ (and others) | Tick rate, average and percentile tick time |
/spark profiler start |
Any server with spark | Finds what's causing lag |
Want a server that just runs fast?
FreaksMC servers run on AMD Ryzen 9 7950X3D processors with fast NVMe storage. Pick vanilla, Paper or a modpack and your server is ready in minutes.
See plans from $4/mo