Giter Club home page Giter Club logo

jmcli's Introduction

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)

jmcli's People

Contributors

weissreto avatar

Stargazers

 avatar

Watchers

 avatar  avatar

jmcli's Issues

jmx-cli hangs if no tty is available

If I use jmx-cli without a tty, in my headless build environment, there seems to be a problem. The application just hangs:

locadmin@ZugProBldDocker02:~$ docker exec ivy-visualvm_ivy_1 /opt/ivy/jmx-cli-0.1.0/bin/jmcli list beans

^[[39;1R

The jmcli prints ^[[39;1R and hangs afterwards. Maybe there is a problem with the color output? If I have time, i will further analyze this problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.