~/talk

Programmer's Guide to JDK Flight Recorder

Talkat Jfokus 2023 · 2023-02-06..02-08· [java, observability]
slides:none on file

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

  1. 0:00JDK Flight Recorder intro
  2. 1:35Start/stop JFR recordings
  3. 7:17Analyze with JMC & CLI
  4. 9:47Custom JFR events in code
  5. 19:09Consume JFR events
  6. 27:42JFR in unit tests
  7. 32:05Summary & JFR resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.