I’ve read multiple articles about best practices for setting the {Min/Max/Initial}RAMPercentage
values for java applications in the cloud environment. The purpose of Min and Max RAM Percentage flags is clear for me.
On the other side I can’t neither understand nor find the reason behind recommendations (1st, 2nd and 3rd) to set the -XX:InitialRAMPercentage
and -XX:MaxRAMPercentage
to the same values.
Therefore I would like to understand:
- why should I set the
InitialRAMPercentage
at all, if it will be scaled up automatically during the application lifetime (because initial value lies around 1.5 percent)? - why should I set the
InitialRAMPercentage
directly to the same value asMaxRAMPercentage
?