Suppose I have configured a continuous flight record for my JVM using the following flags
java
-XX:StartFlightRecording=disk=false,dumponexit=true
-XX:FlightRecorderOptions=memorysize=200m
-jar
....
As far as I understand, this configuration stores up to 200mb in memory of hotspot events, discarding the oldest when the limit is reached.
To dump the record I'm using JFR.dump
command via jcmd
. There's also an alternative way to extract the recording via mission control, but due to a bug in it, I had no success extracting a record that was running outside mission control's JVM. Surprisingly, MBean server management works fine.
Regardless, I saw that it is possible to specify interval range to dump from a continuous recording via "Dump" functionality via mission control, for example from 2021-01-01 13:00:00 to 2021-01-01 14:00:00. Assume current time is 2021-01-02 17:00:00. How do I specify same interval via JFR.dump
? Looking at JFR.dump reference, there aren't any flags to do that. So how does mission control do it?
Note: I'm using JMC 8 and Oracle JDK 11 0 10u8.