spark profiler start --timeout 600 in the console while the lag happens. After 10 minutes you get a link to a report showing where the server spends its time. On Fabric, Forge or NeoForge, install spark from Mods first.
Before you start
- Paper 1.21 or newer: spark is already there. Don’t install it again.
- Other server types: install spark from Plugins or Mods and restart. See install mods.
- Profile while the lag happens, ideally with players online.
spark commands
Type these in the Console without/ (in game, add / and you need permission).
How to profile lag with spark
1
Check TPS
Run
spark tps. If TPS is 20 and tick times are low, the server isn’t lagging: the problem is the player’s connection or PC.2
Start the profiler
3
Open the report
When it stops, the console shows a link. Open it in your browser.
4
Find the slow part
Expand the tree from the top. Follow the branches with the highest percentage. Plugin and mod names show where their code runs, for example a plugin’s name next to a task, or
entityTick for entities.5
Act on it
Update, configure or remove the plugin or mod that uses the most time. For entities, cut down farms and mob counts. See the lag checklist.
How to check memory with spark
If memory sits at your plan’s limit, run:What do common spark results mean?
What do TPS and MSPT mean?
Minecraft runs 20 ticks per second, so each tick has 50 ms. When ticks take longer than 50 ms on average, TPS drops below 20 and players notice lag.
spark tps shows both values. MSPT tells you how close you are to the limit even while TPS is still 20.
Frequently asked questions
Is spark built into Paper?
Yes. PaperMC bundles spark from Minecraft 1.21, and it is their preferred way to profile. You don’t need to install it on Paper.How long should I run the profiler?
10–15 minutes during normal play gives a clear picture. Short profiles can miss lag that comes and goes.Does spark cause lag itself?
spark is made to run on a live server, so you can profile while players are online. Stop it when you’re done.What TPS is good?
20 TPS is perfect. Players start to notice below about 18.Related guides
Minecraft server guide
Every Minecraft guide in one place.
Fix server lag
The full lag checklist.
Pre-generate with Chunky
Stop exploration lag.
Server console
Run commands from the panel.
Checked against the official spark documentation and PaperMC documentation on 29 October 2026, and tested on our Game Panel (Minecraft 26.1, Paper and Fabric). Steps may differ slightly if spark changes.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: October 2026