48.3 Using Jolokia for JMX over HTTP
Jolokia is a JMX-HTTP bridge giving an alternative method of accessing JMX beans. To use Jolokia, simply include a dependency to org.jolokia:jolokia-core
. For example, using Maven you would add the following:
<dependency> <groupId>org.jolokia</groupId> <artifactId>jolokia-core</artifactId> </dependency>
Jolokia can then be accessed using /jolokia
on your management HTTP server.
48.3.1 Customizing Jolokia
Jolokia has a number of settings that you would traditionally configure using servlet parameters. With Spring Boot you can use your application.properties
, simply prefix the parameter with jolokia.config.
:
jolokia.config.debug=true
48.3.2 Disabling Jolokia
If you are using Jolokia but you don’t want Spring Boot to configure it, simply set the endpoints.jolokia.enabled
property to false
:
endpoints.jolokia.enabled=false