Chapter 16: Monitoring and Managing Tomcat with JMX
Chapter 16: Monitoring and Managing Tomcat with JMX Figure 16-16: Remote monitoring for Tomcat via jconsole To enable user authentication and SSL transport, modify the setenv.batfile to contain: set CATALINA_OPTS=-Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=192.168.23.2 -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=true -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=..confpassword.txt -Dcom.sun.management.jmxremote.access.file=..confaccess.txt You can define roles for monitoring and management in the access control file confaccess.txt: monitorRole readonly controlRole readwrite The monitorRole can read only the value of attributes exposed by the manageable components. The controlRole can read and modify any writable attributes. For each role, you need to specify the password in the corresponding password file confpassword.txt: monitorRole monpass controlRole ctrl1@pass
For high quality java hosting services please check tomcat web hosting website.