Skip to content

Instantly share code, notes, and snippets.

@donbonifacio
Created May 22, 2016 09:59
Show Gist options
  • Save donbonifacio/077047a5760f1a74a750e241237ed226 to your computer and use it in GitHub Desktop.
Save donbonifacio/077047a5760f1a74a750e241237ed226 to your computer and use it in GitHub Desktop.

vmstat <ms>

Shows virtual memory stats every ms millis.

jps -lvm

Shows the java processes running, their PID, and command line arguments.

jcmd <pid> help

Allows to list the possible commands to send to the JVM. For example: jcm <pid> VM.version

jstack <pi>

Lists all the running threads of the JVM and their stack trace (meaning, where they are at the moment).

jstat <option> -t -h20 <pid> 1s

Shows stats every 1s. Example options: compiler, printcompilation, class, gcutil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment