# How to get Hung Thread Metrics using JMX Extension

**URL:** <https://community.dynatrace.com/t/how-to-get-hung-thread-metrics-using-jmx-extension/38934>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, hosts-classic\
**Created:** [March 21, 2023, 6:34pm UTC](https://community.dynatrace.com/t/how-to-get-hung-thread-metrics-using-jmx-extension/38934 "2023-03-21T18:34:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beginner](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Beginner](https://community.dynatrace.com/u/Beginner)\
**Post date:** [March 21, 2023, 6:34pm UTC](https://community.dynatrace.com/t/how-to-get-hung-thread-metrics-using-jmx-extension/38934/1 "2023-03-21T18:34:34Z")

</div>

Hi

I’m new to Dynatrace, can you please tell me how to get the Hung Thread Metrics for the Application using JMX Extension? Because I’m not able to find it, I can only see the following thread metrics in java.lang domain  
CurrentThreadCpuTime  
CurrentThreadUserTime  
DaemonThreadCount  
PeakThreadCount  
ThreadCount  
TotalStartedThreadCount

Actually, I want the hung thread metrics for the alerting process. When the Application Hung Thread Count goes above 8, then the dynatrace will trigger a mail.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [March 22, 2023, 1:22am UTC](https://community.dynatrace.com/t/how-to-get-hung-thread-metrics-using-jmx-extension/38934/2 "2023-03-22T01:22:32Z")

</div>

Hi [@Beginner](https://community.dynatrace.com/user/60959) the best description for use JMX extensions could be found [here](https://www.dynatrace.com/support/help/shortlink/jmx-extensions). After that you need to setup an alerting profile, a problem notification and a metric event to trigger the mail.
