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

Allow more flexibility in selecting Heap % of available RAM

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 8u144
    • 10
    • hotspot
    • gc
    • b23

    Backports

      Description

        A customer has asked if it would be possible to specify an option that would allow the VM to select a percentage of available RAM. This becomes important when running the JVM in a Docker container where the amount of RAM available to a Java process can vary. The customer would like to use as much available RAM as possible rather than counting on ergonomics to pick the amount for them.

        The -XX:Min/MaxRAMFraction options come close to providing what the customer wants but they would either prefer a new set of flags that would represent a % of total rather than a ratio or they would be ok if we change the existing flags to a floating point value. The new flag could be named -XX:MaxRAMPercentage=xx


        Attachments

          Issue Links

            Activity

              People

                bobv Bob Vandette (Inactive)
                bobv Bob Vandette (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: