github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jmesnil / jmx4r

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 21
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (1)
  • Downloads (6)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (6)
    • v0.1.0
    • v0.0.8
    • v0.0.7
    • v0.0.6
    • v0.0.5
    • v0.0.4
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

a JMX library for JRuby — Read more

  cancel

http://github.com/jmesnil/jmx4r/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

fixed rdoc format 
jmesnil (author)
Thu Oct 22 05:36:35 -0700 2009
commit  092aed8e0cefb886464ac4ae5aa4f41b3de4547f
tree    c925f9e3d2e28c8ad7be9f7d653ac4eda129f833
parent  d6cc276484dd57d486bafa07552cdaf497a43d7d
jmx4r /
name age
history
message
file .gitignore Sat Apr 12 11:50:35 -0700 2008 ignore doc & pkg dirs [jmesnil]
file AUTHORS.txt Thu Feb 12 05:00:29 -0800 2009 weblogic support * when creating the JMX conne... [mnadel]
file LICENSE.txt Thu Apr 10 12:17:46 -0700 2008 initial commit [jmesnil]
file README.rdoc Thu Oct 22 01:41:08 -0700 2009 refactored [sat13f]
file Rakefile Thu Oct 22 05:30:53 -0700 2009 reverted version to (unreleased) 0.1.0 [jmesnil]
directory examples/ Mon Jun 15 04:26:56 -0700 2009 dynamic mbean example * added the example of a... [jmesnil]
directory lib/ Thu Oct 22 05:36:35 -0700 2009 fixed rdoc format [jmesnil]
directory test/ Thu Oct 22 01:41:07 -0700 2009 added local JVM connection feature [sat13f]
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

  # For local processes not publishing jmxrmi ports, instead:

  # connect to the local JConsole process
  JMX::MBean.establish_connection :command => /jconsole/i

Help

  • Wiki
  • RDoc

Source Code

  git clone git://github.com/jmesnil/jmx4r.git
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server