Get YouTube subscribers that watch and like your videos
Get Free YouTube Subscribers, Views and Likes

Programmer's Guide to JDK Flight Recorder

Follow
Java

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 you 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.

Presented by Joakim Nordström (Oracle) at ØREDEV → https://oredev.org

Questions from the Audience
35:12 "Is the JDK Flight Recorder available for free in all OpenJDK versions?"
35:46 "In order to make use of JFR, are there any default events included, or do you have to program your own custom events?"
36:16 "Does JFR have support for virtual threads?"

Resources
Flight Recorder API Programmer’s Guide → https://docs.oracle.com/en/java/javas...
More details on JFR → https://inside.java/tag/jfr

posted by Brunton6x