The -verbose:gc option enables
logging of garbage collection (GC) information. It can be combined
with other Java VM specific options such as -XX:+PrintGCDetails and -XX:+PrintGCTimeStamps to retrieve more information
about the GC. The information output includes the size of the generations
before and after each GC, total size of the heap, the size of objects
promoted, and the time taken.
These options along with detailed information
about GC analysis and tuning, are described at Sun's GC portal site:
http://java.sun.com/developer/technicalArticles/Programming/GCPortal
The -verbose:gc option can be
dynamically enabled at runtime using the management API or JVMTI.
The jconsole monitoring and management tool can
also enable or disable this option when attached to a management Java
VM.
For other GC logging options, see -Xverbosegc.