Profiling with Spark

Find the lag source with a Spark report.

On this page

Spark is a profiling tool that helps find the cause of server lag — whether from a plugin, entities, or specific world operations. Spark is available as a plugin (Java) and is often bundled in modern Paper/Purpur servers.

Note

Spark only **diagnoses**, it does not fix. Use its results to decide which plugin/setting is burdening the server.

Basic Commands#

Run in the Console or chat:

CommandPurpose
/spark tpsShow server TPS and CPU usage.
/spark profiler startStart recording performance.
/spark profiler stopStop and produce a report (link).
/spark healthServer health summary.
/spark pingMeasure ping/latency.

How to Profile#

  1. Run /spark profiler start while the server is lagging (ideally when many players are online).
  2. Let it run for 30–60 seconds.
  3. Run /spark profiler stop.
  4. Spark gives a report link — open it to see which plugins/operations consume the most time.

Reading the Results#

  • Look at the largest section in the chart: that is the main load source.
  • If a plugin dominates, consider removing, updating, or replacing it.
  • If entities/chunks dominate, limit mob spawns and optimize world settings.

Tip

Access heatmaps can be analyzed with `/spark profiler start --only-ticks-over 100` to record only slow ticks.

See also the Lag Optimization guide for further steps.

Install Spark#

If it is missing, upload spark.jar to the plugins folder, then Restart the server. Check with /spark — if a help message appears, Spark is active.

Need Help?#

Contact SupportOpen a ticket or ask directly on the Arqonara Discord.