garbage collection - JVM Heap and OS Memory allocation -


does jvm ever give memory os has allocated heap?

for example, have jvm @ set -xmx5120m , have used of memory, doing stuff cause heap fill up. lets full gc happens, brings actual heap usage down significantly. drop cause total heap size reduced, presumably above actual usage levels, , "cleared" memory returned os? or memory allocated jvm remain @ high level though may not "actively" using of in heap now.

slim down vs hoard guess.

edit: i'm interested in sun/oracle jvm (i.e. 1.6.0_33, 1.7+ or like)


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -