GithubHelp home page GithubHelp logo

jmx-repl's Introduction

jmx-repl

A JMX client with a file system style. You use ls to check all the mbeans, use cd to go down one level, and use cat to check the attribute value of a mbean's attribute.

In jmx-repl the following jmx bean:

java.lang:type=MemoryPool,name=CMS Old Gen

translates to the following path:

/java.lang/MemoryPool/CMS Old Gen

i.e. in jmx-repl, java.lang, MemoryPool, CMS Old Gen are all directories, the attributes of this bean are "file" in jmx-repl.

"Install"

git clone https://github.com/xumingming/jmx-repl.git
  • Add Clojars.org to your ~/.m2/settings.xml
<repository>
  <id>clojars.org</id>
  <url>http://clojars.org/repo</url>
</repository>
  • Run
lein deps && lein repl

Usage

xumingmingv:jmx-repl(git:master)$ lein repl
REPL started; server listening on localhost port 44034
	 help -- print this help
	 ls   -- list the items in current directory
	 cd   -- enter a folder
	 cat  -- print the value of an item
	 pwd  -- show the current path
	 exit -- exit
[/] => ls
	JMImplementation
	com.sun.management
	java.lang
	java.util.logging
[/] => cd java.lang
[/java.lang] => ls
	ClassLoading
	Compilation
	GarbageCollector
	Memory
	MemoryManager
	MemoryPool
	OperatingSystem
	Runtime
	Threading
[/java.lang] => cd MemoryPool
[/java.lang/MemoryPool] => ls
	CMS Old Gen
	CMS Perm Gen
	Code Cache
	Par Eden Space
	Par Survivor Space
[/java.lang/MemoryPool] => cd CMS Old Gen
[/java.lang/MemoryPool/CMS Old Gen] => ls
	CollectionUsage
	CollectionUsageThreshold
	CollectionUsageThresholdCount
	CollectionUsageThresholdCount
	CollectionUsageThresholdExceeded
	CollectionUsageThresholdSupported
	MemoryManagerNames
	Name
	PeakUsage
	Type
	Usage
	UsageThreshold
	UsageThresholdCount
	UsageThresholdExceeded
	UsageThresholdSupported
	Valid
[/java.lang/MemoryPool/CMS Old Gen] => cat CollectionUsage
{:committed 0, :init 65404928, :max 110362624, :used 0}
[/java.lang/MemoryPool/CMS Old Gen] => exit
xumingmingv:jmx-repl(git:master)$

License

Copyright (C) 2012 xumingming

Distributed under the Eclipse Public License, the same as Clojure.

jmx-repl's People

Contributors

xumingming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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.