Flight Recorder

It's an event-based data collector that records the execution of Java programs and JVMs.

JVM flags

  • -XX:FlightRecorderOptions is a comma-delimited list of properties in $key=$value form:
    • name sets the recording name.
    • defaultrecording (boolean; true or false) toggles starting the recording at JVM startup.
    • settings specifies the path to a JFR configuration file.
    • delay sets the time delay for recording starting.
    • duration specifies the length of time the recording should run for.
    • filename sets the destination filename.
    • compress (boolean) toggles gzip.
    • maxsize controls the size of the ring buffer into which events are recorded.
    • maxage controls the maximum age of events within the ring buffer.