Using FlameGraphs To Illuminate The JVM
summary
FlameGraphs combined with Linux perf and perf-map-agent plus -XX:+PreserveFramePointer produce a single-profile view that shows JVM, native and kernel hotspots; setup is low overhead (typically 0–3%) and exposes things invisible to jstack/honest‑profiler and JMC. Examples: 17% arraycopy hidden and ~25% total cost from inlining/itable/vtable stubs, plus ~40% of CPU attributed to GC in one benchmark. Limitations: interpreter blobs, broken stacks and stack‑depth caps still occur.
AI-written summary · about
chapters (25)
- 0:00Introduction
- 1:30The root of all evil
- 3:36What do we do
- 5:39Everybody knows about Java
- 6:02Brendan Greg
- 7:16FlameGraphs
- 10:22Flat View
- 11:14Perl
- 13:00FlameGraph
- 14:25Presentation Tools
- 14:36Collapsed Stax Format
- 15:04One Sample
- 15:55Stacks
- 16:14SelfTime
- 18:13Profilers
- 19:07Safe Points
- 21:36Java Profile
- 22:53Java Profilers
- 23:19Application Scope
- 27:38Requirements
- 28:05Results
- 28:31What we lose
- 29:51The fun begins
- 35:00Array Copies
- 50:08Suggestions
