When I place System.gc() in my code, it will invoke garbage collection
My doubt is can JVM free the memory physically?
Originally posted by Paul Sturrock:
Physical memory management is the domain of the operating system. It might free the memory up in physical memory; it should free the memory in virtual memory.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Originally posted by vilas lawande:
yes JVM can free physical memory
regards
vilas
Originally posted by vilas lawande:
yes JVM can free physical memory
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Originally posted by vilas lawande:
No garbage collector can not free unused menory.
It will free only object's , those are not refered by any reference veriable of class
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Originally posted by Peter Chase:
Depending on some settings (-XXMinHeapFreeRatio), the JVM does ask for more virtual memory from the OS for the Java heap, when the Java heap nears fullness with active objects. Depending on some other settings (-XXMaxHeapFreeRatio), the JVM may occasionally release some of the Java heap, if it is getting too empty.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus