Profile Image
vishnupriya

What is Memory tuning: -XX:MinRAMPercentage?

what is Memory tuning: -XX:MinRAMPercentage? Have you used this JVM arguement before?What are the pros & cons of using this Java argument? Can you share your perspective/experience in using this JVM argument?

  • jvmargument

  • xx-minrampercentage

  • x-minrampercentage

  • Memory tuning

Please Sign In or to post your comment or answer

Profile Image

Pavel Khodakovsky

Usage:

 

You can set the maximum heap size as a percentage of total memory in a small memory amount environments with:

 

-XX:MinRAMPercentage=x, where x is the desired percentage of heap memory between 0 and 100 of type double.

 

Examples:

 

Will set the max heap size to 15.2654 and 30%:

 

-XX:MinRAMPercentage=15.2654

 

-XX:MinRAMPercentage=30.00

 

Description:

 

This Oracle HotSpot option, unlike it’s name, can be used to specify the maximum size of the Java heap for JVM running on a small amount of memory as a percentage of the total memory available to the JVM. It sets the maximum amount of memory that the JVM may use for the Java heap before applying ergonomics heuristics as a percentage of the maximum amount determined as described in the -XX:MaxRAM option for small heaps. A small heap is a heap of approximately 125 MB. The default value is 50 percent.

 

Default Value:

 

Default value is 50%.

 

Errors:

 

Accepts only numeric double values from 0 to 100

 

Arguments related:

 

TODO link Xmx, Xms, UseContainerSupport, InitialRAMPercentage, MaxRAM

 

 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.

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • jvmargument

  • xx-minrampercentage

  • x-minrampercentage

  • Memory tuning