~/talk

Programmer's Guide to JDK Flight Recorder

Talkat Øredev 2023 · 2023-11-08..11-10· [devops-and-delivery, observability]
slides:none on file

Walks through exact APIs and commands that start stop dump and stream recordings, shows jcmd and JFR tool usage, and demos programmatic hooks like RecordingStream and RemoteRecordingStream that trigger dumps when CPU > 0.8. Claims default configuration costs <1% overhead and profiling <2%, default max file 250MB, JDK 21 adds 70 predefined views, JFR ships ~160 builtin events, JFR is available in OpenJDK and has support for virtual threads, and unit tests use RecordingStream stop (new in JDK 20).

AI-written summary · about

  1. 0:00Start
  2. 35:05Question 1."Is the JDK Flight Recorder available for free in all OpenJDK versions?"
  3. 35:42Question 2."In order to make use of JFR, are there any default events included, or do you have to program your own custom events?"
  4. 36:44Question 3."Does JFR have support for virtual threads?"
~/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.