Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft

Spark Plugin FAQ

10 questions players actually ask, answered.

How do I start profiling my server?
Run `/spark profiler start` to begin a profiling session, then let it run while you reproduce the lag you're experiencing. When you're done, use `/spark profiler stop` to end the session and get a shareable report link.
What's the difference between CPU profiling and memory profiling?
CPU profiling identifies which tasks and plugins are consuming processing power and causing tick lag, while memory profiling shows how much RAM different classes are using and helps detect memory leaks. Use CPU profiling to find lag sources and memory profiling when your server is running out of RAM.
How do I check my server's TPS right now?
Run `/spark tps` to instantly see your current ticks-per-second and CPU usage percentage. This gives you a quick snapshot without needing to start a full profiling session.
What does a heap dump do and when should I use it?
A heap dump captures a complete snapshot of everything stored in your server's memory at that moment, letting you analyze which objects are taking up space. Use this when you suspect a memory leak or need deep investigation into what's consuming RAM.
Can I share my performance report with someone else?
Yes—when you stop a profiler session, Spark generates a link to an interactive web-based report that you can share with developers, support teams, or collaborators without needing to send files.
Why is my server lagging even though TPS looks normal?
High TPS doesn't always mean smooth gameplay; use `/spark profiler start` to identify CPU-heavy tasks, or check `/spark healthreport` to see if memory, disk space, or garbage collection is the real bottleneck.
How do I track tick spikes and lag stutters?
Run `/spark tickmonitoring` to watch for anomalies and sudden spikes in tick duration, which helps you pinpoint exactly when and why your server stutters.
What should I do if a profiling session takes too long?
Profiling adds a small overhead to your server, so keep sessions short—usually 30 seconds to a few minutes is enough to capture the lag you're investigating. Stop the profiler with `/spark profiler stop` if the server feels sluggish during profiling.
Can Spark tell me which plugin is causing lag?
Yes—the CPU profiler's call graph shows which plugins and tasks are consuming the most processing time, making it easy to identify the culprit and decide whether to optimize, update, or remove it.
Does Spark work on single-player worlds or only servers?
Spark is primarily designed for server environments and works best with Bukkit-based servers; single-player profiling support depends on your specific Minecraft setup and mod loader.