Skip to content

Apache Tomcat

Monitor Apache Tomcat 6.x and above via JMX metric collection.

3 min read Updated SS

Supported Components and Versions#

LAYER COMPONENT VERSION
App Server Apache Tomcat 6.x and above

Monitoring Strategies for Components#

Metrics’ collection is done using JMX. Once JMX is enabled, HEAL’s Component Agent will source metrics from the JVM via the JMX port and push the metrics to HEAL’s Ingestion API layer.

For transactions, Intrusive Monitoring module will be loaded as a java agent JVM argument on startup. This agent will push Telemetry data (traces) to HEAL’s Ingestion API layer.

Note: The steps for enabling JMX and setting JVM arguments are different for different App Servers. For details, refer to HEAL’s installation guide.

KPIs collected#

Component Name kpi_name kpi_identifier KpiDescription Units
Apache Tomcat Request Count requestCount Request count on all the request processors running on the Apache Tomcat container since last collection. Count
Apache Tomcat Processing Time processingTime Processing time (in milliseconds) since last collection. Milliseconds
Apache Tomcat Bytes Received bytesReceived Bytes received by all the request processors running on the Apache Tomcat container since last collection. Bytes
Apache Tomcat Bytes Sent bytesSent Bytes sent by all the request processors running on the Apache Tomcat container since last collection. Bytes
Apache Tomcat Current Threads Busy currentThreadsBusy Current Number of busy threads on the Apache Tomcat container. Count
Apache Tomcat Active Sessions activeSessions the number of active user sessions in the system at a given time. Count
Apache Tomcat JSP Access jspCount Number of times JSPs were accessed on all the applications last collection. Count
Apache Tomcat JSP Reload jspReloadCount Number of times JSPs were reloaded on all the applications last collection. Count
Apache Tomcat Process CPU Load ProcessCpuLoad The percentage of CPU usage by the process running the server. Percentage
Apache Tomcat Total Started Threads TotalStartedThreadCount Total number of threads that have been started since the application started. Count
Apache Tomcat Total Live Threads ThreadCount The total number of threads that are running. A thread automatically expires once it completes its execution. Count
Apache Tomcat Total Daemon Threads DaemonThreadCount The total number of threads available in a process. Daemon threads include started and alive threads too. Count
Apache Tomcat TotalPeakThreads PeakThreadCount Total number of currently running threads Count
Apache Tomcat Heap Memory Usage HeapMemoryUsage-used Total amount of heap memory being used by the application. Bytes
Apache Tomcat NonHeap Memory Usage NonHeapMemoryUsage-used Current Non-heap memory usage (in MB) of the server. Bytes
Apache Tomcat Communication Status COMM_STATUS The status of communication between nodes in a cluster. Count
Apache Tomcat Modified Status MODIFIED_STATUS File modified status in last interval Count
Apache Tomcat Exists EXISTS indicates whether a particular object exists or not. Count
Apache Tomcat Pattern Found PATTERN_FOUND Pattern availability in the given file Count
Apache Tomcat Process Running PROCESS_RUNNING The number of processes currently running in the system. Count
Apache Tomcat Cluster Status CLUSTER_STATUS the current state of the cluster (e.g. up down syncing). Count
Apache Tomcat Established Status ESTABLISHED_STATUS It indicates the current status of established connections. Count
Apache Tomcat Listen Status LISTEN_STATUS Listen status of a port Count
Apache Tomcat Key Value KEY_VALUE Modification status of the Key Value pairs in the configured file Text
Apache Tomcat File Watch FILE_WATCH Monitors file changes in a directory or a specific file. Text
Apache Tomcat Established ESTABLISHED Number of established connections for a given port Count
Apache Tomcat Close Wait CLOSE_WAIT Number of close_wait connections for a given port Count
Apache Tomcat Sync Sent SYN_SENT Number of sync sent connections for a given port Count
Apache Tomcat Time Wait TIME_WAIT Number of time_wait connections for a given port Count
Apache Tomcat Fin Wait FIN_WAIT Number of fin_wait connections for a given port Count
Apache Tomcat Sync Receive SYN_RCVD Number of synchronously received messages. Count
Apache Tomcat Ping Status PING_STATUS IP availability based on ping Count
Apache Tomcat URL Status URL_STATUS The HTTP status code for a specific URL indicating if its reachable or not. Count
Apache Tomcat Collection Count CollectionCount Total number of collections that have occurred. Count
Apache Tomcat Collection Time CollectionTime Approximate accumulated collection elapsed time in milliseconds. Milliseconds
Apache Tomcat Component Properties Component_Properties The properties of a component such as its version and configuration. Text
Apache Tomcat Waiting Threads JVM_WAITING_THREADS the number of threads that are waiting for a resource. Count
Apache Tomcat Timed Waiting Threads JVM_TIMED_WAITING_THREADS The number of threads in the system that are in a waiting state. Count
Apache Tomcat Runnable Threads JVM_RUNNABLE_THREADS The number of threads that are currently running. Count
Apache Tomcat Terminated Threads JVM_TERMINATED_THREADS The total number of threads that have been terminated. Count
Apache Tomcat New Threads JVM_NEW_THREADS Number of new threads created. Count
Apache Tomcat Blocked Threads JVM_BLOCKED_THREADS Number of threads currently blocked waiting for a lock. Count
Apache Tomcat Hung Threads JVM_HUNG_THREADS refers to the threads that have become unresponsive and have stopped functioning. Count
Apache Tomcat Last Ack LAST_ACK Total number of TCP connections in the LAST_ACK state Count
Apache Tomcat Certificate Expiry Days CERTIFICATE_EXPIRY_DAYS Indicates the number of days remaining until the server certificate expires. Count
Apache Tomcat Max Heap Memory Bytes HeapMemoryUsage-max Total amount of heap memory allocated to JVM Bytes
Apache Tomcat Heap Memory Used Percentage heap_used_percentage heap used memory percentage of total allocated heap memory Percentage