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

JFR start failure after AppCDS archive created with JFR StartFlightRecording

XMLWordPrintable

    • b20

        This happened in 11-b14.

        1. I created the AppCDS archive with -XX:StartFlightRecording=dumponexit=true

        2. Archive created successfully AFAICT

        3. Went to run my app with
        -XX:+UnlockCommercialFeatures -XX:StartFlightRecording=dumponexit=true -Xshare:on -XX:+UnlockCommercialFeatures -XX:SharedArchiveFile=App.jsa -XX:+UseAppCDS

        And this happened:

        Error occurred during initialization of VM
        Failure when starting JFR on_vm_start

        - The app would start ok with -XX:+UnlockCommercialFeatures -XX:StartFlightRecording=dumponexit=true -Xshare:off -XX:+UnlockCommercialFeatures -XX:SharedArchiveFile=App.jsa -XX:+UseAppCDS

        - We re-created the archive without -XX:StartFlightRecording=dumponexit=true and then the app booted correctly with all of it: -XX:+UnlockCommercialFeatures -XX:StartFlightRecording=dumponexit=true -Xshare:on -XX:+UnlockCommercialFeatures -XX:SharedArchiveFile=App.jsa -XX:+UseAppCDS

              ccheung Calvin Cheung
              ecaspole Eric Caspole
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: