MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to enable Apache Tomcat monitoring in Datadog Agent?

Apache Tomcat Integratoion with Datadog collects Following Tomcat metrics

  • Overall activity metrics: error count, request count, processing times, etc.
  • Thread pool metrics: thread count, number of threads busy, etc.
  • Servlet processing times

Step 1 – How to Install Open JDK 11

## Centos
$ sudo yum install java-11-openjdk-devel

## Ubunutu
$ sudo apt-get update
$ sudo apt-get install openjdk-11-jdk -y
$ apt install openjdk-11-jdk-headless -y Code language: PHP (php)

Reference

How to Download Apache Tomcat 9?

# RHEL/CENTOS
$ sudo yum install wget unzip -y

# Ubuntu
$ sudo apt-get install wget unzip -y

$ sudo -s
$ cd /opt/
$ wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.73/bin/apache-tomcat-9.0.73.zip
$ unzip apache-tomcat-9.0.73.zip
$ cd apache-tomcat-9.0.73
$ cd bin
$ chmod -R 755 .
$ ls

$ ./shutdown.sh
$ ./startup.sh
Code language: PHP (php)
Terminal running ./startup.sh in the Tomcat bin folder with the Tomcat started message circled

Reference

  • https://tomcat.apache.org/download-80.cgi

How to install datadog agent in centos 7?

How to enable JMX Remote in Tomcat 8 to Monitor & Administer?

$ vi /opt/apache-tomcat-9.0.73/bin/catalina.sh

CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9012 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

$ ./shutdown.sh
$ ./startup.sh

FOR WINDOWS setenv.bat
--------------------------
set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9012 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"Code language: JavaScript (javascript)
Explanation of JMX remote options for port, SSL and authentication before starting Tomcat
Catalina.sh edited with CATALINA_OPTS enabling JMX remote on port 9012, SSL and authentication off

Reference

  • https://tomcat.apache.org/tomcat-8.0-doc/monitoring.html#Enabling_JMX_Remote
Terminal: ./startup.sh shows Tomcat started with JMX options, and ps grep 9012 confirms the JMX port

How to configure and enable Tomcat intergration in Datadog agent?

$ cd /etc/datadog-agent/conf.d/tomcat.d/
$ cp conf.yaml.example conf.yaml
$ datadog-agent configcheck
$ systemctl restart datadog-agent
$ systemctl status datadog-agent
$ datadog-agent config
Datadog-agent configcheck output showing the tomcat check loaded with thread, bytes and error metrics
Datadog Integrations page with Tomcat Integration listed as installed beside Docker, Java and Kubernetes
Datadog Infrastructure host list showing the host up with the tomcat app tag highlighted
Datadog host details panel showing tomcat in Apps Running with graphs for threads, bytes and errors
Datadog Metrics Explorer listing tomcat metrics such as tomcat.max_time and tomcat.threads.busy

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

How to setup Datadog APM for Java application running with Tomcat

SOURCE FOR APM – https://docs.datadoghq.com/tracing/trace_collection/?tab=containers This note is applicable for only Host Based APM. Step 1 – Install Datadog Agent in Centos or Ubuntu or Windows Step…

Read More

Datadog Tutorials: Tag Specifications

In a Datadog Agent log collection config, the tags field adds key:value tags to every log line the Agent collects from a source. You can then filter,…

Read More

Datadog Demo: Introduction Video

Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More

How to Install Datadog CLI on macOS, Windows, and Linux: Complete Step-by-Step Guide

SEO Title: How to Install Datadog CLI on Mac, Windows & Linux – Complete 2026 Tutorial Meta Description: Learn how to install Datadog Pup CLI and Datadog…

Read More

Tomcat 7.0.6 in Context: What the First Stable Tomcat 7 Release Changed

Apache Tomcat 7.0.6 was announced as the first stable release in the Tomcat 7 branch, bringing Servlet 3.0-era capabilities into mainstream use. This revised guide explains the key changes, their operational impact, and practical steps for teams still touching legacy Tomcat 7 workloads.

Read More

Ant build.xml for WAR Packaging and Tomcat Deployment (Annotated Reference)

This guide turns a legacy Ant WAR build sample into a practical reference you can reuse. You will learn the target flow, required layout, runnable commands, and common pitfalls before using it in CI/CD.

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Sujan
Sujan
3 years ago

How datadog monitors a Tomcat instance that it can try to restart it when it detects that is non-responsive

1
0
Would love your thoughts, please comment.x
()
x