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

VM silently set MaxPermSize value to zero if it is less than LargePageSizeInBytes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: hs23, hs24
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
      gc

      Description

      If specified MaxPermSize value is less than LargePageSizeInBytes then after aligning it down to LargePageSizeInBytes it's size will be 0 and VM initialization fails with message: "Too small initial permanent heap".

      $ 1.7.0_60/latest/binaries/solaris-sparcv9/fastdebug/bin/java -XX:+UseLargePages -XX:LargePageSizeInBytes=2G -XX:+UseG1GC -d64 -version
      Error occurred during initialization of VM
      Too small initial permanent heap

      VM should print explicit reason of initialization failure, something like: "perm size should be multiple of LargePageSizeInBytes".

      All GCs except Parallel GC are affected (Parallel GC choose actual page size from range of all available page sizes which is limited by LargePageSizeInBytes).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            fzhinkin Filipp Zhinkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: