The jmcli is a command line tool that displays information about Java virtual maschines in your console.
- Download the zip file for your platform
- Unzip the downloaded zip file to a new installation directory
- Add the
bin
directory inside the installation directory to the system path
You can use Docker to play with and learn about jmcli. Of course, you can use jmcli inside your Docker container to monitor your Java service
docker run -it rweiw/jmcli:latest
jmcli -V
Use jmcli -h
to print the help.
This are the commands you can use:
Short Option | Long Option | Description |
---|---|---|
-h | --help | Displays the help |
-j={jvm} | --jvm={jvm} | Process identifier or part of the main class of the virtual maschine to connect to |
-i={interval} | --interval={interval} | Refresh interval in seconds |
-v | --verbose | Displays detail messages |
-V | --version | Displays version information |
The following Operating Systems are supported:
- Windows 10
- Linux
The following Java versions are supported:
- Java 8 (needs an installed JRE)
- Java 11 (needs a full JDK or at least a JRE and additionally the jdk.attach module)