# I can't find a way to get the Tomcat threads to show up on my Tomcat processes - any thoughts?

**URL:** <https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763>\
**Category:** Real User Monitoring\
**Tags:** application-monitoring, apache\
**Created:** [December 17, 2019, 1:22pm UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763 "2019-12-17T13:22:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![soconnell](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@soconnell](https://community.dynatrace.com/u/soconnell)\
**Post date:** [December 17, 2019, 1:22pm UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763/1 "2019-12-17T13:22:46Z")

</div>

Hi,

So i’ve been trying to get the Tomcat threads to show up under my ‘Further details’ on my processes which are Tomcat in my environment. So far i have been unsuccessful. It’s weird because for the Spring apps, it shows up no problem.

I do report full JMX stats and see those on the Process, so clearly i can get what i need, I’m wondering if i just need a further configuration. I tried making custom metrics but that was shaky at best and i never really got quite what i needed, and in speaking with Support the indications is should see what i need by default, yet i do not.

My suspicion is that the way we have utilized jakarta-tomcat is doing something funky with Dynatrace and causing those stats to not report properly, despite us having that info in \*ewRelic. Anyone who could suggest something, it would be greatly appreciated. I’ve run out of ideas and paths to investigate.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [December 17, 2019, 1:51pm UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763/2 "2019-12-17T13:51:05Z")

</div>

So you say that you can create JMX plugin that will fetch those metrics for you? I’ve seen multiple times that some thread pools had wrong data scale (for example values was not 100 but 1 when it should be 100) but I’ve never seen situation where thread-pools are missing at all.

Sebastian

---

<div class="post-metadata">

**Author:** ![soconnell](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@soconnell](https://community.dynatrace.com/u/soconnell)\
**Post date:** [December 17, 2019, 1:54pm UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763/3 "2019-12-17T13:54:39Z")

</div>

yeah so i mad a plugin and you are correct, the scale is all wrong (i see 2.0 or 1.5 but on the Tomcat Process in the box i know it has something like 172) so i gave up on that.

It’s really weird because i DO see Tomcat threads reporting on my Spring apps like i would expect (see screenshot) which makes me believe it’s config

 ![22943-threads.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/e/e92aaae832ba00855e47c0c296391d5da7d4fca6.jpeg)

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [December 17, 2019, 2:09pm UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763/4 "2019-12-17T14:09:14Z")

</div>

I think this may need assistance someone from stuff or support ticket. In general on process tab you see total amount of threads started by process, here you have internal thread pool related to technology.

Sebastian

---

<div class="post-metadata">

**Author:** ![soconnell](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@soconnell](https://community.dynatrace.com/u/soconnell)\
**Post date:** [December 17, 2019, 3:49pm UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763/5 "2019-12-17T15:49:47Z")

</div>

thanks, i figured it would. got a ticket open with them.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 19, 2019, 8:46am UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763/6 "2019-12-19T08:46:10Z")

</div>

We do get threads counts in the process details for Tomcats (with recent OneAgents). I believe this is something wrong happening in your environment.

Also a significant improvement regarding threads in Java came with 175 (Oneagent) / 176 (Cluster) - Continuous thread analysis. But this is more or less a debug functionality, but very useful for troubleshooting the applications.

---

<div class="post-metadata">

**Author:** ![soconnell](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@soconnell](https://community.dynatrace.com/u/soconnell)\
**Post date:** [December 19, 2019, 2:40pm UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763/7 "2019-12-19T14:40:01Z")

</div>

I’ve suspected it was something on our side. We do some funky JAva mambo in our app so it doesn’t surprise me that it might not be a DT Config/function issue.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 19, 2019, 2:57pm UTC](https://community.dynatrace.com/t/i-cant-find-a-way-to-get-the-tomcat-threads-to-show-up-on-my-tomcat-processes-any-thoughts/22763/8 "2019-12-19T14:57:26Z")

</div>

Well, still it might be a bug of OneAgent. I remember some issues happening in Tomcats such as not injecting Dynatrace Javascript agent into web applications.

If it is possible, try to update the OneAgent to the most recent available version for the host and restart the processes.
