Does OpenJDK 1.8 support JFR?

≡放荡痞女 提交于 2020-05-15 01:14:02

问题


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


回答1:


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




回答2:


Java Flight Recorder is a commercial product included in Java SE Advanced that is only included in the Oracle JDK and not in OpenJDK.




回答3:


Java flight recorder is not a part of 8th version but has to be open-sourced and included in 11th release according to
http://openjdk.java.net/jeps/328
https://bugs.openjdk.java.net/browse/JDK-8193393

Update(it's there): https://mail.openjdk.java.net/pipermail/announce/2018-September/000257.html




回答4:


Per http://hirt.se/blog/?p=1161 the JFR Backport to OpenJDK 8 is officially planned and already available to try in some builds: https://www.infoq.com/news/2020/02/jfr-coming-to-openjdk-8/



来源:https://stackoverflow.com/questions/42845964/does-openjdk-1-8-support-jfr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!