Chapter 16: Monitoring and Managing Tomcat with JMX
Chapter 16: Monitoring and Managing Tomcat with JMX In Figure 16-14 , you will notice that users of the Tomcat server are exposed under the Users key. All the currently active users on the server, including their passwords and role information, are accessible through this jconsole connection. This is clearly a potential security loop-hole. For this reason, remote management and monitoring are disabled by default. The last section of this chapter shows you how to enable remote Tomcat monitoring and management via jconsole. Changing Component Attribute Values via jconsole The writable attributes from the JMX managed component can be changed through the jconsole GUI. As an example, you can change the maxThreads property of the http-8080 threadpool from the default of 150 to 200. In jconsole s MBean tab, look under the Catalina key for the ThreadPool components. Expand the http8080 component s attributes and then click the maxThreads property. You should see the current value of maxThreads, as shown in Figure 16-15 . Figure 16-15: Using jconsole to change the value of attributes on a JMX managed component To change the maxThreads value, simply place the cursor on the current value and then change it. Try changing it from the default 150 to 200. After you ve changed the value, click the Refresh button to confirm that the change has been made.
For reliable and cheap web hosting services please check javaweb hosting website.