Monitoring classes being used by several applications.

Document ID : KB000032410
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

 

How do I monitor a class that is used by several applications?

Is there a way to configure the metric name in such a way that we could also see it on the application base?

 

For example:

 

"Custom Classes|{application}|{classname}

 

Answer: 

You can achieve this by using the directive {packageandclassname}.

 

Here is an example:

 

SetFlag: CustomClasses

TurnOn: CustomClasses

 

IdentifyMatchingClassesAs: "com.package.*" InstanceCounts

 

# Trace Complex Methods

TraceComplexMethodsIfFlagged: CustomClasses <tracer-name> "Custom Classes|{packageandclassname}|{method}:Average Response Time (ms)"

TraceComplexMethodsIfFlagged: CustomClasses PerIntervalCounter "Custom Classes|{packageandclassname}|{method}:Invocations per Interval"

TraceComplexMethodsIfFlagged: CustomClasses ConcurrentInvocationCounter "Custom Classes|{packageandclassname}|{method}:Concurrent Invocations"

 

Additional Information:

 

These below documents may help with your customization:

 

http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1627275.aspx?intcmp=searchresultclick&resultnum=1

 


www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1919667.aspx?intcmp=searchresultclick&resultnum=2

 


http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1452721.aspx?intcmp=searchresultclick&resultnum=3