Skip to technology filters Skip to main content
Dynatrace Hub

Extend the platform,
empower your team.

Popular searches:
Home hero bg
Tomcat (JMX)Tomcat (JMX)
Tomcat (JMX)

Tomcat (JMX)

JMX monitoring of Tomcat connection and thread pools, and web request activity.

Extension
Free trial
A connection pool entity screen.Data for thread pools and web request activity available in the process group instance Unified Analysis screen.
  • Product information
  • Release notes

Overview

Apache Tomcat is an open-source web server developed by the Apache Software Foundation (ASF) and one of the most popular servlet containers available today. It’s an incredibly lightweight, flexible and extremely stable platform to build on. The OneAgent will allow you to trace activity on and through your Tomcat applications. Using this JMX extension you'll be able to collect additional key performance data to identify issues and optimize your Tomcat configurations.

Use cases

  • Identify issues with connection pool utilization and activity that could impact your web applications
  • Optimize your thread and connection pool configurations to increase efficiency while not impacting your application clients
  • Monitor your web application by viewing web request activity and performance data from Tomcat's perspective in context with other key metrics

Get started

This extension collects connection pool, thread pool, and web request activity and performance for Tomcat.

Prerequisites:

  • Tomcat process that runs on a supported Linux or Windows operating system.
  • OneAgent version 1.273+
  • Dynatrace version 1.273+

To get metric insight:

  1. Install OneAgent on the virtual machine or server of your Tomcat process.
  2. Activate the OneAgent feature Java Metric Extensions 2.0 (JMX).
    • When enabling for the first time each process will need to be restarted for this feature to become active
  3. Select in this same tile Add to environment to configure the extension

Details

Metrics are organized into feature sets you can enable/disable as desired.

Additionally, there is one calculated metric included:

  • Average request processing time (func:tomcat.processingTimePerRequest): Request processing time divided by request count

Compatibility information

The following Mbeans are used for collecting data. If you not seeing metrics check that the following Mbeans exist using the tool of your choice (e.g. JConsole).

  • Connection pools:
    • Catalina:type=DataSource,name=*,class=*,context=*,host=* or Catalina:type=DataSource,name=*,class=*
  • Thread pools:
    • Catalina:type=ThreadPool,name=*
  • Web request activity
    • Catalina:type=GlobalRequestProcessor,name=*

For connection pools specifically, this extension only supports the standard Tomcat connection pooling implementation with Mbeans under the Catalina domain. It is not uncommon for a different pooling implementation to be used and in these cases you may need to create your own custom JMX extension to collect similar data (if it is available via JMX). You should consult your implementation's documentation or review available Mbeans in your Tomcat process to get started with this.

Licensing

There is no charge for obtaining the extension, only for the data that the extension ingests. The details of license consumption will depend on which licensing model you are using. This will either be Dynatrace classic licensing or the Dynatrace Platform Subscription (DPS) model.

Metrics

License consumption is based on the number of metric data points ingested. The following formula will provide approximate annual data points ingested assuming all feature sets are enabled.

((16 * <number_of_connection_pools) + (5 * <number_of_web_apps>) + (3 * <number_of_thread_pools>)) * 60 minutes * 24 hours * 365 days data points per year

Classic licensing

In the classic licensing model, metric ingestion will consume Davis Data Units (DDUs) at the rate of .001 DDUs per metric data point.

Multiply the above formula for annual data points by .001 to estimate annual DDU usage.

Dynatrace
More Information
By Dynatrace
Dynatrace support center
Subscribe to new releases
Copy to clipboard

Extension content

Content typeNumber of items included
screen injections
3
screen metric tables
3
screen properties
1
screen chart groups
2
generic relationship
1
metric metadata
32
dashboards
1
metric query
8
screen layout
1
list screen layout
1
generic type
1
screen entities lists
1

Feature sets

Below is a complete list of the feature sets provided in this version. To ensure a good fit for your needs, individual feature sets can be activated and deactivated by your administrator during configuration.

Feature setsNumber of metrics included
Metric nameMetric keyDescriptionUnit
Active connectionstomcat.connectionPool.activeConnectionsCurrently used connectionsCount
Created connectionstomcat.connectionPool.createdConnectionsNumber of connections createdCount
Idle connectionstomcat.connectionPool.idleConnectionsNumber of open but unused connectionsCount
Waiting connectionstomcat.connectionPool.numWaitersCurrently waiting connectionsCount
Abandoned connectionstomcat.connectionPool.removeAbandonedNumber of connections that have not been properly releasedCount
Abandoned connection timeouttomcat.connectionPool.removeAbandonedTimeoutTimeout before an abandoned connection can be removedSecond
Waiting connection requeststomcat.connectionPool.waitCountNumber of connection requests currently waitingCount
Metric nameMetric keyDescriptionUnit
Bytes recievedtomcat.bytesReceived.countBytes recievedByte
Bytes senttomcat.bytesSent.countBytes sentByte
Request counttomcat.requestCount.countRequest countCount
Error counttomcat.errorCount.countError countCount
Request processing timetomcat.processingTime.countRequest processing timeMilliSecond
Metric nameMetric keyDescriptionUnit
Borrowed connectionstomcat.connectionPool.borrowedConnections-Count
Reconnected connectionstomcat.connectionPool.reconnectedConnections-Count
Released connectionstomcat.connectionPool.releasedConnections-Count
Returned connectionstomcat.connectionPool.returnedConnections-Count
Metric nameMetric keyDescriptionUnit
Max total connectionstomcat.connectionPool.maxTotalMaximum total amount of connectionsCount
Max active connectionstomcat.connectionPool.maxActiveMaximum amount of active connections allowed concurrentlyCount
Max idle connectionstomcat.connectionPool.maxIdleThe maximum number of connections that should be kept in the pool at all timesCount
Max wait timetomcat.connectionPool.maxWaitThe maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exceptionMillisecond
Minimum idletomcat.connectionPool.minIdleThe minimum number of established connections that should be kept in the pool at all timesCount
Metric nameMetric keyDescriptionUnit
Current thread counttomcat.threadPool.currentThreadCountCurrent thread countCount
Current threads busytomcat.threadPool.currentThreadsBusyCurrent threads busyCount
Max threads allowedtomcat.threadPool.maxThreadsMax threads allowedCount

Full version history

To have more information on how to install the downloaded package, please follow the instructions on this page.
ReleaseDate

Full version history

Update that makes this a more general Tomcat extension

  • Includes feature sets and changes for App Server metrics
    • Thread pools
    • Web requests

Full version history

  • Added metrics:
    • tomcat.connectionPool.numWaiters
    • tomcat.connectionPool.maxTotal
    • func:tomcat.connectionPool.currentUsage
  • Added new charts in UA screens for these metrics

Full version history

  • Fix a bug which prevented the extension from being imported in some environments.

Full version history

  • Includes support for 'global' data source resources (i.e. Mbeans with no 'host' or 'context' attribute)

Full version history

Solved a bug where the name dimension was not being ingested correctly, which prevented custom topology entities from being created.

Full version history

EF1 to EF2 Tomcat Connection Pool conversion:

  • Add Tomcat connection pool entity and its relation to the tomcat process
  • Custom unified analysis screen for Tomcat connection pools
  • Metric chart injection into Process Group Instance screen
  • Overview dashboard for Tomcat connection pools
  • Add feature sets to control included metrics
  • New metric func:tomcat.connectionPool.availableConnections that shows the current available connections
  • All metrics have changed key from the EF1 version. The prefix builtin:tech.tomcat has been removed. This is a breaking change for any configuration you had which used the metric key, such as metric events.
Dynatrace Hub
Hub HomeGet data into DynatraceBuild your own app
Log Management and AnalyticsKubernetesAI and LLM ObservabilityInfrastructure ObservabilitySoftware DeliveryApplication ObservabilityApplication SecurityDigital ExperienceBusiness Analytics
Filter
Type
Built and maintained by
Deployment model
SaaS
  • SaaS
  • Managed
Partner FinderBecome a partnerDynatrace Developer

All

0 Results filtered by:

Reach out to certified Dynatrace partners to solve your unique use-case

Moviri logo

Moviri

Certified individuals: 14
Advanced Sales Partner
Alanata logo

Alanata

Certified individuals: 30Endorsements: Services Endorsed Partner
Premier Sales Partner
Spica Solutions logo

Spica Solutions

Certified individuals: 30Endorsements: Services Endorsed Partner
Authorized Sales Partner
Matrix logo

Matrix

Certified individuals: 14
Premier Sales Partner
Omnilogy logo

Omnilogy

Certified individuals: 38Endorsements: Services Endorsed Partner
Premier Sales Partner
AHEAD logo

AHEAD

Certified individuals: 8
Premier Sales Partner
Arctiq logo

Arctiq

Certified individuals: 19
Authorized Sales Partner
Eviden logo

Eviden

Certified individuals: 79Endorsements: Services Endorsed Partner
Premier Sales Partner
Phenisys logo

Phenisys

Certified individuals: 32Endorsements: Services Endorsed Partner
Premier Sales Partner
Accenture logo

Accenture

Certified individuals: 156
Premier Sales Partner
AsiaPac Technology Pte Ltd logo

AsiaPac Technology Pte Ltd

Certified individuals: 3
Advanced Sales Partner
AskMe Solutions & Consultants Co Ltd logo

AskMe Solutions & Consultants Co Ltd

Certified individuals: 30Endorsements: Services Endorsed Partner
Authorized Sales Partner
Asper Technologia logo

Asper Technologia

Certified individuals: 20
Advanced Sales Partner
Avocado logo

Avocado

Certified individuals: 9
Authorized Sales Partner
avodaq AG logo

avodaq AG

Certified individuals: 31Endorsements: Services Endorsed Partner
Advanced Sales Partner
Carahsoft logo

Carahsoft

Certified individuals: 21
Authorized Sales Partner
Deutsche Telekom MMS gmbh logo

Deutsche Telekom MMS gmbh

Certified individuals: 18Endorsements: Services Endorsed Partner
Premier Sales Partner
DPM logo

DPM

Certified individuals: 30Endorsements: Services Endorsed Partner, SaaS Upgrade specialization
Premier Sales Partner
DXC logo

DXC

Certified individuals: 341
Premier Sales Partner
Evolane logo

Evolane

Certified individuals: 29
Authorized Sales Partner
Galaxy Software Services Corporation (GSS) logo

Galaxy Software Services Corporation (GSS)

Certified individuals: 9
Advanced Sales Partner
ISATEC logo

ISATEC

Certified individuals: 20Endorsements: Services Endorsed Partner
Premier Sales Partner
Konsalt logo

Konsalt

Certified individuals: 13
Authorized Sales Partner
Kyndryl logo

Kyndryl

Certified individuals: 202
Premier Sales Partner
PRAGMA INFORMATICA SA logo

PRAGMA INFORMATICA SA

Certified individuals: 10
Authorized Sales Partner
PT. Mitra Integrasi Informatika logo

PT. Mitra Integrasi Informatika

Certified individuals: 24
Premier Sales Partner
Scala logo

Scala

Certified individuals: 7
Advanced Sales Partner
Spindox logo

Spindox

Certified individuals: 11
Authorized Sales Partner
TestCrew logo

TestCrew

Certified individuals: 30
Authorized Sales Partner
TI724 logo

TI724

Certified individuals: 11
Authorized Sales Partner
Tsoft logo

Tsoft

Certified individuals: 31
Authorized Sales Partner
VS Data logo

VS Data

Certified individuals: 12
Authorized Sales Partner
Your Compass logo

Your Compass

Certified individuals: 68Endorsements: Services Endorsed Partner, CloudOps specialization
Premier Sales Partner