Programmer's Guide to JDK Flight Recorder
summary
JDK Flight Recorder ships inside the JVM and records JVM, JDK and application events with low overhead (<1%); default continuous recordings keep roughly the last 15 minutes / ≈250 MB, while the profile XML gives more stack traces. Control and extract data with jcmd jfr.start / jfr.dump or the FlightRecorderMXBean over JMX; analyze with JMC or the jfr CLI. Create custom events by extending jdk.jfr.Event and annotating fields, consume via RecordingStream/RemoteRecordingStream (can dump files remotely), and use streams in unit tests; RecordingStream.stop appears in JDK 20.
AI-written summary · about
chapters (7)
- 0:00JDK Flight Recorder intro
- 1:35Start/stop JFR recordings
- 7:17Analyze with JMC & CLI
- 9:47Custom JFR events in code
- 19:09Consume JFR events
- 27:42JFR in unit tests
- 32:05Summary & JFR resources
related talks
42mContinuous Monitoring with JDK Flight Recorder
46mContinuous Monitoring with JDK Flight Recorder
56mTaking Off With #JDK #FlightRecorder
37mProgrammer's Guide to JDK Flight Recorder
45mAnalyzing Safe Flights, and Firey Wrecks with JDK Flight Recorder
51mThe Power of JDK Flight Recorder: Efficient Profiling and Troubleshooting for Java Applications
01h 09mContinuous Monitoring With JDK Flight Recorder (JFR)
42mProfiling and monitoring with the JDK
