Chapter 16: Monitoring and Managing Tomcat with JMX

Chapter 16: Monitoring and Managing Tomcat with JMX The general form for a query operation using the JMX proxy is as follows: ?qry= For example, you can get a complete listing of all the available MBeans using the following wildcard query: http://localhost:8080/manager/jmxproxy/?qry=*:* You must enable access to the Tomcat Manager application before this will work. To enable access to the Tomcat Manager, perform the following steps: 1. Shut down the Tomcat server if it is running. 2. Change the directory to $CATALINA_HOME/conf. 3. Open the tomcat_users.xmlfile with a text editor and modify the line with the tomcatuser: 4. Start the Tomcat server. When prompted for a user and password, you can use tomcatand tompassrespectively. The result will be similar to what is shown in Figure 16-8 . Figure 16-8: Listing of all the MB eans in Tomcat 6

For reliable and cheap web hosting services please check tomcat web hosting website.

Comments are closed.