question

Jason W. avatar image
Jason W. asked ·

tomcat jmx plugin not running

Grabbed the example Tomcat JDBC JMX plugin from git hub: https://github.com/Dynatrace/JMX-Extensions/tree/m...

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

extensionsjavaprocess groups
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Bartosz B. avatar image
Bartosz B. answered ·

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.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Antonio V. avatar image
Antonio V. answered ·

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.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Kasim B. avatar image
Kasim B. answered ·

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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Gilles C. avatar image
Gilles C. answered ·

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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Space Topics

mobile monitoring dotnet synthetic monitoring reports iis chat kubernetes servicenow amazon web services mysql mainframe rest api errors cassandra dashboard oneagent sdk cmc application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo syntheticadvisory activegate ip addresses auto-detection high five award oracle hyperion webserver uem usql iib test automation license web performance monitoring ios news migration management zones index ibm mq web services custom event alerts notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming javascript appmon ai synthetic classic availability tipstricks automation extensions session replay diagnostic tools permissions davis assistant faq documentation problem detection http monitors server easytravel apdex aws-quickstart network docker tags and metadata cloud foundry google cloud platform synthetic monitoring process groups account usability dynatrace saas gui paas openshift key user actions administration user actions postgresql synthetic locations oneagent security Dynatrace Managed user management custom python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting NGINX action naming linux nam installation masking error reporting database mission control jmeter recorder apache mobileapp RUM php threshold azure purepath davis scripting agent aix nodejs android