[GC-- in GC output
I have an app that rans on Solaris 10 with java 1.5.0_11 and it has some wierd gc types in gc log.
Can anyone explain what are those GC-- rows?
3087.910: [GC 907916K->716116K(962624K), 0.9520986 secs]
3096.156: [GC-- 927444K->962596K(962624K), 1.3476942 secs]
3097.504: [Full GC 962596K->413078K(962624K), 9.9089613 secs]
[353 byte] By [
noxtecha] at [2007-11-27 11:42:31]

# 1
The line
3096.156: [GC-- 927444K->962596K(962624K), 1.3476942 secs]
indicates that a minor collection is being done (i.e., only the young generation is
being collected). During a minor collection objects often need to be copied to
the tenured generation. If there is not enough room in the tenured generation for
all the objects that need to be copied out of the young generation, then the
minor collection is undone. The admittedly cryptic "--" is and indication that the
minor collection was undone. This is always followed by as full collection.
Take a look at
http://java.sun.com/javase/technologies/hotspot/gc/memorymanagement_whitepaper.pdf
for an explanation of generational collection.