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

JFR start failure after AppCDS archive created with JFR StartFlightRecording

    Details

    • Subcomponent:
    • Resolved In Build:
      b20

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ccheung Calvin Cheung
                  Reporter:
                  ecaspole Eric Caspole
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: