How to

  1. In the Central list, select Monitoring Server Groups.
  2. Click the New Monitoring Server Group icon.The Monitoring Server / Monitor wizard appears.
  3. Select Monitoring Server Group and click Next.
  4. Enter a name and description for the Monitor Server Group.
  5. Check App Servers and then click Next.
  6. The Hosts/Device Agents screen appears. Add one or more servers where a Tomcat server resides using hostname or IP Address.
  7. Select Tomcat, then enter the JMX port number, the user name, and password. The user name and password are not always required. Check with your network administrator. Note that Tomcat does not have a default port. It is chosen when you set up the JMX Remote Agent.
  8. Click the Test Connection button to test the connection. If the connection is successful, the connection success is indicated in green text. If the connection fails, you will see an error message in red text.
  9. Click Next and review the Monitor Server setup.
  10. Check the "Create a new Monitor for this Monitor Server" box and click Finish.
  11. Enter a name for the Monitor and an optional description, then click Next.Now, choose which statistics to monitor. For each statistic, you can choose a "sample rate" that determines how often that statistic will be collected.
    • In addition to the standard statistics that are offered (for example, "JVM Heap Size"), you can track the value of any JMX MBean attribute. For example, to track the current number of sessions in the web application /mywebapp , check the "JMX Attribute" box, and in the "Arguments" column enter:
    Catalina:type=Manager, path=/mywebapp,host=localhost:sessionCounter You can use the "Add Custom Object" button to add as many JMX MBean attributes as you like. Some more examples:
    • To track the total amount of time spent processing HTTP requests since Tomcat started, in the "Arguments" column enter:
    Catalina:type=GlobalRequestProcessor,name=http- 8080:processingTime
    • To track the current number of threads in the HTTP thread pool, in the "Arguments" column enter:
    Catalina:type=ThreadPool, name=http-8080:currentThreadCount When you are finished, click Next.

  12. Review the information to be sure it is correct, then click Finish.

What you should see