// voxen field notes

How to Find the Plugin Lagging Your Minecraft Server (spark Guide, 2026)

· 7 min read · [ TUTORIAL ] · by Matteo Orazietti

When a server lags, the first guess is often the last plugin that was installed. That guess is often wrong, and removing the wrong plugin changes nothing. This post walks through spark, the free profiler, from confirming the lag to finding the plugin or the non-plugin cause behind it.

What lag actually is

A Minecraft server runs ticks, 20 per second when it keeps up: one tick every 50 ms. When a tick takes longer than 50 ms, TPS (ticks per second) drops below 20 and players feel lag. MSPT, milliseconds per tick, is the number to watch: once it rises above 50, TPS drops.

SymptomLikely causeStart with
TPS low all the timeConstant load: entities, a plugin running every tick, too little CPU or RAMStep 1, then a profile with --timeout 600
Spikes: TPS drops for a moment, then recoversSomething that runs now and then: a save, a scheduled task, a burst of entitiesA profile with --only-ticks-over
Lag only while players exploreNew chunks being generated, or view and simulation distance set too highPre-generate the world, then check the distances
Client FPS drops, server TPS stays at 20Not the server: the player hardware, graphics settings or client modsThe player side, not the plugins

Step 1: confirm the lag with TPS and MSPT

Run these as an operator while the lag is happening. Paper has /mspt built in, and /spark tps works because Paper bundles spark from 1.21 on. Older or other servers need spark installed as a plugin, see how to install plugins.

terminal — console
/spark tps
/mspt

/spark tps shows TPS and CPU usage. /mspt shows how long each tick takes. If TPS holds at 20 and MSPT stays well below 50, the server is not the bottleneck, so check the table above again. For a live view instead of a snapshot, /spark health opens a dashboard, and /spark health upload makes a static report you can share.

Step 2: run a profile

A profile records what the server does over a set period, then produces a report. Start it while the lag is happening. Older guides mention Timings: Paper deprecated it for spark and turned it off by default in 1.21.

terminal — console
/spark profiler start --timeout 600
/spark profiler start --only-ticks-over 100
/spark profiler start --thread *
/spark profiler stop
  • Constant lag: use --timeout 600. PaperMC recommends 600 seconds, which is 10 minutes. The run stops by itself and returns a report link.
  • Spikes: use --only-ticks-over 100. It records only ticks longer than 100 milliseconds, so the report shows the moments that hurt.
  • Suspected work on other threads: add --thread * to record all threads.

Plain /spark profiler start runs the default mode. Without a timeout, stop it with /spark profiler stop.

Step 3: read the report

The report opens on spark.lucko.me. It holds class names and timings, not player data, so the link is fine to send to a plugin author. The main view is a call tree for the Server thread. Open it from the top and look for package names that belong to plugins, such as com.example.someplugin.

  • Total time covers everything that ran under that method, including the calls it makes.
  • Self time is the time spent in that method itself. It points to the real hot spot.

A plugin can sit high in the tree only because the server called it while the real cost was elsewhere. Do not stop at the first plugin name. Follow the branch with the most self time down to where the time actually goes.

Common plugin causes: synchronous database or file access on the main thread, tasks that run every tick, scoreboard, hologram or tab plugins that update too often, and outdated builds.

If the console also shows errors from the same plugin, start with How to Fix Minecraft Plugin Errors.

Step 4: isolate the plugin

If the report is unclear, or you want proof, narrow it down by halves on a copy of the server, never on production.

  1. Move half of the suspect plugins out of the plugins folder. Some plugins depend on others, so move a dependency and the plugins that need it together.
  2. Start the copy, repeat the same action with the same number of players, and profile again.
  3. If the lag is gone, the culprit is in the half you removed. Put that half back, split it in two and repeat. If the lag stays, it is in the half you kept.
  4. When one plugin is left and the lag follows it, you have the culprit.

Rule out the non-plugin causes

Some lag has no plugin at its root. Check these before you remove anything:

  • Too many entities. Mob farms and piles of dropped items add work to every tick.
  • Hoppers and redstone clocks. Large item systems and clocks that never stop run all the time.
  • Chunk generation while players explore. Pre-generate the world with a chunk pre-generator such as Chunky, so new chunks are not built during play.
  • View distance and simulation distance set too high. Lower them and test again.
  • Not enough RAM or CPU on the host. /spark tps shows CPU usage, and /spark heapsummary shows memory.

If the culprit is a Skript script rather than a Java plugin, the trade-offs are covered in Skript vs Java plugins.

Fixing or replacing the plugin

Once you know the plugin, try these in order and stop when the lag is gone:

  1. Update the plugin to the newest build that supports your server version.
  2. Check its config for update intervals and polling rates. A value set too low can be the whole problem.
  3. Send the author the spark report link. It gives them something concrete to work from.
  4. Replace the plugin with a maintained alternative, or remove it if you do not need the feature.

Change one thing at a time and profile after each change. If you change three settings and the lag drops, you will not know which one did it. If the plugin is abandoned and you have only its .jar, the porting route is in How to Update a Minecraft Plugin to 1.21 and 26.x.

When there is no maintained replacement

If the culprit is a custom or abandoned plugin with no maintained alternative, describe its features in plain language. Voxen Engine writes the Java code, compiles it in the cloud and gives you the .jar. It targets Spigot, Paper and Purpur, from Minecraft 1.8.8 to 26.3. You can keep iterating on the same project with follow-up prompts, and you get 5 free generations with no card needed.

Then install the new jar on a copy of your server, run the same profile again, and compare the results. That is the only way to show the replacement is lighter.