# Jetty JMX Integration

The Java Management eXtensions (JMX) represents a universal, open technology for management, and monitoring that can be deployed wherever management and monitoring are needed. By design, this standard is suitable for adapting legacy systems, implementing new management and monitoring solutions and plugging into those of the future.

The Core Jetty project has been fully instrumented with JMX, including MBeans for:

- HttpServer.
- HttpContext.
- HttpListener.
- HttpHandler.
- SessionManager.
- ServletHolder.

JMX instrumentation makes it easy to integrate Jetty management into standards based managment system of your J2EE server and/or application. The Jetty MBeans are moving towards providing key parts of JSR 77 - J2EE Management.

The JMX classes are included in the main jetty source tree and are built if a JMX implementation can be found (The reference implementation is included in the ext directory). To start the JMX version of Jetty use:

      java -Dmain.class=org.mortbay.xml.XmlConfiguration -jar start.jar etc/jetty-jmx.xml

The Jetty demo can be run as JMX enabled with:

      java -Dmain.class=org.mortbay.xml.XmlConfiguration -jar start.jar etc/demo-jmx.xml

By default, the mx4j MBean agent is run at http://localhost:8082.

Return to the Jetty project page.