Course
Performance Profiling & Debugging
Find the real bottleneck instead of guessing: perf, flame graphs, eBPF, strace, core dumps, and lock contention decompose where the time actually goes.
Keep reading
Related articles from the SudoSecurity blog.
Your Minecraft Server Isn't Slow, It's Misconfigured
Can't keep up! is not a hardware message. It's the server telling you a tick took longer than 50ms, and almost every cause is a default nobody changed. Here's what actually moves MSPT, with the flags that are now wrong and the setting that isn't where every guide says it is.
Your Minecraft Server Wants Java 25, Not Java 26
Every six months the same thread appears and nobody maps the JVM engineering onto what a Minecraft server actually does. This does — version by version, with the flag most guides still tell you to set that will eventually stop your server from booting.
Your Container Is Running SerialGC and Nobody Told You
You tuned G1 flags for a week. Your pod has one CPU, which means the JVM quietly picked a single-threaded collector at startup and ignored every flag you set. Here is the OpenJDK source that made that decision.
How to Debug Minecraft Server Lag with Spark Profiler (2026 Guide)
Your server dropped to 12 TPS. You copied Aikar's flags. You upgraded Java. Nothing changed. That's because JVM flags don't fix plugin bugs. Here's how to find what's actually killing your tick budget.
Reviews
Enrolled members can rate this course.
No reviews yet.
Finding the Real Bottleneck
Decompose wall time into on-CPU and off-CPU, then measure the resource that is actually saturated instead of optimizing the code you already suspect.
- 01The Bottleneck Isn't Where You ThinkWall time splits into on-CPU and off-CPU, and USE/RED find which resource owns the missing milliseconds before you touch code.16mOpen
- 02Benchmarks That Don't LieWarmup, repetition, and `perf stat` counters turn a `time` run into a number worth acting on.13mOpen
- 03Load Average Is Not CPULinux load counts runnable and uninterruptible tasks, so load 40 with idle CPUs means storage, not cores.13mOpen
CPU Profiling
Sampling profiles, call-graph tradeoffs, flame graphs, and the CPU time that throttling and steal take before your code ever runs.
- 01perf record and Call Graphs`perf record -F 99` samples stacks, but only a deliberate `--call-graph fp|dwarf|lbr` choice gets you the callers.18mOpen
- 02Reading Flame GraphsWidth is samples, the x-axis is alphabetical, and on-CPU plus off-CPU graphs together answer where the time went.15mOpen
- 03Stolen CPUs and Throttled Containers`nr_throttled` in cpu.stat and `%st` steal time are CPU you're paying for and not getting.14mOpen
Syscalls, Memory, I/O, and Locks
strace without the overhead lie, honest memory accounting, disk latency distributions, and the serialization that parallelism cannot escape.
- 01strace Is a Scalpel, Not a Profiler`strace -c` exposes the syscall truth — stat storms, tiny writes, fsync-per-record — at a price that demands short windows.14mOpen
- 02What Memory Is Actually Used`available` beats `free`, `PSS` beats `RSS`, and a leak is growth that never plateaus.14mOpen
- 03I/O Latency and the fsync TaxBuffered writes lie, `fsync` is the real cost, and `iostat` await plus `biolatency` histograms show what averages hide.15mOpen
- 04Lock Contention Eats ParallelismContended locks serialize work — measure wait and hold time, then shrink the critical section instead of adding threads.15mOpen
Production Debugging
eBPF counters, core dumps, and always-on profiling: the toolkit that makes a live incident answer questions instead of ending them.
- 01eBPF for Production Questionsbcc tools and bpftrace one-liners answer syscall, block-I/O, and scheduling questions with in-kernel aggregation prod can afford.17mOpen
- 02Core Dumps and Post-Mortemsulimit, core_pattern, and coredumpctl turn a one-time segfault into a replayable debugging session — if you collected it first.15mOpen
- 03Profiling in Production Without Breaking ItSampling at 99 Hz and continuous profilers cost single-digit percent; tracing costs per event — pick the mechanism, not the fear.15mOpen