gcstat

gcstat is a Perl script used to quickly determine the proportion of time a JVM spends garbage collecting. The output is a simple text UI plot. The input is the stderr log from the JVM that results from turning on the verbosegc flag of the JVM.

The syntax of the invocation is

perl gcstat130.pl <verbosegc file>

Since the format of the verbosegc output changes from one JDK to the next and between versions of a given JDK, a separate parsing function must be written for each JDK version. I am working on making this easier to use, but I'm posting the following script just to "get it out there."

All scripts are served as .txt files so as not to confuse various web browsers with the .pl extension. After downloading, simply remove the .txt extension.

gcstat130.pl IBM JDK 1.3.0