Add support for launching multiple startup recordings

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: 11
    • Component/s: hotspot
    • None
    • jfr
    • b19

        This is important if you want to record data far back in time, which can be GBs of data, but not dump all that data every time the JVM exists.

        With two recordings you can do:

        $java -XX:StartFlightRecording:maxage=2d,maxsize=5GB - XX:StartFlightRecording:maxage=10m,dumponexit=true -jar MyApp.jar

        This use case was supported in Oracle JDK 8, by using -XX:StartFlightRecording in combination with- XX:FlightRecorderOptions=defaultrecording=true. JDK 9 removed defaultrecording to simplify configuration

              Assignee:
              Markus Grönlund
              Reporter:
              Markus Grönlund
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: