Usage:
You can set the initial heap size as a percentage of total memory with:
-XX:InitialRAMPercentage=x, where x is the desired percentage of heap memory between 0 and 100 of type double.
Examples:
Will set the initial heap size to 15.2654 and 30%:
-XX:InitialRAMPercentage =15.2654
-XX:InitialRAMPercentage=30.00
Description:
This Oracle HotSpot option can be used to specify the initial size of the Java heap as a percentage of the total memory available to the JVM. If you set a value for -Xms, the -XX:InitialRAMPercentage option is ignored. If your application is running in a container and you have specified -XX:+UseContainerSupport, the default heap size for containers, the -XX:InitialRAMPercentage option is based on the available container memory.
Default Value:
Depends on the system
Errors:
Accepts only numeric double values from 0 to 100
Arguments related:
TODO link Xmx, Xms, UseContainerSupport, MaxRAMPercentage
Related Posts:
NOTE:
If you have additional comments, interesting experiences or even point of disagreement with this JVM argument description, please leave a comment. Your insights will help the entire 10+ million java developer community to develop one standard source of documentation for all the JVM arguments.
Edit your Comment