Skip to content

Latest commit

 

History

History
54 lines (27 loc) · 1.36 KB

README.md

File metadata and controls

54 lines (27 loc) · 1.36 KB

JMX Stethoscope

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.

Download

You can download a package, from here: jmx-stethoscope-0.1.tar.gz — A initial release of jmx-stethoscope-0.1.tar.gz

Usage

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>]]]

Commands

The following commands are available:

--list

Find and list JVM processes available to the current user.

--console

Launch an interactive console, the same commands are availble inside the console/

--info

Connect to process id and execute the 'info' command.

--system

Connect to process id and execute the 'system' command.

--threads

Connect to process id and execute the 'threads' command.

--mbeans

Connect to process id and execute the 'mbeans' command.

--get []

Connect to process id and execute the 'namequery' command.