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!
Answer by Vijay K. ·
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
Answer by Andreas G. ·
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?
Thanks
Hi Andi,
Attached spreadsheet has all the sensors deployed and other info requested.
Thanks, Vijay
sensors deployed before and after the command line authentication
Answer by Andreas G. ·
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
Answer by Andreas G. ·
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
Answer by Vijay K. ·
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!
Answer by Andreas G. ·
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
Answer by Vijay K. ·
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.
Answer by Andreas G. ·
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
Answer by Andreas G. ·
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
JANUARY 15, 3:00 PM GMT / 10:00 AM ET