Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does OpenJDK 1.8 support JFR?

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

like image 340
OverLord Avatar asked Mar 16 '17 22:03

OverLord


People also ask

Is Jfr available for OpenJDK?

OpenJDK contains a simple tool called jfr that allows you to read JFR recordings and get useful metrics from them.

Does OpenJDK have flight recorder?

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

What is Jfr Oracle?

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.


1 Answers

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

like image 141
Dalibor Topic Avatar answered Nov 17 '22 00:11

Dalibor Topic