question

Christian W. avatar image
Christian W. asked ·

Possibility of seeing the call within a Java method with DynaTrace AppMon V7.2

Hello folks,


at the moment we are having an issue with the cpu usage of a program and therefore we want to take a deep-dive into the java code. Until now we were trying to find with several dashlets like purepath, remoting, methods hotspot which call of the a java programm uses most of cpu time.

Unfortunately we are actually only able to see the methods.

Is there a possibility in DynaTrace Apmon to see what is running inside the method more detailed?

thank you in advance.

Regards,


Christian



appmonconfigurationjava7.2documentation
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.

Christian W. avatar image
Christian W. answered ·

Hi Sebastian,

thank you for the answer. I already tried that but those information do not help for my further investigation because i need to know more detailed what exactly inside the method/class uses how much CPU time.

do you have another hint? thanks in advance.

Regards,

Christian

1 comment 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.

If you identified last method that is exhausting CPU, you should use Dynatrace source lookup, decompile java code and check what's inside. There is no other option. It is possible that you will find loop there. In such option you should talk with development team about deeper investigation. You can also try instrumenting methods that are executed in such loop as well.

Sebastian

0 Likes 0 · ·
Sebastian K. avatar image
Sebastian K. answered ·

Make CPU sampling during CPU spike. There you will se what methods are top CPU consumers. Then you can make sensors on on them and assign them to proper agent group. After Hot Sensor Placement on java agents you need, you will be able to see those methods on purepaths as well for deeper investigation.

https://www.dynatrace.com/support/doc/appmon/application-monitoring/appmon-client/dashlets/cpu-sampling-dashlet/

https://www.dynatrace.com/support/doc/appmon/administration/sensor-configuration/

To make thing easier for you. Go to System Profile => Sensors. Create new sensor group (one per each agent group if code between them is different). Then place this sensor group on proper agent groups (click through all of them => sensor placement and there you will have option to add them). After this make CPU sampling on each agent that is affected (one per agent group would be fine). Then find methods that has top values on cpu time there. Right click and there you will have option to add them as custom sensor. Pick proper sensor group and that's all. After this operation you should right click on agents that had changed configuration and execute Hot Sensor Placement which will add new configuration on the fly.

Sebastian

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.