How to find which plugin is lagging your Minecraft server (TPS vs MSPT explained)

TPS hides lag until it's too late; MSPT shows it early. How to read spark, find the plugin behind a lag spike on Paper, and what normal numbers look like.

PerformanceBy the ServerStats teamUpdated 7 min read

Questions

What is a good MSPT for a Minecraft server?

Anything under 50 ms keeps the server at 20 TPS. Under about 30 ms average leaves headroom for spikes; a busy survival server that sits at 45 ms is one farm away from lagging.

Why does my server show 20 TPS but players still feel lag?

TPS is an average capped at 20, so a server running 45 ms ticks, or one that spikes to 400 ms once a minute, can still report 20. Look at MSPT, especially the max, and check player ping to rule out network lag.

Does Paper still have timings?

No. Paper deprecated Timings, turned it off by default in 1.21 and has since removed it. Paper bundles spark from 1.21 onwards, and spark is the tool to use.

Can I find the laggy plugin on Folia?

Not with a single-thread profiler, because Folia has no single main thread. Use spark per region and region TPS instead; ServerStats's own profiler is off on Folia for the same reason.

See which plugin caused your last lag spike

Free for one server, no card. About five minutes to install.