• 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 Glenn M. · Nov 02, 2011 at 12:29 AM · business transaction

Capture method CPU time with BT

We have a certain method that runs multiple times in a single purepath, each time with a different argument.  I would like to capture the CPU Total for this method, grouped by the argument.

The grouping seems to work, as my business transaction dashlet has a row for each method/argument combination.  However, the CPU time for each is the same.

Here is what I've done so far:

  • created a new measure that looks for the class/method in which I'm interested (Add measure -> Business Transaction Evaluation/Filter/Grouping Values -> Methods Methodname Value).
  • created a new business transaction and added this measure as an Evaluation Criteria;
  • created a grouping measure to group by the first argument for this method;
  • added the grouping measure to my business transaction as a Grouping Criteria;
  • save the business transaction and open it in a dashlet; this is a stored session, so I right-click and select 're-analyze all PurePaths'

I see a row for each unique method/argument combination; that's good.  Then I add a column for CPU Time (sum).  All the CPU times are the same.  The time shown is the sum of all the purepaths that contain that method.

Any ideas?  Thanks.

Comment
HIMANSHU m.
Chad T.

People who like this

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

5 Replies

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

Answer by Glenn M. · Dec 01, 2011 at 05:54 PM

I'm just posting the wrap-up to this conversation for the community at large.  Andreas replied: "I got the chance to look at your session. Unfortunately I have to tell you that this use case is not support right now. You can split your PurePaths by argument value but you cant define an evaluation measure that returns the actual execution time for a specific method execution on that PurePath.

It is a great RFE – but – unfortunately not supported right now.

A workaround that I have to offer is the Contributor Tab in the PurePath Dashlet. This allows you to select one or multiple PurePaths and look at the execution time of the methods you are interested in. Check out the following screenshot. I selected one of your purepaths – switched to the Contributor tab and then filtered the view with “TemplateProcessor” so that I only get to see those process methods. Now I see every method invocation with the parameter and how long it took to execute".

Thanks for looking into this, Andreas. Going to the Contributors tab will work as a manual step, but we would like to turn this into an automated report. and I don’t think you can get Contributors data from the REST interface.  Also, you can only select a limited number of purepaths at one time when you do that – like 10-20 depending on the level of instrumentation (50,000 max methods total).

Comment
HIMANSHU m.
Chad T.

People who like this

2 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 Andreas G. ♦ · Dec 02, 2011 at 08:41 AM 2
Share

Glenn, I've created an RFE for this. The use case here is "show me the execution time of a method grouped by argument value" - correct?

avatar image

Answer by Glenn M. · Nov 08, 2011 at 02:10 AM

There are multiple purepaths and each one invokes process() multiple times, each time with a different argument.

I've just sent an email with the .dts file.

Comment
HIMANSHU m.
Chad T.

People who like this

2 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 Glenn M. · Nov 04, 2011 at 06:25 AM

That additional column is available, but the numbers are the same for each row.

Comment
HIMANSHU m.
Chad T.

People who like this

2 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 Andreas G. ♦ · Nov 04, 2011 at 08:09 AM 2
Share

Hi Glen
Seems like these BTS all match the same number of PurePaths (11). Maybe I got your initial requirement for that BT wrong. Do you say that this process method is called multiple times within a single PurePath? Or is it called only once within a single PurePath and always with a different parameter value?

The scenario that I explained would work where you have multiple PurePaths and every PurePath has one invokation of process. this would then give you the CPU Time of the process method grouped my parameter value.

If you can - send me your exported PurePaths. You can send it to community@dynatrace.com and I take a look at it

avatar image

Answer by Glenn M. · Nov 02, 2011 at 03:45 PM

Thanks, Andi.  I had tried something like that and it didn't work.  So I tried it again, but still no luck.  Here is the measure I created to use as an evaluation criteria:

and here is the business transaction:

Comment
HIMANSHU m.
Chad T.

People who like this

2 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 Andreas G. ♦ · Nov 03, 2011 at 08:34 AM 2
Share

that looks right.
Whats the result? Remember - when you open the BT Dashlet you will get an additional column that shows the new evaluation value. Exec Time and CPU Time columns that show the total times of the matching PurePaths will still be there - but - you need to look at the additional column that should now be there

let me know what your current result looks like

avatar image

Answer by Andreas G. · Nov 02, 2011 at 08:14 AM

Hi Glenn

When you look at the CPU column you will see the CPU time of the PurePaths - just as you explained. What you need is to subscribe a measure for the CPU Time of your method and use this as Evaluation Criteria. If you do that your Business Transaction will return the CPU Time of your method only and not for the whole PurePath.
In dynaTrace 4 you can actually specify multiple evaluation measures - that allows you to e.g: group your PurePaths by method argument and get values such as CPU Time, Exec Time, Exec Count, ...

Andi

Comment
HIMANSHU m.
Chad T.

People who like this

2 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

Related Questions

How to capture the user details who executed a servlet or webrequest in a java application hooked up with APPMON?

BT Splitting as Successful and Failure Criteria

Business Transactions missing when splitting criteria is null/empty.

Application utilization

How to feed External data into Dynatrace to be used into Business Transaction Filtering condition

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