I've generated a .jfr file with
mvn test -Dtest=DataRunnerIT -DargLine="XX:StartFlightRecording,filename=flight.jfr"
I can confirm that the .jfr file is ok because I've opened it with the Profiler of IntelliJ IDEA Ultimate and the graph is properly rendered.
Now I would like to see this flame graph with a free tool but I can't have it rendered, see below. What am I doing wrong ?
JMC
I've installed JDK 17 Amazon Corretto (on Ubunutu 22.04) and there is no jmc
in /bin, which is apparently normal.
I've downloaded JMC from jdk.java.net/jmc/8/ and added these lines to the native jmc.ini
, as mentioned in the doc:
-vm
/usr/lib/jvm/java-17-amazon-corretto/bin
I can start JMC and open my .jfr file. Some graphs are displayed but the flame graph at the bottom remains blank:
FlameViewer
Using the FlameViewer IntelliJ plugin when I upload my .jfr file I get File was not sent, tested with Firefox and Chromium:
EDIT: I've just discovered these logs related to FlameViewer:
java.lang.NullPointerException: Cannot invoke "java.util.Map.entrySet()" because "stacks" is null
at com.github.kornilova203.flameviewer.converters.cflamegraph.JfrToStacksConverter.removePackageInParameters(JfrToStacksConverter.java:34)