# Tomcat JMX plugin not running

**URL:** <https://community.dynatrace.com/t/tomcat-jmx-plugin-not-running/11724>\
**Category:** Extensions\
**Tags:** process-groups, jmx, extensions, java\
**Created:** [April 30, 2018, 1:47pm UTC](https://community.dynatrace.com/t/tomcat-jmx-plugin-not-running/11724 "2018-04-30T13:47:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_westerhou](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jason\_westerhou](https://community.dynatrace.com/u/jason_westerhou)\
**Post date:** [April 30, 2018, 1:47pm UTC](https://community.dynatrace.com/t/tomcat-jmx-plugin-not-running/11724/1 "2018-04-30T13:47:45Z")

</div>

Grabbed the example Tomcat JDBC JMX plugin from git hub: [https://github.com/Dynatrace/JMX-Extensions/tree/m…](https://github.com/Dynatrace/JMX-Extensions/tree/master/Tomcat%20JDBC%20ext)

Uploaded it, and it doesn’t seem to even be running. Feels like I’m missing something super simple. I can’t find the metrics anywhere in process metrics/jmx metrics, where I’d expect to see the charts written in the plugin.

Any help is appreciated.

Thanks in advance,

Jason

---

<div class="post-metadata">

**Author:** ![Bartosz\_Banache](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bartosz_banache/32/36468_2.png) [@Bartosz\_Banache](https://community.dynatrace.com/u/Bartosz_Banache)\
**Post date:** [June 15, 2018, 9:24am UTC](https://community.dynatrace.com/t/tomcat-jmx-plugin-not-running/11724/2 "2018-06-15T09:24:07Z")

</div>

We did some quick tests and it appears that the plugin might have an outdated set of Tomcat metrics. Can you connect to your server with e.g. JConsole and verify that the metrics exist there? It’s really easy to edit the plugin if there’s some mismatch and reupload it.

---

<div class="post-metadata">

**Author:** ![skb\_igs](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@skb\_igs](https://community.dynatrace.com/u/skb_igs)\
**Post date:** [July 5, 2018, 4:09am UTC](https://community.dynatrace.com/t/tomcat-jmx-plugin-not-running/11724/3 "2018-07-05T04:09:32Z")

</div>

@bartosz B, could you please update the Tomcat JMX plugin json and upload here,

---

<div class="post-metadata">

**Author:** ![g\_ciret](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@g\_ciret](https://community.dynatrace.com/u/g_ciret)\
**Post date:** [January 28, 2019, 9:37am UTC](https://community.dynatrace.com/t/tomcat-jmx-plugin-not-running/11724/4 "2019-01-28T09:37:00Z")

</div>

Hi,

Could someone list the prerequisites to using the JMX plugin?  
I tried to use it and it does not work at all for me.

When I tried to understand why, I realized that I could not connect the jconsole to my Tomcat process locally. The Tomcat Windows service is launched using a specific user, and I read somewhere that the jconsole has to be launched using the same user to be able to “see” the tomcat processes, so I guess that’s why the jconsole is not working.

Does Dynatrace have to be launched using the same user also?

Regards,

Gilles

---

<div class="post-metadata">

**Author:** ![antonio\_villarr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_villarr/32/6204_2.png) [@antonio\_villarr](https://community.dynatrace.com/u/antonio_villarr)\
**Post date:** [April 23, 2020, 3:56pm UTC](https://community.dynatrace.com/t/tomcat-jmx-plugin-not-running/11724/5 "2020-04-23T15:56:57Z")

</div>

Hi,

This is how I could do it:

1.- Use JMX/PMI extension editor. Specify a name,

2.- Click on “add metric source”

3.- Technology: Apache Tomcat

4.- Click on the pencil for the suggested source

5.- Specify a host and tomcat process that you know (verify first) has a service that uses a ddbb

6.- Click “Add metrics source”

7.- Click “Add Metric”

8.- For Domain select Catalina

9.- Now in the filter bar select “type”

10.- Select DataSource

11.- Now, go to the “Select atribute” list, and select maxActive or numactive.

Good luck anybody.

Antonio V.
