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

XMLWordPrintable

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

      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).

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

              Created:
              Updated:
              Resolved: