Production profiling with JDK Flight Recorder & JDK Mission Control
summary
JDK Flight Recorder records production JVM activity with low overhead (default <1%) and compact files — roughly 2 MB/min, ~100000 events/min — using per-thread buffers copied into a global ring and on-disk chunks; stack traces arrive via stack traces via async sampling (not safepoints) and allocation sampling targets TLAB boundaries. Events include CPU, GC phases, IO, lock contention (recorded only above monitor threshold 20 ms) and custom Java events via the JFR API or an instrumenting agent; jcmd, jfr, and JDK Mission Control parse, visualize and export flame graphs and automated reports, and Datadog demonstrates one-minute uploads working in production.
AI-written summary · about
chapters (15)
- 0:00Start
- 7:26Jdk Flat Recorder
- 9:27How Flight Recorder Can Help You
- 14:43Cpu Profiling
- 14:55Thread Latency
- 23:08Command Line Flags
- 31:10Allocation Profiling
- 32:55Demo
- 36:48Summary of a Recording
- 38:56Jdk Mission Control
- 53:19Generating a Flame Graph
- 56:19Gmc Agent
- 57:28Summary
- 58:36Custom Events
- 1:01:45Enable J4 Recording on a Live Application under Load Is It Safe
