Java 2 SDK for Solaris Developer's Guide

Sample Output

Examine the following sample output of -verbosegc -verbosegc:


Gen0(semi-spaces): size=4096kb, free=0kb, maxAlloc=0kb
  From space: size=524288 words, used=524286 words, free=2
  To space:   size=524288 words, used=1 words, free=524287
Gen0(semi-spaces)-GC #4 tenure-thresh=0 61ms 0%->28% free
Gen0(semi-spaces): size=4096kb, free=571kb, maxAlloc=571kb
  From space: size=524288 words, used=378157 words, free=146131
  To space:   size=524288 words, used=1 words, free=524287
Gen1(mark-compact): size=4096kb, free=0kb, maxAlloc=0kb
Gen1(mark-compact)-GC #1 Gen1: 850kb dense
 262ms 0%->2% free
Gen1(mark-compact): size=4096kb, free=80kb, maxAlloc=80kb

From this output, you can derive the following information about each generation:

Gen0 is a semi-space copying collector that started at 4096 KBytes. Before the young space collection there was 0 Kb of free memory; after the young space collection there were 378157 words free (28%). Gen1 is a mark-compact collector, which freed 2% during the collection.

A -verbosegc -verbosegc -verbosegc mode gives even more information.