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

VM crashes if both -XX:+RecordDynamicDumpInfo and -XX:SharedArchiveFile options are specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 17
    • hotspot
    • b20

      JDK-8259070 adds a functionality to jcmd for dumping CDS archive on a running java process.

      To reproduce the issue:
      1. Start a java app.
      2. While the app is still running, use jcmd to create a dynamic CDS archive:
          e.g. jcmd <pid> VM.cmd dynamic_dump
      3. Run the app again with the dynamic CDS archive and the -XX:+RecordDynamicDumpInfo option:
          e.g. java -XX:+RecordDynamicDumpInfo -XX:SharedArchiveFile=java_pid<pid>_dynamic.jsa -cp myApp.jar myApp

            minqi Yumin Qi
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: