Is it possible to export JFR recording in html report format ? scenario - I have to start jfr recording on the JVM for the duration of my performance testing. Once the testing is finished, I want to publish the JFR recording in HTML format.
Asked
Active
Viewed 1,348 times
1
-
See this question for info on how to parse the recordings yourself: http://stackoverflow.com/questions/37272867/java-flight-recorder-programatically-parsing. It is also possible to create a huge XML-file from a jfr recording (see http://isuru-perera.blogspot.co.uk/2015/05/flame-graphs-with-java-flight-recordings.html), depending on which info you want, it might be possible to create an XSLT transform, but I'm guessing it will be tricky. – Klara Jan 19 '17 at 08:32
1 Answers
1
In the next version, JMC 6.0, the result of the automated analysis of the recording can be exported as HTML from within the UI. You will also be able to run the rules from the command line, and plug in your own analysis code (unsupported though). Building your own report generator will also be quite easy.

Hirt
- 1,664
- 10
- 12
-
-
-
Hello Marcus, any chance to provide the syntax to generate the JFR report on JMC8? On JMC6 it was: java com.oracle.jmc.flightrecorder.rules.report.JfrRulesReport thefile.jfr -format html -min ok But those classes aren't included in JMC8, I tried: java -cp
org.openjdk.jmc.flightrecorder.rules.report.html.JfrHtmlRulesReport – Mario.Cadiz Aug 30 '21 at 16:29[ ] as posted at https://github.com/openjdk/jmc but I got a 16K HTML no matter the size of the JFR file, I can not see the result from a browser, just getting: Show OK Results Any idea? -
Hi Mario! You have two alternatives. Either org.openjdk.jmc.flightrecorder.rules.report.html.JfrHtmlRulesReport or org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport. You can experiment with them using https://github.com/thegreystone/jmc-jshell. – Hirt Sep 09 '21 at 12:53
-
Hey Marcus, that jmc-shell is pretty cool and easier to operate, but I couldn't find any option to send the report to a file. Does that option exist? Any idea how to reach that? I appreciate your help. – Mario.Cadiz Dec 24 '21 at 20:02
-
Adding org.openjdk.jmc.flightrecorder.rules.jdk_8.1.0.qualifier.jar to the classpath made the trick. Thank you Marcus!! – Mario.Cadiz Feb 15 '22 at 17:51