Search code examples
tracejmcjfr

JFR.dump fails. "No data in specified interval"


I get the following error message when executing jcmd 115 JFR.dump name=continuous_recording:

115:
Dump failed. No data found in the specified interval.

I started the recording with the following configuration:

XX:StartFlightRecording=disk=true,dumponexit=true,
filename=/home/site/diagnostics/recording.jfr,
maxsize=1024m,maxage=1d,name=continuous_recording

It could be that the buffer has not yet filled the minimum chunk size. But the JFR.check command does not provide that information.

Update:

I can get a dump from the Java app if I run JFR.dump without specifying the name of the recording. I tried encapsulating the recording name with quotes (escaped and un-escaped) and got the same error as before.

005c736ce3ee:/home# jcmd 115 JFR.dump filename="home/6_10_dump1.jfr"
Picked up JAVA_TOOL_OPTIONS:  -Djava.net.preferIPv4Stack=true
115:
Dumped recording, 155.8 MB written to: /home/6_10_dump1.jfr

Solution

  • Azul support helped figure this out. If you don't specify the filename when starting the VM, then the following works:

    XX:StartFlightRecording=disk=true,name=continuous_recording,dumponexit=true,maxsize=1024m,maxage=1d
    

    This bug was filed and fixed as JDK-8220657. Azul said they will backport this to Zulu 8 and 11 in the future.