4 ms·
The JVM allocates at start a portion, takes what it needs whenever it needs until the max, but never releases memory back to the OS. So in a given moment a 6GB
by mcosta 10y ago
The JVM allocates at start a portion, takes what it needs whenever it needs until the max, but never releases memory back to the OS. So in a given moment a 6GB vm is a 5GB process but internally is using just 3GB.
- jerven 10y agoThe standard JVMs do give memory back. The standard settings are not very friendly to do so but it does work.