JMX Study Notes

Java, notes March 10th, 2008

1. Overview

Java Management EXtension, used to manage resources (applications, services, device, etc) within your JVM locally (in-box) or remotely (out-of-box).

It is developed through JSR3 (JMX SPEC), JSR160 (extension for remote management).

2. Architecture

[MBean Server] Agent <—-> connector (various protocols) <—-> management application
————–|
————-\|/
[resources] MBean (instrumentation)
————–|
————-\|/
JVM (local or remote)

MBean (Managed Java object, similar to JavaBean) is registered to the Agent, and resources are wrapped within MBeans, which is called instrumentation in JMX SPEC.

Interfaces:

The management interface of an MBean consists of:

  • Named and typed attributes that can be read and/or written
  • Named and typed operations that can be invoked
  • Typed notifications that can be emitted by the MBean

MBeans can be instantiated and registered by:

  • Another MBean
  • The agent itself
  • A remote management application

 The operations available on MBeans include:

  • Discovering the management interface of MBeans
  • Reading and writing their attribute values
  • Performing operations defined by the MBeans
  • Getting notifications emitted by MBeans
  • Querying MBeans based on their object name or their attribute values

Management applications do the management throw agent services that operates on MBeans.

3. Resources

  1. Java Management Extensions (JMX)

Related Posts

Tags: , ,