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 AppMon to see what is running inside the method more detailed?
thank you in advance.
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.
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.
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.
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.