Tomcat 5.5/6.0/7.0/8.0/9.0

Configuration

Before using a Tomcat monitor, it is required to enable JMX monitoring on the Tomcat server.

The list of options and how to configure JMX Remote in Java 8 can be found on the Oracle website.

  1. Add the following parameters to the Tomcat startup script:
  2. To include authentication, add and configure the following parameters:

    -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access \

  3. Edit the access allow file $CATALINA_BASE/conf/jmxremote.access :

    MonitorRole readonly

    controlRole readwrite

  4. Edit the password file $CATALINA_BASE/conf/jmxremote.password :

    MonitorRole tomcat

    controlRole tomcat

Connection settings

Defining a monitor to a Tomcat server requires the name or IP address of the machine to be monitored, as well as the connection port (the default port is 9004). In addition to these settings, a valid user account must be provided if authentication is enabled.

Create a Tomcat monitor

NeoLoad makes it possible to create a new Monitor either using the monitored machine creation wizard, as described in Create and configure a monitored machine, or from an existing monitored machine, as described in Create and configure a monitor.

NeoLoad displays a list of the WARs (web application resources) deployed on the configured server. It then automatically selects the most appropriate counters for each of the selected applications.

Available counters