Tomcat Monitoring Tools: Key Metrics, JMX Setup and 6 APM Platforms Compared
Advertisement
Tomcat monitoring comes down to three layers: the JVM underneath, the Tomcat connectors and thread pools in the middle, and the web applications on top. A good tool watches all three and ties a slow page back to a saturated thread pool or a long garbage collection pause.
Teams that run Tomcat behind a load balancer, an API gateway or a service mesh also need request-level traces, because an error that reaches the user often starts two hops away. This guide covers what to measure, how Tomcat exposes it, and six platforms from the Application Performance Management category that can collect it.
| Tool | Best fit | Deployment (per SaaSPodium) | Pricing model |
|---|---|---|---|
| ManageEngine Applications Manager | Mixed server estates that want agentless Tomcat checks | Cloud, SaaS, Web | Paid |
| Cisco AppDynamics | Business-transaction tracing for large Java estates | Cloud, SaaS, Web | Paid |
| Datadog APM | Cloud-native teams that want metrics, traces and logs together | Cloud, SaaS, Web | Paid |
| Dynatrace | Automatic discovery across hosts, JVMs and services | Cloud, SaaS, Web | Paid |
| New Relic | Teams that want a free entry tier for JVM telemetry | Cloud, SaaS, Web | Freemium |
| Elastic APM | Teams already running the Elastic Stack | Cloud, SaaS, Web | Freemium |
What should you monitor on an Apache Tomcat server?
Monitor heap and non-heap memory, garbage collection time, thread pool usage, request throughput, response time, error rates, active sessions and datasource connection pools. Together these show whether Tomcat is healthy, saturated or leaking resources before users notice slow pages.
- JVM memory and GC: a heap that never returns to its baseline after collection is the classic sign of a memory leak in a web application.
- Thread pools: compare busy threads with the connector's configured maximum. The HTTP connector's
maxThreadssetting defaults to 200 in current Tomcat releases, as documented on the Apache Tomcat HTTP connector reference. - Requests: requests per second, average and maximum processing time, and the share of 5xx responses.
- Sessions and pools: active session counts and JDBC pool wait times, which often explain latency spikes under load.
How does Tomcat expose its metrics?
Tomcat publishes its internals as JMX MBeans, and the project documents how to enable remote JMX, use the JMX proxy servlet and read the Manager status page. Most monitoring tools simply connect to this interface or load a Java agent into the same JVM.
The official Apache Tomcat monitoring guide explains the JMX options and the security settings that must accompany them. Treat JMX as an administrative interface: bind it to a private network, require authentication and use TLS, in line with the access-control guidance in OWASP's Application Security Verification Standard.
Agent-based versus agentless collection
Agentless tools poll JMX remotely, which is simple to deploy and gives solid infrastructure metrics. Agent-based tools run inside the JVM, add distributed tracing and code-level visibility, and cost slightly more overhead and change control. Many teams use both: agentless checks for every Tomcat node and agents on the revenue-critical services.
Which Tomcat monitoring tools are worth shortlisting?
Six established platforms cover most Tomcat environments. They differ mainly in how deeply they trace transactions, how they price data volume and whether they fit an existing observability stack. Use the SaaSPodium profiles to check deployment options and pricing models before a trial.
1. ManageEngine Applications Manager
Applications Manager is positioned for deep dives into web application performance and fits mixed estates that run Tomcat beside databases, queues and Windows services. Read the vendor page for supported application servers.
- Architecture: typically polls servers remotely, so no code changes to the web applications.
- Fit: operations teams that want one console for servers, databases and applications.
- Pricing model: paid, with edition and monitor-count based licensing to confirm with the vendor.
2. Cisco AppDynamics
AppDynamics focuses on business transactions, mapping a user action through each service it touches. For Tomcat it uses a Java agent, which suits large enterprises that need to relate slow code paths to revenue-impacting flows.
- Architecture: in-JVM agent plus a controller, available as SaaS or on-premises depending on contract.
- Fit: complex, multi-tier Java applications.
- Pricing model: paid; get a quote based on agents and capabilities.
3. Datadog APM
Datadog APM combines traces, infrastructure metrics and logs in one SaaS platform. Tomcat can be monitored through JMX-based checks and the Java tracer, so a single dashboard shows pool saturation next to the slow endpoint it affects.
- Architecture: host agent plus Java tracing library, SaaS back end.
- Fit: cloud-native teams on containers or Kubernetes.
- Pricing model: paid, billed by usage dimensions such as hosts and ingested data.
4. Dynatrace
Dynatrace emphasizes automatic discovery. Its agent finds Tomcat processes, maps their dependencies and surfaces anomalies with minimal configuration, which helps lean teams that cannot hand-build every dashboard.
- Architecture: one agent per host injects into supported runtimes.
- Fit: large dynamic estates where topology changes daily.
- Pricing model: paid, consumption based.
5. New Relic
New Relic offers a Java agent that reports JVM and transaction data, and SaaSPodium lists it as freemium, so a pilot on a few Tomcat nodes costs little. It suits teams that want to prove value before committing budget.
- Architecture: Java agent sending data to a SaaS platform.
- Fit: small and mid-size teams starting with APM.
- Pricing model: freemium, with paid tiers for data volume and users.
6. Elastic APM
Elastic APM is a natural choice when logs already live in Elasticsearch. A Java agent sends traces to the Elastic Stack, where they can be searched beside application and access logs.
- Architecture: Java agent, APM server and Elasticsearch, self-managed or hosted.
- Fit: teams that want to own their data and tune retention.
- Pricing model: freemium, with paid features and hosted plans.
How do you choose between them?
Start from your constraint: a small team needs fast setup, a regulated firm needs data residency control, and a platform team needs traces across many services. Run a two-week pilot on one production-like Tomcat cluster and score each tool on the same checklist.
- Coverage: does it capture JVM, connector, session and datasource metrics without custom scripting?
- Overhead: measure latency and CPU before and after enabling an agent.
- Alert quality: test whether thread pool saturation raises a precise alert instead of noise.
- Integration: check connectors for your ITSM, chat and CI/CD tools, plus SSO and audit logging.
- Cost: estimate data volume at peak, not at average.
For deeper JVM tuning, see our guide to JVM monitoring tools, and for service-level checks read REST API monitoring tools.
How do you set up Tomcat monitoring step by step?
Enable JMX securely, baseline normal behavior, add alerts on saturation and error rate, and then add tracing. Following this order gives quick wins first and avoids paging the team on thresholds nobody has validated.
- Enable authenticated JMX or install the vendor's Java agent on a staging node.
- Record a week of baseline: heap after GC, busy threads, p95 response time.
- Alert when busy threads exceed 80 percent of
maxThreadsfor several minutes. - Alert on heap growth that does not recover after full collections.
- Add synthetic checks for login and checkout so you see what users see.
- Review dashboards after every release and retire noisy alerts.
Busy threads is the current count of threads handling requests, and maxThreads is the connector limit. Sustained values above roughly 80 percent mean new requests will soon queue, which users experience as latency.
Frequently Asked Questions
Which Tomcat metrics matter most in production?
Watch heap after garbage collection, busy threads against maxThreads, request processing time, 5xx error rate and active sessions. These five signals catch most outages, leaks and capacity problems before customers report them.
Do I need an agent to monitor Tomcat?
No. Tomcat exposes JMX, so agentless tools can collect core metrics remotely. An agent becomes worthwhile when you need distributed tracing, code-level detail or automatic dependency maps, at the cost of a small runtime overhead.
How should I choose a Tomcat monitoring tool for a small team?
Pick a tool with fast setup and a free or low-cost entry tier, run a pilot on one cluster, and compare alert quality and overhead. Check pricing against peak data volume and confirm SSO and audit logging before rollout.
Advertisement