ATM10 Fixes // ChunkGC Bench
Spark Profiler MSPT Audit: Pinpointing Sub-20 TPS Culprits
Stop guessing which mod caused a TPS drop—run a 60-second Spark tick filter to capture the exact Java method and chunk coordinates burning CPU time.
Measured ATM10 JVM & Spark Profile
ATM10 includes Spark natively. Filtering exclusively for ticks over 50 ms (--only-ticks-over 50) removes idle ticks from the flamegraph so even intermittent lag spikes stand out immediately.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| Ideal Baseline MSPT | 18 - 32 ms | Zero perceptible lag at 20.0 TPS |
| Action Threshold | > 45 ms sustained | Run /spark profiler before Watchdog triggers |
| Healthy GC Overhead | < 3% of CPU time | Verified via /spark gc |
Step-by-Step Triage & Config Remediation
- Check instant TPS & health: Run /spark tps and /spark health --memory to compare 5s/1m/15m MSPT and heap occupancy.
- Record slow-tick flamegraph: Run /spark profiler start --only-ticks-over 50 --timeout 60 during active player lag.
- Trace coordinates & mod ID: Open the generated flamegraph, inspect tickBlockEntities, and remove or throttle the offending loop.
/spark tps /spark gc /spark health --memory /spark profiler start --only-ticks-over 50 --timeout 60
Diagnostic FAQ
Does running Spark itself cause lag?
Spark sampling adds <1% overhead during a 60-second window and turns off automatically when --timeout expires.
What if Spark shows high time inside native/sleep or GC?
High GC time points to heap sizing/G1GC issues, while unexpected stalls inside normal vanilla ticking often reflect noisy-neighbor CPU steal on shared hosts.