Use /spark tickmonitor to Detect Lag Spikes
What Does /spark tickmonitor Do?
This command tracks tick execution time and highlights spikes by comparing individual ticks against the server’s average tick duration.
How to Use It
-
Enable Monitoring
Run:/spark tickmonitorBy default, Spark will report ticks that take 100% longer than the average.
-
Set a Custom Threshold
You can use an absolute tick duration threshold. For example:/spark tickmonitor --threshold-tick 50This will report any tick exceeding 50 milliseconds.
-
Observe Gameplay
- Wait for a lag spike to occur.
- Note the in-game effects during the spike and correlate them with the monitoring output in chat.
-
Adjust Sensitivity if Needed
If no spikes are detected, lower the threshold:/spark tickmonitor --threshold-tick 70
Example
If a WorldEdit action creates a spike, you might see ticks reported with over 1000% increases in duration.