Question How to get a rolling recording into disk, with a maximum age? Context When something goes bad in my server, I want to be able to dump the profiling information of the hours prior and analyse it, to know what went wrong. As I don’t know when things will go bad, the JDK should be continuously sav…
Tag: jfr
JFR: OutOfMemoryError while reading .jfr file
I’m trying to analyze a large Flight Recorder file (1.5 GB) that I created previously. When executing the jfr print command, the tool runs into an OutOfMemoryError: Is there a way to increase the heap size (-Xmx) for the jfr tool itself? I haven’t found a corresponding option in the documentation.…
Java Flight Recorder – find file descriptor leak
M Java application probably has a file descriptor leak, since I’m getting a Too many open files exception. I’m running my application with JFR, and when I inspect File I/O I barely see any I/O count. Is it possible to use JFR for finding code which open files but not closes them? Answer No, JFR ca…
Java Flight Recorder comprehensive list of VM options for OpenJDK 8 & OpenJDK 11
Is there a way to get a comprehensive list of VM options for Java Flight Recorder (JFR). I am particularly interested in OpenJdk 8 & OpenJdk 11 so far I find this list quite usefull https://chriswhocodes.com/hotspot_options_jdk8.html also java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version I…