Skip to main content

Monitoring and Administration using JMX

Apache Karaf provides a large set of MBeans that allow you to fully monitor and administrate Karaf using any JMX client (for example, JConsole provided in the Oracle or IBM JDK). They provide more or less the same actions that you can do using the Karaf shell commands.

The list of MBeans available:

For MBean registration, the Karaf container exposes a MBeanServer as an OSGI service. This server is created when Karaf boots and can be used to register your own MBeans. The process is really simple as it only requires that the bean/pojo of the project extend the class and implement an interface where the name of the class must contain the extension MBean. Below shows an example based on Karaf WebMBean:

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!