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

Allow easy configurations for large CDS archives

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b30
    • Not verified

        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

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

                Created:
                Updated:
                Resolved: