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

Allow more flexibility in selecting Heap % of available RAM

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u144
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      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

                • Assignee:
                  bobv Bob Vandette
                  Reporter:
                  bobv Bob Vandette
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: