Offer Why us? How it works?
Guide

How to Use spark on a Minecraft Server: Profiler, TPS and Health Report

When a Minecraft server lags, guessing the cause wastes hours. spark measures what the server actually spends its time on and points to the culprit within minutes: a specific plugin, a mod, a mob farm or world generation. Here's how to get it running, which commands to type and how to read the report – including on Paper, where the old Timings report no longer works.

Updated: 10 min read
Table of contents
  1. What is spark?
  2. Is spark already on my server?
  3. How to install spark on a Spot.gg server
  4. spark tps: a quick check for lag
  5. spark health: the server health report
  6. How to run a spark profiler, step by step
  7. How to read a spark report
  8. What happened to Timings in Paper?
  9. Common spark problems
  10. FAQ
  11. How do I check my Minecraft server's TPS?
  12. Does spark slow down the server?
  13. Where do I find the spark profiler results?
  14. Does Paper still have /timings?
  15. Does spark work on a Vanilla server?
  16. What if spark doesn't show any cause?

What is spark?

spark is a free performance profiler for Minecraft Java servers: it shows TPS, tick durations, CPU and memory usage, and its profiler measures which plugin, mod or part of the world takes up the most server time. You get the result as a link to a report in your browser, which you can also send to a plugin developer or whoever is helping you.

spark doesn't make anything faster by itself. Its job is to find the cause of lag, so you don't disable plugins blindly or pay for more RAM when the real problem is a farm with hundreds of cows.

The key terms:

Term Meaning Good value
TPS (ticks per second) How many times per second the server updates the world 20 – that's the maximum
MSPT (milliseconds per tick) How long one tick takes under 50 ms
Tick One simulation step: mob movement, redstone, crop growth, items in hoppers 20 per second

The server has 50 ms for each tick (1000 ms / 20). When a tick takes longer, TPS drops below 20 and players feel classic server lag: mined blocks reappear, mobs teleport, eating is delayed. Low FPS on a player's PC is a different problem, and spark won't show it.

Is spark already on my server?

On Paper and Purpur 1.21 and newer, spark is built in and works without installing anything; on Fabric, Forge and NeoForge you add it as a mod, and Vanilla can't run it.

Engine spark What to do
Paper, Purpur 1.21+ Built in Nothing – the spark command works right away
Paper, Purpur older than 1.21 Not included Upload the spark plugin to the plugins folder
Fabric, Forge, NeoForge Not included (many modpacks ship it) Install the spark mod
Vanilla Not possible Switch the engine to Paper or Fabric

Many modpacks already include spark, All the Mods 10 for example. If spark tps in the console returns a result, you don't need to install anything.

How to install spark on a Spot.gg server

On Fabric, Forge and NeoForge, install spark in one click from the "Addons" tab; on Paper and Purpur 1.21+ there's nothing to install.

  1. In your Spot.gg Minecraft server panel, open "Addons" → "Available to install".
  2. Search for spark and open it.
  3. Pick the file marked "Compatible with your server" and click "Install".
  4. When the panel shows "Restart required", click "Restart".

Other cases:

  • Paper or Purpur older than 1.21: download the Bukkit/Paper build of spark from spark.lucko.me, upload the .jar in the "Files" tab into the plugins folder and restart the server.
  • Vanilla: go to "Information" → "Modify" → "Change engine" and switch to Paper on the same Minecraft version – the world and files are kept, and spark is then built in. The differences between engines are explained in Minecraft server software.

You type all spark commands in the "Console" tab. In the panel console, leave out the slash – spark tps, not /spark tps. In game the same command takes a slash (/spark tps) and needs operator permissions.

spark tps: a quick check for lag

Type spark tps in the console to see TPS for the last 5 s, 10 s, 1, 5 and 15 minutes, along with tick durations and CPU usage. It's the first command to run whenever players complain about lag.

Example output (illustrative numbers):

TPS from last 5s, 10s, 1m, 5m, 15m:
 20.0, 20.0, 19.6, 18.2, 19.1
Tick durations (min/med/95%ile/max ms) from last 10s, 1m:
 12.1/24.5/41.0/88.3;  11.8/27.2/58.9/412.5
CPU usage from last 10s, 1m, 15m:
 35%, 41%, 38%  (system)
 30%, 36%, 33%  (process)

How to read it:

What you see What it means
20 TPS everywhere, median under 50 ms The server is fine – the lag is on the player's side (FPS, connection)
20 TPS, but 95%ile or max well over 50 ms Occasional spikes – world saves, chunk generation, explosions
TPS constantly below 20, median over 50 ms The server can't keep up – run the profiler to find out why
TPS dropped only in the last 5–15 minutes Short-lived lag – check what players were doing at that time

spark health: the server health report

spark health builds a report covering TPS, MSPT, CPU, memory, disk and garbage collection, and gives you a link to it. The older name, spark healthreport, still works the same way.

  • spark health – a link to a live report in the browser,
  • spark health show – the report printed straight to the console,
  • spark health show --memory – with extra memory details.

What to look for: if memory is constantly close to full and the garbage collector runs very often, the server is short on RAM or something is eating it (usually too much loaded world, too many mods or a plugin leaking memory) – see how to allocate more RAM to Minecraft. If memory looks fine but MSPT is high, the CPU load is the problem, and that's what the profiler is for.

How to run a spark profiler, step by step

Type spark profiler start --timeout 300 while the lag is happening, wait 5 minutes and open the link spark prints to the console.

  1. Wait until the lag shows up. The profiler records what the server is doing at that moment. A profile taken on an empty server at 4 a.m. won't show the farm that lags in the evening with 15 players online.
  2. Open "Console" and type:
    spark profiler start --timeout 300
    
    --timeout 300 stops the profiler on its own after 300 seconds. Without it, the profiler runs until you type spark profiler stop.
  3. Wait 5–10 minutes of normal play. A few seconds isn't enough for a reliable result.
  4. Copy the link https://spark.lucko.me/… that appears in the console at the end and open it in your browser.

Useful variants:

Command When to use it
spark profiler start --timeout 600 A standard 10-minute profile
spark profiler start --only-ticks-over 100 The server stutters now and then – records only ticks longer than 100 ms
spark profiler start --thread * Profiles every thread, not just the main one (e.g. a plugin working in the background)
spark profiler start --alloc You're hunting memory use – profiles allocations instead of CPU
spark profiler open Shows results without stopping the profiler
spark profiler cancel Cancels the profile without results

The report link is public to anyone who has it. Only share it with people you want to see it – like the developer of the plugin you suspect.

How to read a spark report

Select the "Server thread", keep expanding the entry with the highest percentage, and stop where a plugin or mod name or a specific task appears – mob movement or chunk generation, for example.

  1. The top of the report shows the basic stats from the profiling period (TPS, MSPT, CPU, memory and more). If TPS was 20 and MSPT low, the lag didn't happen during the profile – run it again at the right moment.
  2. Expand "Server thread" – the main thread that runs the world. Each entry shows the percentage of the thread's time it used; hover over it to see the time in milliseconds.
  3. Follow the highest percentage downwards. Entries like sleep / wait / park are time when the server had nothing to do – that's healthy, skip them.
  4. Switch to the "Sources" view. It groups time by plugin and mod, so the heaviest addon stands out immediately.
  5. "Flat View" lists the slowest methods on one level, and the "Flame Graph" shows the same thing as a chart where bar width is time.

Common results and what to do:

The report is dominated by Typical cause What to do
Entity ticking (names with Entity, mob, AI) Animal farms, hundreds of mobs, dropped items Limit farms, clear items – see reduce entity lag
Blocks with logic (BlockEntity, hopper) Hoppers, furnaces, item sorters, machines from mods Shorter hopper chains, turn off unused machines
Chunk loading and generation (Chunk, worldgen) Players exploring new land, elytra flights Pre-generate the world and set a world border
One plugin or mod in "Sources" A heavy or broken addon Update it, change its settings, or remove it and measure again
Redstone Big redstone clocks and contraptions Switch them off when not in use
A bit of everything, no clear leader Simulation distance too high for the player count Lower simulation-distance

After each change, take a new profile under similar conditions and compare. More ways to fight lag are in how to fix Minecraft server lag.

What happened to Timings in Paper?

The Timings report (/timings) no longer works on current Paper versions – it's been off by default since 1.21 and can't be turned on at all since 1.21.3; the built-in spark replaced it. Paper hadn't maintained Timings for years and officially recommends spark for profiling.

Paper version Timings Use instead
1.21.3 and newer (including 26.x) Doesn't work spark profiler (built in)
1.21–1.21.2 Off by default spark profiler (built in)
Older than 1.21 Works, but outdated The spark plugin in plugins

If an old guide or someone on a forum asks for a "timings report", send a spark profile link instead – it holds more information and is easier to read.

Common spark problems

Problem Cause Fix
"Do not use a forward slash / at the beginning of the command" in the console The command starts with a slash Type spark tps without / in the panel console
"Unknown or incomplete command" spark isn't installed, or it's a Vanilla server Install spark from "Addons" or switch the engine to Paper
"You do not have permission" in game Not an operator, or missing the spark permission Use the console, or grant the permission with e.g. LuckPerms
The report shows nothing unusual The profile ran while there was no lag Start it while the server is lagging
The server stops on a very long tick The watchdog shut down a frozen server Check the log and max-tick-time, then profile before the next freeze
The server won't start after installing the mod The mod file doesn't match the server version Install the file marked "Compatible with your server"; the "Detected errors" window shows the problem from the log

FAQ

How do I check my Minecraft server's TPS?

Type spark tps in the server console (in game: /spark tps). 20 means full speed. On Paper 1.21+ it works out of the box; on Fabric, Forge and NeoForge you need the spark mod.

Does spark slow down the server?

Barely. The profiler takes a sample every few milliseconds and doesn't change how the game runs, so it's safe to use while people are playing.

Where do I find the spark profiler results?

After spark profiler stop, or once the --timeout runs out, spark prints a link to the report on spark.lucko.me in the console. Open it in your browser.

Does Paper still have /timings?

Not in current versions. Timings has been off since Paper 1.21 and stopped working entirely in 1.21.3. Use the built-in spark profiler instead.

Does spark work on a Vanilla server?

No, Vanilla can't load plugins or mods. On Spot.gg Minecraft hosting you can switch to Paper with "Modify" → "Change engine" without losing your world, and spark is built into Paper.

What if spark doesn't show any cause?

Check that the profile ran during the lag and that TPS in the report actually dropped. If it stayed at 20, the problem is on the player's side: low FPS or the connection. A lower in-game render distance or client-side performance mods help there.

Other guides

How to Fix Minecraft Server Lag: TPS, Ping, FPS and What Actually Helps How to find and fix Minecraft server lag: TPS vs ping vs FPS, spark, view and simulation distance, pre-generation, Paper and Purpur, performance mods and why more RAM rarely helps. 12 min read How to Pregenerate a Minecraft World: Chunky and Lag-Free Chunk Generation How to pregenerate a Minecraft server world: the built-in pregeneration switch, Chunky commands (/chunky radius, start, pause), the world border, generation time and disk space. 10 min read How to Reduce Entity Lag on a Minecraft Server (Paper and Purpur) Find and fix lag caused by mobs, animals and dropped items on a Minecraft Paper or Purpur server: spark, paper entity list, entity-activation-range, merge-radius, farm limits, /kill with selectors and ClearLag. 11 min read How to Install EssentialsX: Setup, Commands and Permissions Install EssentialsX on a Paper server, add Chat and Spawn, use /sethome, /home, /tpa, /warp, /kit and /msg, and give players permissions with LuckPerms. 10 min read Linggango Modpack Guide: Classes, Keepers, Hardmode and Server Setup Linggango is a hardcore Forge 1.20.1 adventure modpack with classes, Keeper bosses, reforging, rings and a Hardmode after the Ender Dragon. How it plays, how much RAM it needs and how to host a server for friends. 7 min read Minecraft Server Icon and MOTD: How to Set Them How to add a Minecraft server icon (server-icon.png, 64x64) and a colored MOTD: file requirements, § color codes, two lines and fixes when the icon doesn't show. 5 min read