Usage:
You can set the minimum size of memory allocation pool:
-XX:MinHeapSize=size, where size is the amount of memory in bytes of your choice.
Examples:
Will set the mimimum size of allocated memory to 6 MB:
-XX:MinHeapSize=6291456
-XX:MinHeapSize=6144k
-XX:MinHeapSize=6m
Description:
Sets the minimum size (in bytes) of the memory allocation pool. This value must be either 0, or a multiple of 1024 and greater than 1 MB. Append the letter k or K to indicate kilobytes, m or M to indicate megabytes, or g or G to indicate gigabytes. The default value is selected at run time based on the system configuration. If you set this option to 0, then the minimum size is set to the same value as the initial size.
Default Value:
Default value is platform-dependent.
Errors:
None
Arguments related:
TODO link –XX:MaxHeapFreeRatio
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