About spark
spark is a diagnostic performance profiler designed for Minecraft clients, dedicated servers, and network proxies. Created by lucko, the mod operates as a background sampling tool that observes how your game uses system resources. Instead of making guesses about why a world feels sluggish or why tick rates dip, you can run a quick capture to see exactly where CPU cycles and memory are being spent across active threads.
Adding spark does not change any visual elements, blocks, or gameplay mechanics in your world. The mod stays completely dormant until you invoke its sampling actions, keeping performance impact negligible during regular play. Once initiated, spark gathers statistical data about running tasks and generates an organized call graph. You can inspect this graph through an external web viewer that maps out method calls and deobfuscates code names for clear reading.
This tool suits server administrators managing multiplayer communities as well as solo players testing heavy custom setups. If you notice stuttering during exploration, sudden tick pauses, or rising memory usage, spark gives you the data needed to track down the root cause. It is equally valuable for developers and modpack creators who want to pinpoint which specific background operations or entities are bogging down their game.
In a modpack environment, spark acts as a zero-dependency diagnostic utility that you can drop in or remove whenever testing requires it. Because both client-side and server-side installations are entirely optional, you do not need to force every connecting player to install it. Keeping spark in your private testing build helps you catch lag spikes, evaluate garbage collection patterns, and verify stability before sharing your pack.
Features
- Samples CPU activity across active threads to pinpoint causes of low tick rates and game lag.
- Generates readable call graphs viewable in an online viewer with deobfuscation mapping support.
- Provides dual profiling engines using Java ThreadMXBean or Linux x86_64 async-profiler.
- Captures heap summaries and outputs compressed HPROF memory dumps for external analysis.
- Monitors garbage collection frequency and duration to help identify server hang events.
- Tracks real-time system metrics including tick durations, CPU load, memory, and disk space.
- Reports individual tick durations whenever processing time exceeds a specified lag threshold.
Tips
- Run a short 30-second CPU profiling capture during typical activity to gather sufficient data without generating massive reports.
- Configure spark to record only laggy periods when chasing down intermittent lag spikes rather than constant slowdowns.
- Use GC monitoring to check pause durations and memory recovery before adjusting Java memory flags.
- Export a full compressed heap dump if you need to inspect class instance counts in external diagnostic tools.
How to install
- Install Fabric / Forge / NeoForge / Quilt for your Minecraft version (use the official installer).
- Download the file that matches your Minecraft version and Fabric / Forge / NeoForge / Quilt.
- Open the .minecraft folder and put the file into the "mods" folder (create it if missing).
- Launch Minecraft with the Fabric / Forge / NeoForge / Quilt profile.
FAQ
Which mod loaders and Minecraft versions work with spark?
spark supports Fabric, Forge, NeoForge, and Quilt across 34 game releases from 1.16.5 up to 26.3, including 26.2, 26.1.2, 26.1.1, 26.1, and 1.21.11.
Does spark need to be installed on both the client and the server?
No, spark is optional on both sides. You can run it strictly on a dedicated server to track host performance, or use it solely on your client to troubleshoot singleplayer issues.
Do I need any library mods or extra dependencies to run spark?
spark requires no extra dependencies or library mods. You only need to place the downloaded jar file directly into your mods directory.
