Hi, On Tue, 2016-10-25 at 08:41 +0000, Gopal, Prasanna CWK wrote: > Hi All > > I have the following question about Garbage collection of Humongous > objects. > > 1) When will the humongous objects will get reclaimed ? > 2) Is there is any behaviour difference between Jdk 7 and Jdk 8 > run time ? > 3) I understand, in pre-jdk 8 G1 GC , the humongous objects gets > collected only through Full GC. In my application , I couldn’t see > Full GC happening for long time (running on jdk_7u40_x64) , does this > means the humongous objects stay in memory , till we have a full GC ?
G1 can reclaim humongous objects... * at the end of marking in the GC Cleanup pause. * during full gc. * JDK8u60+ can also reclaim particular types of humongous objects (arrays that do _not_ consist of references to objects) at every young GC. See the release notes for 8u60 at http://www.oracle.com/technetwork /java/javase/8u60-relnotes-2620227.html under "New Features and Changes" for how to control this. (It works for any array of primitive type, not limited to the examples given there - just in case you wonder). Thanks, Thomas _______________________________________________ hotspot-gc-use mailing list hotspot-gc-use@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use