DX Application Performance Management

 View Only
  • 1.  Custom PBD to instrument a Class

    Posted Feb 26, 2015 04:34 AM

    Hi All,

     

    Im trying to check the performance of a class with the following custom PBD, but its not working for me, dont see any errors but the metrics are also not showing up the Investigator.

    These are FUSE services. The class is MyClass

     

     

    ####################################################################################

     

    #Custom  PBD

     

    ####################################################################################

    SetFlag: Custom

    TurnOn: Custom

    IdentifyInheritedAs: com.company.impl.MyClass Custom

    IdentifyClassAs: com.company.impl.MyClass Custom

    TraceAllMethodsOfClass: com.company.impl.MyClass BlamePointTracer "CustomPBD|Apps|New1"

     

    #####################################################################################

     

    Please correct me if Im writing anything wrong and suggest me the right one.

     

    Thanks

    Harsh



  • 2.  Re: Custom PBD to instrument a Class

    Posted Mar 20, 2015 09:58 AM

    Any Suggestions?

     

    Thanks,

    Harsha



  • 3.  Re: Custom PBD to instrument a Class

    Broadcom Employee
    Posted Mar 20, 2015 10:13 AM

    Hi Harsha,

    You/we would need to look at the AutoProbe log for the server to see if the class you want to monitor is actually being loaded and also if your pbd has been loaded as well.

     

    Looking at the pbd, I think there is some confusion with the syntax because you have defined a tracer group but you didn't really tell the tracer to use it.

    What's confusing then is that technically the last line could be enough by itself to generate metrics (TraceAllMethodsOfClass: com.company.impl.MyClass BlamePointTracer "CustomPBD|Apps|New1")

     

    The last line should include a reference to your tracer group flag, then you have a syntax of TraceAllMethodsIfFlagged: <tracer group> <tracer name> <metric name>

     

    TraceAllMethodsIfFlagged: Custom BlamePointTracer "CustomPBD|Apps|New1"

     

    So it would then look like this

     

    SetFlag: Custom

    TurnOn: Custom

    IdentifyInheritedAs: com.company.impl.MyClass Custom

    IdentifyClassAs: com.company.impl.MyClass Custom

    TraceAllMethodsIfFlagged: Custom BlamePointTracer "CustomPBD|Apps|New1"

     

    If that doesn't help, we need to see the AutoProbe log.

     

    Thanks,

    David



  • 4.  Re: Custom PBD to instrument a Class

    Posted Mar 20, 2015 10:16 AM

    Thanks David, I will check and revert back...

     

    Harsha



  • 5.  Re: Custom PBD to instrument a Class

    Broadcom Employee
    Posted Mar 20, 2015 01:12 PM

    See Instrumentation Best Practices on how to get the instrumented classes from the autoprobe.log.