// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-management"]
= Management
:linkattrs:
:cq-artifact-id: camel-quarkus-management
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: JMX management strategy and associated managed resources.
:cq-deprecated: false
:cq-jvm-since: 1.1.0
:cq-native-since: 3.2.0

ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native since##[.badge-supported]##3.2.0##
endif::[]

JMX management strategy and associated managed resources.

[id="extensions-management-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-management[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]

Or add the coordinates to your existing project:

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-management</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]

[id="extensions-management-usage"]
== Usage
For information on using Managed Beans in Camel, consult the xref:manual::jmx.adoc[JMX section of the Camel Manual].

[id="extensions-management-usage-enabling-and-disabling-jmx"]
=== Enabling and Disabling JMX

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

. Adding or removing the `camel-quarkus-management` extension.
. Setting the `camel.main.jmxEnabled` configuration property to a boolean value.
. Setting the system property `-Dorg.apache.camel.jmx.disabled` to a boolean value.

[id="extensions-management-usage-native-mode"]
=== Native mode

If you want the native application to be discoverable by tools such as JConsole and VisualVM, add the following configuration to `application.properties`.

[source,properties]
----
quarkus.native.monitoring=jvmstat
----

For more information, refer to the https://quarkus.io/guides/building-native-image#using-monitoring-options[Quarkus native guide].


[id="extensions-management-camel-quarkus-limitations"]
== Camel Quarkus limitations

[id="extensions-management-limitations-native-mode"]
=== Native mode

JMX in GraalVM is still *experimental*. Therefore, some features are not available in native mode.

* Operations for MBean `java.lang:type=Threading` are not fully implemented. Therefore, it is not possible to obtain details about application threads.
* Various MBean attributes do not have their values implemented. For example, the `ClassCount` attribute values for MBean `java.lang:type=ClassLoading` are fixed at `0`

