• 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 Jean-rémi P. · Oct 31, 2014 at 11:54 PM ·

NEED HELP : Method invocation count

Hi Community ! 

I would like to have the detailed process and requirements to create a chart that will display the number of times a method has been invoked. The method is browsable but when I create an invocation measure then add it to a chart I've got no result. 

PS : In the agents group App methods sensor is placed and active. I didn't specified any sensor rules in the system profile. 

Should I add a sensor rule ? 

 

 

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.

4 Replies

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

Answer by Jean-rémi P. · Nov 01, 2014 at 12:45 AM

Thanks Andi (smile) it helps a lot, i am a real happy guy 

 

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. · Nov 01, 2014 at 12:33 AM

Well - the best practice is to only instrument methods that really bring you value, e.g: you need them to capture method arguments for Business Transactions or you need them for things like you want to achieve - knowing how often a method is invoked.

If you pick methods that are called VERY OFTEN but execute very fast than the "relative" overhead of dynaTrace for these methods can become substantial. We are now talking about methods that are called hundreds or thousands of times per PurePath. I hope your method is not one like this.

Anyway - you can use our CPU Sampling DAshlet to perform a regular CPU Sample. Let it run for a while under normal application load conditions. When you are done with the Sample and explore the results you will find an option that shows you the "dynaTrace Instrumentation Overhead". There you will find the hotspots of our own instrumented code

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 Jean-rémi P. · Nov 01, 2014 at 12:28 AM

Hi Andreas, 

Thank you for your prompt answer, it's working well. By the way do you know if there is a pertinent way to compute the overhead of a sensor. Team are scared to deploy additionnal sensors. 

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. · Nov 01, 2014 at 12:06 AM

Hi

Check out the following screenshots that show you how you can create a method invocation measure. Key is that you need a Sensor becuase dynaTrace can only count method invocations in case the method is instrument. The wizard however does all of this for us

 

Now you need to make sure the Sensor is active. For .NET you need to restart your application, for Java you can also do a Hot Sensor Placement (or restart). From now on - PurePaths that will make a call to these methods - will show that method call. dynaTrace will start counting how often this method is invoked in the context of a PurePath and you can now chart it.

Be aware that

a) The method NEEDS to be called in the context of a PurePath. Easiest to verify this is to open the Methods dashlet. it shows you all the methods that are called in the PurePaths of the last XYZ Mins. If the method doesnt show up then either the sensor doesnt work or your method is not invoked as part of a PurePath.

b) You will only get this for PurePaths that were captured after this sensor is active -> no historical data will be visible

Hope this helps

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

1 Person is following this question.

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