This section provides a tutorial example on how to use the 'jstat -gcutil' command to get garbage collection statistics against a specified JVM process ID.
With the garbage collection testing program running, I am ready to test the "jstat" tool.
The first test is run "jstat" with the "-gcutil -t" option to get statistic samples on
a local JVM process.
1. Run the "jps" to get the process ID of the GarbageCollection.java JVM: