Adding JMX support to your java app
Lets start with the basics -
what is JMX?
JMX is a technology that lets you add management interfaces for Java applications
the jmx interface on your java application will let you monitor and publish graphs for:
- heap memory
- threads and their stack trace
- CPU
- classes
- memory pools
Enabling JMX in Tomcat
- the numbers after the “wrapper.java.additional.” part are in increasing order – make sure to continue from where the last config line showed, and make sure there are no gaps in the counting.
- change <port> to the port number you wish to expose
- these settings will enable password-less connection to you JMX server, if you wish to add authentication and SSL you will need to change these settings.
- change <
ServerName> to your server name – this setting is needed – without it the server will only allow localhost connections and wont allow remote.














Recent Comments