DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Overhead Added by Garbage Collection Logging
  • Spring Boot Pet Clinic App: A Performance Study
  • How to Activate New User Accounts by Email
  • 13-Step Guide to Performance Testing in Kubernetes

Trending

  • Performance Optimization Techniques for Snowflake on AWS
  • Fixing Common Oracle Database Problems
  • Teradata Performance and Skew Prevention Tips
  • Scaling Mobile App Performance: How We Cut Screen Load Time From 8s to 2s
  1. DZone
  2. Coding
  3. Frameworks
  4. Overhead Added by Collecting Thread Dumps

Overhead Added by Collecting Thread Dumps

We were curious to learn the overhead of capturing thread dump on a periodic basis. Thus we set out to conduct the below case study.

By 
Ram Lakshmanan user avatar
Ram Lakshmanan
DZone Core CORE ·
Sep. 04, 21 · Analysis
Likes (1)
Comment
Save
Tweet
Share
6.9K Views

Join the DZone community and get the full member experience.

Join For Free

Overhead Added by Collecting Thread Dumps

A thread dump is a snapshot of all the threads running in a Java process. It’s a vital artifact to troubleshoot various production problems such as CPU spikes, unresponsiveness in the application, poor response time, hung threads, high memory consumption. Thus to facilitate troubleshooting, we have seen enterprises capture thread dumps on a periodic basis (every 5 minutes or 2 minutes). So we were curious to learn the overhead of capturing thread dump on a periodic basis. Thus we set out to conduct the below case study.

Environment

For our study, we chose to use the open-source Spring Boot Pet Clinic application. Pet Clinic is a poster child application that was developed to demonstrate the Spring Boot framework features. 

We ran this application in OpenJDK 11. We deployed this application on the Amazon AWS t2.medium EC2 instance which has 16GB RAM and 2 CPUs. The test was orchestrated using the Apache JMeter stress testing tool. We used AWS Cloudwatch to measure the CPU, Memory utilization. In nutshell here are the tools/technologies, we used to conduct this case study:

  • OpenJDK 11
  • AWS EC2
  • AWS Cloudwatch
  • Apache JMeter

Test Scenario

In this environment, we conducted 3 tests:

  1. Baseline Test — In this scenario, we ran the pet clinic application without capture thread dumps using the JMeter tool for 20 minutes with 200 concurrent users.
  2. Thread dumps every 5 minutes Test — In this scenario, we ran the pet clinic application using the same JMeter script for 20 minutes with 200 concurrent users. However, we captured thread dump from a pet clinic application every 5 minutes.
  3. Thread dumps every 2 minutes Test — In this scenario, we ran the pet clinic application using the same JMeter script for 20 minutes with 200 concurrent users. However, we captured thread dump from a pet clinic application every 2 minutes.

Note: If you don’t know how to capture thread dump, see 8 Options for Capturing Thread Dumps for more details.

Test Results

We captured average CPU and memory utilization from the AWS Cloudwatch and average response time and throughput from the JMeter tool. Data collected from all the test scenarios are summarized in the below table.

Data collected Baseline test Every 5 minutes test Every 2 minutes test
Avg CPU Usage 8.35% 10.40% 7.92%
Avg Memory Usage 20.80% 19.90% 19.60%
Avg Response Time 3901 ms 3888 ms 3770 ms
Avg Throughput 24.4/sec 25.8/sec 24.8/sec

As you can see there is no noticeable difference in the CPU and Memory consumption. Similarly, there is no noticeable difference in the average response and transaction throughput. 

Conclusion

Thus based on our study we can conclude that there is no noticeable overhead in capturing thread dumps on 5 minutes or 2 minutes intervals.

Dump (program) application Overhead (computing) Spring Framework Testing

Opinions expressed by DZone contributors are their own.

Related

  • Overhead Added by Garbage Collection Logging
  • Spring Boot Pet Clinic App: A Performance Study
  • How to Activate New User Accounts by Email
  • 13-Step Guide to Performance Testing in Kubernetes

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!