Table of Contents

About

A JMX agent consists of:

JMX agents are usually located on the same machine as the resources they control, but this is not a requirement.

How to

Start an application with the JMX agent

java -Dcom.sun.management.jmxremote.port=1090
     -Dcom.sun.management.jmxremote.ssl=false
     -Dcom.sun.management.jmxremote.authenticate=false
      -jar myApplication.jar

This instruction uses the Sun's built-in support to enable a JMX agent.

You can programmatically start a JMX agent with the RMI connector using javax.management.remote API.

JMX service URL

To connect to a Jmx agent, you use a Jmx Service Url