• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Vijay K. · Dec 17, 2014 at 03:03 AM ·

Tomcat metrics not collected

We are using Tomcat 6.0.35 and DT 5.5. We are unable to collect any of the tomcat measure metrics. I 'm missing the measure's splitting value like agents, agent host etc, when I select any of the tomcat measure. We are seeing the same with DT 6.0. Can someone guide on how to look up these metrics? Thanks in advance!

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

10 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Vijay K. · Mar 27, 2015 at 05:40 AM

Adding the following Collector Debug Flag will resolve the issue:

com.dynatrace.diagnostics.forceInitializedChecks=true

Please add this Collector Debug Flag by following these directions:
https://community.compuwareapm.com/community/display/DTKB/Setting+a+DynaTrace+Collector+Debug+Flag  

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image

Answer by Andreas G. · Jan 20, 2015 at 08:11 PM

Hi Vijay

Engineering would like to handle this via a support ticket. Can you create one? Also - on that support ticket - can you provide the following information?

  • Exact version of your JVM and App Server 
  • List of Deployed Sensors on that Agent when you have Authentication enabled vs. when Authentication is not enabled. You can see the Deployed Sensors in the Agent Overview Dashlet in the bottom of the screen. When our MBean Sensor Pack is placed we will instrument certain MBean Server Objects. Engineering is interested in whether your command line settings for JMX impact the actual instrumentation of our Sensors

Thanks

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image Vijay K. · Jan 29, 2015 at 05:22 AM 0
Share

 

Hi Andi,

Attached spreadsheet has all the sensors deployed and other info requested.

Thanks, Vijay

 

sensors deployed before and after the command line authentication

 

avatar image

Answer by Andreas G. · Jan 20, 2015 at 03:54 AM

Hi

Got feedback from engineering.

Dynatrace doesnt use the Remote interface to query MBeans. We use our byte code instrumentation technique to access MBeans and therefore have direct access to all MBeans without needing authentication. Once you have our "JMX MBean Server" Sensor Pack placed you can also use our JMX Browser to see which MBeans and which values are accessible. You can do this by creating a custom JMX Measure and then click on Browse Metrics when you are in the Measure Definition dialog. Give this a try.

As for your JConsole issue. To avoid any problems that might happen with password typos, .. -> can you try to configure your JVM to not use authentication? Will that work?

Andi

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image Vijay K. · Jan 20, 2015 at 05:07 AM 0
Share

Hi Andi

I have tried this before and we are not seeing the MBeans with the authentication. See the pic below,

fyi- I double checked, we have the "JMX Mbean Server" active and sensor packs placed/enabled.

 

Thanks, 

avatar image

Answer by Andreas G. · Jan 19, 2015 at 07:21 PM

Hmm. I am not sure why this wouldnt work. I will ask internally with the engineering team but I also suggest you open a support ticket and ask the same question

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image

Answer by Vijay K. · Jan 16, 2015 at 07:40 AM

Commenting the below JMX settings in the setenv.sh file started showing the MBeans in dynaTrace., however when we do this we can not access jconsole or visual VM so we need to figure out how to get those working again., any ideas?

#export JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=31001 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Djava.rmi.server.hostname=tstaply8 -Dcom.sun.management.jmxremote.password.file=$CATALINA_BASE/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=$CATALINA_BASE/conf/jmxremote.access"

I was able to retrieve the MBean metrics using Jconsole providing the URL, JMX remote user id and password. Is there anything I might be missing from dynaTrace setup and why is not dynaTrace complaining about the authentication?

Thanks!

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image

Answer by Andreas G. · Dec 18, 2014 at 12:16 AM

Hi. So - I guess because these measures didnt capture any values they are obviously not part of the export. Thats why I didnt see them.

So - there are two things

a) Please go to your System Profile and check your Tomcat Tier. Then click on Sensor Placement and check if the "JMX MBean Server" is placed. That is mandatory in order for us to get these metrics via JMX.

b) check the Agent Log files and see if there are any errors in that log file. You can access the log files through the System Information Dashlet

c) Try to query the value of one of these metrics through the Measure Configuration Dialog. If you edit one of these measures you can click on Browse Metrics. Then select one of your tomcat agents and in that same dialog you have a "Test" button. that will tell you if we can get that value from your tomcat

Andi

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image

Answer by Vijay K. · Dec 17, 2014 at 09:53 AM

I see the tomcat measures are already available and its the splitting values of the mesasures like- agents, agent hosts that i cannot see to choose from. But i can see the same splittings available for the other agents based measures like Java Virtual Machine. 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image

Answer by Andreas G. · Dec 17, 2014 at 07:36 AM

Hi Vijay

I looked at your exported session you sent me. It seems like you have currently not created these Tomcat specific measures. But - that is easy to fix. You need to edit your System Profile and click on Measures. Then click on Create Measures. In the upcoming Measure Configuration Dialog you will find a long list of pre-configured Tomcat specific Measuers under Server Side Performance -> Agent based Measures -> Tomcat. You can click each individual one and then click the Add Button. This will add a new Measure for that pre-configured measure configuration. Before you add it feel free to check out what it actually is that dynatrace will monitor. We leverage JMX to capture these values. If you dont like these - or - if you want to capture others you can also select the "Custom JMX ...." measure that you also find under the Tomcat Entry. To define a custom JMX Metric you can use the Browse Metrics button to browse through the available JMX Metrics.

If you want to learn more about custom JMX metrics I suggest you also check out the followoing doc page: Using Custom JMX and PMI Measures in Charts

Once you have these additoinal tomcat specific metrics defined dynatrace will start capturing them and you can chart them or use them for incidents

Hope this helps

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image

Answer by Vijay K. · Dec 17, 2014 at 04:13 AM

I've emailed you a sample session. Thanks Andreas!

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

avatar image

Answer by Andreas G. · Dec 17, 2014 at 03:14 AM

Hi. Can you export a short session, e.g: 10 minutes and send it to over? If you export - make sure to pick "PurePath and timeseries"

Andi

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A