Linux container performance tools for JVM applications
summary
Shows exactly how to make real profilers work with containerized JVMs: demos using perf (needs kernel ≥4.13 and perf map agent to resolve JIT symbols and shared /tmp), using async-profiler (injected library + perf, runs inside the container, fewer JDK limits), and BPF/BCC tools like runqlat and cpudist to prove and quantify CPU throttling from cgroup cpu.stat. Covers Jattach, sidecar diagnostics, required privileges and namespace gotchas, and how to produce flame graphs and histograms that actually reflect container behavior.
AI-written summary · about
chapters (17)
- 0:00Introduction to talk
- 1:51Containers vs JVM profilers
- 4:21What are Linux containers
- 6:35Host vs container tools
- 10:08JVM tool isolation issues
- 12:36Demo JPS in container
- 15:53Sidecar diagnostic pattern
- 17:17Measuring container resources
- 23:36Profiling theory overview
- 24:40Using perf for profiling
- 32:50Async profiler approach
- 37:45Profiling challenges summary
- 38:06BPF tools for containers
- 43:05Diagnosing CPU throttling
- 51:25Tracking blocked time
- 53:34Higher-level monitoring
- 54:37Q&A session
