Skip to content

Instantly share code, notes, and snippets.

@brianstorti
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianstorti/45d9742c3a20233d42a0 to your computer and use it in GitHub Desktop.
Save brianstorti/45d9742c3a20233d42a0 to your computer and use it in GitHub Desktop.
jvm profiling
Java Virtual Machine statistics monitoring tool (jstat -options for all the options)
$ jstat -gcutil process_id 1000
S0 -> Survivors 0
S1 -> Survivors 1
E -> Eden
O -> Old
P -> Perm
YGC -> Young GC
YGCT -> Young GC time
FGC -> Full GC
FGCT -> Full GC time
GCT -> Total GC time
$ jcmd process_id GC.heap_dump ~/.heap_dump.hprof
Analize dump on visualvm to check dominators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment