惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
D
Docker
GbyAI
GbyAI
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
小众软件
小众软件
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
B
Blog
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Monitor Tomcat metrics with Datadog
Abril Loya McCloud · 2016-06-30 · via Datadog | The Monitor blog
Abril Loya McCloud

Abril Loya McCloud

Apache Tomcat is an open source HTTP web server developed by the Apache Software Foundation that is available on both Windows and Unix-like operating systems. Tomcat is an open source implementation of several Java technologies (Servlet, JavaServer Pages, Java Expression Language, WebSocket) and is commonly used by large organizations to serve Java applications.

Tomcat is made up of Catalina (servlet), Coyote (connector), Jasper (JSP), and Cluster (load balancing and session replication). Monitoring your Tomcat web server components is crucial because poor performance can directly interfere with web application end-user experience. Datadog integrates with Apache Tomcat to collect metrics from your server and provide actionable visualizations and alerts based on real-time performance.

All your Tomcat metrics, in one place

Once you integrate Tomcat with Datadog, metrics from your server will automatically be pulled into Datadog and begin populating an out-of-the-box dashboard. These metrics fall into four main categories: general Tomcat metrics, thread pool metrics, servlet metrics, and jsp metrics.

tomcat metrics image

Tomcat performance metrics

For a general overview of Tomcat performance, you can take a look at metrics tomcat.error_count, tomcat.request_count, tomcat.max_time, and tomcat.processing_time. These metrics are less granular than servlet-specific metrics, like tomcat.servlet.processing_time and tomcat.servlet.error_count. Changes in tomcat.request_count and its corresponding metric, tomcat.processing_time, are dependent on the number of people accessing your web application. This makes them important to keep an eye on in the case of sudden peaks or valleys, which may warrant action. These two metrics also provide necessary context for the rest of your metrics, like in the case of tomcat.max_time and tomcat.error_count, which can rise when the number of requests increase.

Thread pool metrics

Thread metrics are a useful tool for keeping track of resource consumption. By comparing tomcat.threads.count and tomcat.threads.busy to your tomcat.threads.max, you can surmise how much of your predesignated thread resources you are currently consuming. Thread pool metrics, when correlated with tomcat.bytes_sent and tomcat.bytes_rcvd, afford visibility into your current web server capacity.

Catalina servlet metrics

While all of the above metrics provide valuable information, the metric arguably most telling of performance issues for your end users is tomcat.servlet.processing.time. This metric shows how much time it takes for your users to be served the web page. If there is a spike in this metric, it means that some part of your application infrastructure is taking longer than usual to process a client request. This could be caused by overloaded servers, a slow database, or even by comparatively inefficient code being deployed to the web server. In the latter case you can pinpoint problematic code changes quickly by correlating your latency metrics with code push events on your Datadog dashboards.

All of these metrics can be seen in an out-of-the-box dashboard to help you get started quickly.

Try it

If you’re a Datadog customer, integrating Tomcat with the Datadog Agent is simple. You can follow these instructions to configure the Agent to start collecting metrics from each of your Tomcat instances. You can also customize metric collection within the Agent by using the Java integration documentation found here.

If you’re not yet using Datadog, you can start monitoring Apache Tomcat along with the rest of your infrastructure in minutes by signing up for a Datadog trial.