Skip to content
Hosting · Performance

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:

BranchWhat it is
EntityLiving.tick with a large weightToo many mobs — Mobs and entities
Village..., Brain.tickVillagers — Villages
ChunkMap, generationChunk loading and generation — Pregeneration
Plugin nameA plugin — A plugin breaks the server
Hopper, TileEntityHoppers 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.

Minecraft hostingYour server runs while you are offlineCreate server