Visualize `jstat -gc` results.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
src/main/scala/zamblauskas/jstatplot
.gitignore
LICENSE.txt
README.md
build.sbt

README.md

About

Visualize jstat -gc results.

Usage

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).

Runtime dependencies

GnuPlot must be available on your system.

Examples

Produce jstat result file:

/usr/bin/jstat -gc -t <pid> 1000 > jstat-result.txt

Create graphs:

jstatplot jstat-result.txt

Produced graphs:

Capacity

Utilization

GC events

GC time

Build it

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