Skip to content

weissreto/jmcli

Repository files navigation

Java Management Command Line Interface (jmcli) Build Status

The jmcli is a command line tool that displays information about Java virtual maschines in your console.

dashboard

Download / Installation

  1. Download the zip file for your platform
  1. Unzip the downloaded zip file to a new installation directory
  2. Add the bin directory inside the installation directory to the system path

Docker

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

Help

Use jmcli -h to print the help.

Available Commands

This are the commands you can use:

Command Description Example
list vm Lists all available java virtual maschines listvm
list beans Lists all available management beans listbeans
list attributes List attributes listattributes
list threads List all threads listthreads
list threads-states List all threads and their states listthreadsstates
list classes List all loaded classes and the number of instances listclasses
info vm Prints information about a virtual machine
info bean Prints information about managment beans
info attribute Prints information about attributes
info operation Prints information about operations
set attribute Sets the value of an attribute
invoke operation Invokes an operation
chart Draws a chart chart
dashboard Draws a dashboard dashboard

Important Options

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

Requirements

Operating System

The following Operating Systems are supported:

  • Windows 10
  • Linux

Java

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)

About

Java Management Command Line Interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages