Use the jvmstat utility to monitor HotSpot garbage collection. (See Further Information
For detailed information on tuning the garbage collector, see Tuning Garbage Collection with the 5.0 Java Virtual Machine.