Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204571

Add support for launching multiple startup recordings

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • 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

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

                Created:
                Updated:
                Resolved: