-Xms is to specify initial heap size or minimum heap size? I see lot of places with lot of different answers. Some like second answer here, say that it is for initial heap and some like here say that its minimum heap size. Or is it that the minimum size itself is the initial size?
Join them; it only takes a minute:
|
The initial heap size is the minimum heap size. It won't get smaller than the initial heap size. From Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine:
|
|||||
|
From running java -X:
Note that -X options are not guaranteed to exist on all VMs or behave the same on all VMs. For example -Xms could format your hard drive depending on the VM (it would not - but strictly speaking it could :-) (typing java by itself gives the help with this line: "-X print help on non-standard options"). |
||||
|