Management

JVM since1.1.0 Native since3.2.0

JMX management strategy and associated managed resources.

Maven coordinates

Or add the coordinates to your existing project:

<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-management</artifactId>
</dependency>

Check the User guide for more information about writing Camel Quarkus applications.

Usage

For information on using Managed Beans in Camel, consult the JMX section of the Camel Manual.

Enabling and Disabling JMX

JMX can be enabled or disabled in Camel-Quarkus by any of the following methods:

  1. Adding or removing the camel-quarkus-management extension.

  2. Setting the camel.main.jmxEnabled configuration property to a boolean value.

  3. Setting the system property -Dorg.apache.camel.jmx.disabled to a boolean value.

Native mode

Experimental JMX support was added for native executables in GraalVM for JDK 17/20 / Mandrel 23.0. You can enable this feature by adding the following configuration property to application.properties.

quarkus.native.monitoring=jmxserver

If you want the native application to be discoverable by tools such as JConsole and VisualVM, append the jvmstat option to the above mentioned configuration.

For more information, refer to the Quarkus native guide.