I'm not sure if OpenJDK
1.8 supports JFR
(java flight recorder). I know it was requested on the OpenJDK
bugs forum.
Using OpenJDK
on Linux
and executing the following from a terminal:
jcmd `<pid>` JFR.start
returns
java.lang.IllegalArgumentException: Unknown diagnostic command
OpenJDK contains a simple tool called jfr that allows you to read JFR recordings and get useful metrics from them.
JDK Flight Recorder (JFR) Streaming. You can use the JFR Streaming API in OpenJDK 17 to continuously monitor your JDK Flight Recorder (JFR) data from a running Java Virtual Machine (JVM).
Java Flight Recorder (JFR) is a tool for collecting diagnostic and profiling data about a running Java application. It is integrated into the Java Virtual Machine (JVM) and causes almost no performance overhead, so it can be used even in heavily loaded production environments.
The OpenJDK 8 source code does not include the Java Flight Recorder implementation. That feature has been targeted to become part of OpenJDK source code with JDK 11, per http://openjdk.java.net/projects/jdk/11/ .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With