Java - Java Management eXtensions (JMX)

Java Conceptuel Diagram

What is JMX?

JMX (Java Management Extensions) is a Java technology that supplies tools for managing and monitoring resources such as:

Using the JMX technology, a given resource is instrumented by one or more Java objects known as Managed Beans, or MBeans. These MBeans are registered in a core-managed object server, known as an MBean server.

The API includes remote access, so a remote management program can interact with a running application for these purposes.

Since 1.5 - Standard Edition (J2SE) 5.0

Usage

Typical uses include:

  • consulting and changing application configuration
  • accumulating statistics about application behavior and making them available
  • notifying of state changes and erroneous conditions.

Architecture

Instrumentation

To manage resources using JMX technology, you must first instrument the resources in the Java programming language. You use Java objects known as MBeans to implement the access to the instrumentation of resources.

Once a resource has been instrumented by MBeans, it can be managed through a JMX agent.

In addition, the instrumentation level specifies a notification mechanism. This allows MBeans to generate and propagate notification events to components of the other levels.

JMX Agent

A JMX agent is a standard management agent that directly controls resources and makes them available to remote management applications.

Remote Management

JMX API instrumentation can be accessed in many different ways, either:

JMX technology provides a standard solution for exporting JMX API instrumentation to remote applications, based on Remote Method Invocation (RMI).

The JMX Remote API specification describes how you can advertise and find JMX agents using existing discovery and lookup infrastructures.

The specification does not define its own discovery and lookup service. The use of existing discovery and lookup services is optional: alternatively you can encode the addresses of your JMX API agents in the form of URLs, and communicate these URLs to the manager.

How to

Enable JMX

You must enable the use of JMX in your application.

  • To use JMX, you must enable it on your application server, by carrying out the steps under the documentation
  • For stand-alone application, add the startup parameter -Dcom.sun.management.jmxremote
java -Dcom.sun.management.jmxremote -jar jdk_home/demo/jfc/Notepad/Notepad.jar

Documentation / Reference





Discover More
Scale Counter Graph
Counter - Collector

Metrics collector query and collects metrics in order to be able to send them to a metrics server Log Collector In a instrumented application, reporter are a client piece of code which: process...
Yarn Hortonworks
HDFS - Jmx

in HDFS You can get JMX value with the hdfs client
Java Conceptuel Diagram
JMX - Client

A Jmx client is a client that can connect to a Jmx instance of the Jvm. Any JMX client will not see applications that are not owned by the same user. For example under Windows, if an application is...
Java Conceptuel Diagram
JMX - Mbean (Managed Bean|Manageable resource)

A managed bean (MBean) is a Java object that represents a JMX manageable resource in a distributed environment, such as: an application, a service, a component or a device. An MBean is a namedmanaged...
Jconsole Memory Chart
JVM - Memory (The Heap)

The JVM memory consists of the following segments: Heap Memory, which is the storage for Java objects Non-Heap Memory, which is used by Java to store loaded classes and other meta-data JVM code...
Java Conceptuel Diagram
Java

Why has become so popular among application developers? Primarily because makes application developers more productive. It is a modern, robust, object-oriented language. ’s unprecedented popularity...
Kafka Commit Log Messaging Process
Kafka - JMX

for Kafka. For example, to connect to a kafka running locally 127.0.0.1:1099 See the launch...
Obi Edition
OBIEE 10G/11G - Monitoring - (Performance|Perfmon) (Metrics|Counter)

The System and Performance Monitoring is managed through metrics that span over all the OBI layers: OS Application Server (Weblogic 11g or OC4J for 10g) BI Server instrumenteJMX technologinstrumenteDMS...
Obiee System Management Console
OBIEE 10G/11g - System (Configuration) Management (Mbean) JMX

The Oracle BI Systems Management API is a JMX Admin mbeans application / interface / api enabling to programmatically: perform system administration tasks (configuration, ...) get performance metrics...
Mbean Console Obi Parameters
Weblogic - MBean Browser/Explorer

Weblogic Mbean browser and explorer software. See the The WebLogic Server® MBean Reference for detailled documentation on all...



Share this page:
Follow us:
Task Runner