public
Description: a JMX library for JRuby
Homepage: http://github.com/jmesnil/jmx4r/
Clone URL: git://github.com/jmesnil/jmx4r.git
jmx4r /
name age message
file AUTHORS.txt Loading commit data...
file LICENSE.txt Thu Apr 10 12:17:46 -0700 2008 initial commit [jmesnil]
file README.txt
file Rakefile
directory examples/
directory lib/
directory test/
README.txt
jmx4r is a JMX library for JRuby.

It can be used to write simple Ruby scripts running on JRuby[http://jruby.org]
to manage remote Java applications (e.g. JBoss[http://www.jboss.org],
Tomcat[http://tomcat.apache.org/]) using 
JMX[http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/].

== Examples 

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"
  memory.gc