ShowGc is a lightweight, yet handy application that you can use to generate and view garbage collection stats.

ShowGc can plot data produced by the Java VM options, enabling you to fully customize the chart appearance (from title, fonts and colors to axis range and labels). The generated chart can be exported to your computer for later reference.