This is a simple tool for inspecting a running JVM process. It uses the Java Attach API to connect to the process and then provides data from some of the key JMX MBeans.
You can download a package, from here: jmx-stethoscope-0.1.tar.gz — A initial release of jmx-stethoscope-0.1.tar.gz
So, now you've got downloaded it, what are you going to do with it? Running the 'help' command is always worth a try:
sh jmx-stethoscope-0.1/scope --help
Here's the usage information:
Usage: scope [--help | --list | <pid> [--console | --info | --system | --threads | --mbeans <namequery> | --get <namequery> [<attr>]]]
The following commands are available:
Find and list JVM processes available to the current user.
Launch an interactive console, the same commands are availble inside the console/
Connect to process id and execute the 'info' command.
Connect to process id and execute the 'system' command.
Connect to process id and execute the 'threads' command.
Connect to process id and execute the 'mbeans' command.
Connect to process id and execute the 'namequery' command.