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