Programmer's Guide to JDK Flight Recorder


JDK Flight Recorder (JFR) is a low overhead profiling and troubleshooting framework built into the Java Virtual Machine. It comes with a powerful programming API that allows you to create application specific events. The API can also be used as a datasource for your own infrastructure for example when building dashboards and triggers. This talk will deep dive into the API and look at events, settings, content types, and other metadata.

This video will:

  • Show how to start and stop recordings, read recording files, and consume events continuously.
  • Demonstrate the FlightRecorderMXBean and how it can be used to control and transfer recording data over JMX.
  • Provide practical tips and guidelines to help you craft your own events.
  • Recorded at Jfokus 2023