# Hung Threads and connection pool for .NET applications

**URL:** <https://community.dynatrace.com/t/hung-threads-and-connection-pool-for-net-applications/11671>\
**Category:** Dashboarding\
**Tags:** data-explorer, dotnet\
**Created:** [April 9, 2018, 3:42pm UTC](https://community.dynatrace.com/t/hung-threads-and-connection-pool-for-net-applications/11671 "2018-04-09T15:42:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarun\_agastya1](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tarun\_agastya1](https://community.dynatrace.com/u/tarun_agastya1)\
**Post date:** [April 9, 2018, 3:42pm UTC](https://community.dynatrace.com/t/hung-threads-and-connection-pool-for-net-applications/11671/1 "2018-04-09T15:42:34Z")

</div>

Hi,

I would like to chart hung threads and connection pool size for .NET applications in dynatrace.Can someone help me with this.

Thanks,

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [April 9, 2018, 6:47pm UTC](https://community.dynatrace.com/t/hung-threads-and-connection-pool-for-net-applications/11671/2 "2018-04-09T18:47:49Z")

</div>

What metrics are available now will be available if you browse through the options under “create custom chart” or by drilling into the details for a given process:

 ![16397-netthreads.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/f/2fba5ecd4ff6330dff662773add9c4c1e512496b.png)

 ![16398-netthread2.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5cb54a862fdf0f96101240fce165fe68202bdff7.png)

At least in our demo I don’t see anything for hung threads.

James

---

<div class="post-metadata">

**Author:** ![Christoph\_Neum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christoph_neum/32/21662_2.png) [@Christoph\_Neum](https://community.dynatrace.com/u/Christoph_Neum)\
**Post date:** [April 5, 2019, 1:26pm UTC](https://community.dynatrace.com/t/hung-threads-and-connection-pool-for-net-applications/11671/3 "2019-04-05T13:26:36Z")

</div>

With OneAgent 1.165, there are new .NET Thread Pool metrics, that would show you a starvation of threads in the thread pool. .NET Core 2.0+ only.

 ![20241-2019-04-05-14-50-03-process-d-igd38650-dynatrace.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/4c032251d4cc9277048ec62640a858dee19ab888.png)

---

<div class="post-metadata">

**Author:** ![anders\_lundin3](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/anders_lundin3/32/39823_2.png) [@anders\_lundin3](https://community.dynatrace.com/u/anders_lundin3)\
**Post date:** [April 24, 2019, 7:10pm UTC](https://community.dynatrace.com/t/hung-threads-and-connection-pool-for-net-applications/11671/4 "2019-04-24T19:10:07Z")

</div>

[@Christoph N.](https://answers.dynatrace.com/users/11219/view.html)I got a request from a prospect in a PoC for a rather big deal if we can also show the thread contention rate? (apparently the competing product can show it and they are very into this particular metric)

---

<div class="post-metadata">

**Author:** ![knl6njb](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@knl6njb](https://community.dynatrace.com/u/knl6njb)\
**Post date:** [March 20, 2024, 4:32pm UTC](https://community.dynatrace.com/t/hung-threads-and-connection-pool-for-net-applications/11671/5 "2024-03-20T16:32:34Z")

</div>

I am running a .Net 6 app and we have min/max threadpool settings as 100/250. our graph in dynatrace shows a fraction of an active worker thread usually. Why is that?

 ![Screenshot 2024-03-20 123142.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/e/b/eb9c6375a4880583ba44f8f7b72ade5faef6898d.jpeg)
