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

Allow easy configurations for large CDS archives

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b30
    • Verification:
      Not verified

      Backports

        Description

        In JDK8, if you want to create a large CDS archive (with a lot of classes), you need to add VM options like these

        -XX:SharedReadWriteSize=200000000 -XX:SharedReadOnlySize=200000000 -XX:SharedMiscDataSize=22000000

        which is kind of cumbersome. It's better to have higher-level options like:

        -XX:+UseLargeSharedArchive -> allow up to 300MB combined archive size
        -XX:+UseHugeSharedArchive -> allow up to 800MB combined archive size

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ccheung Calvin Cheung
                Reporter:
                iklam Ioi Lam
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: