java xmx vs xms

Solutions on MaxInterview for java xmx vs xms by the best coders in the world

showing results for - "java xmx vs xms"
Jean-Baptiste
11 Mar 2016
1-Xms: It is used for setting the initial and minimum heap size. It is
2recommended to set the minimum heap size equivalent to the maximum heap
3size in order to minimize the garbage collection.
4
5-Xmx: It is used for setting the maximum heap size. The performance will
6decrease if the max heap value is set lower than the amount of live data.
7It will force frequent garbage collections in order to free up space.