Release Note: Default Initial Heap Size Now Set to MinHeapSize

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: hotspot
    • gc

      If users do not specify the initial heap size using `-Xms` or `-XX:InitialHeapSize`, the JVM decides the initial heap size using the `InitialRAMPercentage` setting, defaulting to 1/64 of the system's physical RAM. This default behavior results in large initial heap sizes on modern systems with substantial memory, potentially increasing JVM startup times due to the initialization of heap-related data structures.

      With this release, the default value of `InitialRAMPercentage` has been removed. Now, if an initial heap size is not specified, the JVM sets the initial heap size to the minimum possible heap size, which is the value of `MinHeapSize`. This change aims to improve startup performance for default JVM configurations by reducing unnecessary memory initialization.

      To get the previous behavior, users can explicitly set `InitialRAMPercentage` to `1.5626`, or configure the initial heap size directly using `-XX:InitialHeapSize` or `-Xms`.

            Assignee:
            Joel Sikström
            Reporter:
            Joel Sikström
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: