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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • hs23, hs24
    • 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).

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

              Created:
              Updated:
              Resolved: