Tomcat with JMX

You will also need to add two files:

1) /etc/tomcat7inst/jmxremote.password

#monitorRole tomcat
#controlRole tomcat
user password

2) /etc/tomcat7inst/jmxremote.access

#monitorRole readonly
#controlRole readwrite
user readwrite

4)

chmod 600 /etc/tomcat7inst/jmxremote.*

chown tomcat7:tomcat7 /etc/tomcat7inst/jmxremote.*

5) Edit /etc/tomcat7inst/8xx/bin/startup.sh

Add to existing options:

export JAVA_OPTS="-Dcom.qbw.instance=811
-Xms1g -Xmx1g -XX:MaxPermSize=128m
-Djava.rmi.server.hostname=192.168.1.xx
-Dcom.sun.management.jmxremote.port=xxy9
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=/etc/tomcat7inst/jmxremote.password
-Dcom.sun.management.jmxremote.access.file=/etc/tomcat7inst/jmxremote.access
"

6)

/etc/tomcat7inst/8xx/bin/shutdown.sh

/etc/tomcat7inst/8xx/bin/startup.sh


Tag Cloud