Skip to main content

Apache Tomcat

Overview

Apache Tomcat, the widely used open-source application server, seamlessly integrates with Motadata AIOps to provide comprehensive monitoring capabilities. With this integration, organizations gain real-time visibility into the performance and health of their Apache Tomcat servers. Monitor critical server metrics such as request rates, response times, and JVM (Java Virtual Machine) statistics to ensure optimal application performance.

Supported Versions

Versions
6
7
8
8.5
9
10

Prerequisites for Apache Tomcat Integration with Motadata AIOps

  • Ensure that the Apache Tomcat port (default: 8067) is open for the Motadata AIOps server.

  • Provide the necessary credentials, including the username and password, for Motadata AIOps to connect to the Apache Tomcat server.

  • Confirm that the Apache Tomcat service is active and running on the server.

  • Confirm that the Apache Tomcat process and service are listed in the process and monitor settings of Motadata AIOps. Although these may be listed by default, ensure that the names of the service and process match the specific Apache Tomcat version that you intend to monitor.

  • In the address area of your browser, type http://[IP]:8080/manager/status, submit the address, provide the credentials, and click on the Server Status link to confirm the status of the Apache Tomcat server.

    where [IP] is the IP address of the server where Apache Tomcat is installed

  • Confirm that the Apache Tomcat server supports either HTTP or HTTPS protocol.

  • In the tomcat-users.xml file, add the following text:

    <tomcat-users>
    <role rolename="manager-gui"/>
    <role rolename="manager-jmx"/>
    <user username="[username]" password="[password]" roles="manager-gui, manager-jmx"/>
    </tomcat-users>

    Here, Replace [username] and [password] with the credentials used to access the Apache Tomcat server. These credentials will be configured in Motadata AIOps to enable access to the Tomcat server.

  • For agentless monitoring, ensure that the user has the required access for remote access to the Apache Tomcat server. For agent-based monitoring, this is not required.

By following these prerequisites, you can integrate Apache Tomcat with Motadata AIOps and ensure the smooth functioning of the monitoring process.

List of Supported KPIs

Apache Tomcat

NameDescriptionType
tomcat.cache.hitsNumber of cache hits in TomcatCount
tomcat.cache.accessesNumber of cache accesses in TomcatCount
tomcat.jsp.accessesNumber of JSP accesses in TomcatCount
tomcat.jsp.reloadsNumber of JSP reloads in TomcatCount
tomcat.jsp.unloadsNumber of JSP unloads in TomcatCount
tomcat.active.sessionsNumber of active sessions in TomcatCount
tomcat.expired.sessionsNumber of expired sessions in TomcatCount
tomcat.rejected.sessionsNumber of rejected sessions in TomcatCount
tomcat.created.sessionsNumber of created sessions in TomcatCount
tomcat.installation.dirInstallation directory of TomcatString
tomcat.versionVersion of TomcatString
tomcat.cache.hit.ratio.percentCache hit ratio percentage in TomcatCount
tomcat.non.heap.memory.used.percentNon-heap memory used percentage in TomcatCount
tomcat.connectionsNumber of connections in TomcatCount
tomcat.max.threadsMaximum number of threads in TomcatCount
tomcat.thread.pool.used.percentPercentage of used thread pool in TomcatCount
tomcat.busy.threadsNumber of busy threads in TomcatCount
tomcat.threadsNumber of threads in TomcatCount
tomcat.requests.rateRequest rate in TomcatCount
tomcat.request.latency.msRequest latency in milliseconds in TomcatCount
tomcat.request.max.latency.msMaximum request latency in TomcatCount
tomcat.errorsNumber of errors in TomcatCount
tomcat.received.bytes.rateReceived bytes rate in TomcatCount
tomcat.sent.bytes.rateSent bytes rate in TomcatCount
tomcat.non.heap.memory.used.bytesUsed non-heap memory in Tomcat (bytes)Count
tomcat.heap.memory.used.bytesUsed heap memory in Tomcat (bytes)Count
tomcat.heap.memory.used.percentPercentage of used heap memory in TomcatCount
started.time.secUptime in secondsCount
started.timeUptimeString
tomcat.thread.pool.threadsNumber of threads in Tomcat thread poolCount
tomcat.thread.pool.busy.threadsNumber of busy threads in Tomcat thread poolCount
tomcat.thread.pool.max.threadsMaximum number of threads in Tomcat thread poolCount
tomcat.thread.pool.connectionsNumber of connections in Tomcat thread poolCount
tomcat.thread.poolTomcat thread poolString
tomcat.jdbc.pool.active.connectionsNumber of active connections in Tomcat JDBC poolCount
tomcat.jdbc.pool.idle.connectionsNumber of idle connections in Tomcat JDBC poolCount
tomcat.jdbc.poolTomcat JDBC poolString
tomcat.jdbc.pool.used.percentPercentage of used connections in Tomcat JDBC poolCount