Spark: server profiling
How to take a server profile with the Spark plugin, read the call tree, find the cause of lag, and view memory usage.
Updated August 13, 2026
Spark is a modern profiler for Paper, Fabric, Forge and Velocity. It shows where CPU time goes, including vanilla mechanics.
Take a profile
spark profiler start --timeout 300
Five minutes with real players online, then the link appears on its own. Or:
spark profiler stop
Quick commands
spark tps TPS and MSPT
spark health overall state, memory, disk
spark heapsummary what is using memory
How to read the tree
The report is a call tree with percentages. The point is to descend along the “fattest” branch until the name of the plugin, mod or mechanic becomes clear.
Typical findings:
| Branch | What it is |
|---|---|
EntityLiving.tick with a large weight | Too many mobs — Mobs and entities |
Village..., Brain.tick | Villagers — Villages |
ChunkMap, generation | Chunk loading and generation — Pregeneration |
| Plugin name | A plugin — A plugin breaks the server |
Hopper, TileEntity | Hoppers and contraptions — Farms |
Memory
spark heapsummary shows which objects occupy the heap. A growing number of entities or plugin entries between two snapshots is a sign of a leak.
The main rule
Profile first, then make changes. Tuning “based on forum advice” without measuring usually achieves nothing and sometimes makes things worse.
