This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 3a5dbfa43d031ecd02d80d365b1fa1b1c2eb7394
tree 0975f508c182d618314a91820c31669cef9efc8e
parent d7c30f5924971617b1a15638acbf1c4122bb89a2
tree 0975f508c182d618314a91820c31669cef9efc8e
parent d7c30f5924971617b1a15638acbf1c4122bb89a2
jmx4r /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Apr 12 11:50:35 -0700 2008 | |
| |
AUTHORS.txt | Thu Feb 12 05:00:29 -0800 2009 | |
| |
LICENSE.txt | Thu Apr 10 12:17:46 -0700 2008 | |
| |
README.rdoc | Sun Dec 28 13:15:19 -0800 2008 | |
| |
Rakefile | ||
| |
examples/ | Mon Jun 15 04:26:56 -0700 2009 | |
| |
lib/ | ||
| |
test/ |
README.rdoc
jmx4r is a JMX library for JRuby.
It can be used to write simple Ruby scripts running on JRuby to manage remote Java applications (e.g. JBoss, Tomcat) using JMX.
jmx4r helps to manage Java applications using JMX in a simple and powerful way:
- no need to depend on the Java interfaces of the MBean in your management code. This means less deployment issues
- Thanks to Ruby metaprogramming toolset, you can treat your MBeans as simple objects and jmx4r hides all the complexity to map them to the javax.management API for you
- you can manage your own JVM (e.g. if you’re running a Rails on JRuby application) or a remote JVM in the same way
Installation
jruby -S gem install jmx4r
Usage
# To trigger a garbage collection on a Java application: require 'rubygems' require 'jmx4r' JMX::MBean.establish_connection :host => "localhost", :port => 3000 memory = JMX::MBean.find_by_name "java.lang:type=Memory" # display verbose GC logs memory.verbose = true # trigger a Garbage Collection memory.gc
Help
Source Code
git clone git://github.com/jmesnil/jmx4r.git








