Visualize jstat -gc
results.
Usage: jstatplot [options] <file>...
<file>...
One or more of jstat result files.
-u <value> | --unit <value>
Size unit to display in graphs. Available values are [MB, GB].
-w <value> | --width <value>
Graph width
-h <value> | --height <value>
Graph height
-y <value> | --range-y <value>
Fix Y axis range upper value. By default max value in data will be used.
-s <value> | --skip <value>
Number of lines to skip before actual jstat result begins. You should use this option if you write any additional information at the beginning of jstat result file (e.g. start time, configuration parameters).
GnuPlot must be available on your system.
Produce jstat result file:
/usr/bin/jstat -gc -t <pid> 1000 > jstat-result.txt
Create graphs:
jstatplot jstat-result.txt
Produced graphs:
Using SBT.
To create a local executable at jstatplot/target/universal/stage
:
sbt stage
To create a distributable tgz
package at jstatplot/target/universal
:
sbt universal:package-zip-tarball