DX Application Performance Management

  • 1.  CA APM - WAS - Custom Instrumentation

    Posted Apr 02, 2018 12:00 AM

    Hi team,

     

    I write this time to ask if anyone can support me with the following: Currently the instrumentation of the java classes is being carried out, through the hotdeploy:

     

    ar\com\prueba\certificadoafiliacionmultiproducto\portlet\CertificadoAfiliacionMultiproductoPortlet.java

    ar\com\prueba\empleadores\cesantias\portlet\RetiroCesantiasPortlet.java

    ar\com\prueba\solicitarretirosgesautoges\portlet\SolicitarRetirosGesAutogesPortlet.java

     

    When validating in the autoprobe log, it is observed that they are being seen by the agent. No errors are observed in the agent log. But they are not being seen reflected in the introscope, for example:

     

    SetFlag: RetiroCensatiasTracing
    TurnOn: RetiroCensatiasTracing

    IdentifyClassAs: ar.com.prueba.empleadores.cesantias.portlet.RetiroCesantiasPortlet RetiroCensatiasTracing

    TraceComplexMethodsIfFlagged: RetiroCensatiasTracing BlamePointTracerDifferentInstances "RetiroCensatias|{classname}|{method}"
    TraceComplexMethodsWithParametersIfFlagged: RetiroCensatiasTracing ExceptionErrorReporter "RetiroCensatias|{classname}|{method}:Errors Per Interval"

     

    It does not appear in the metric tree.

     

    Observation: The application is under IBM WAS with liferay-OSGI. This characteristics could be preventing the correct instrumentación of the agent, that is to say, that is not shown in the introscope.

     

    Thanks for the help

    Richard



  • 2.  Re: CA APM - WAS - Custom Instrumentation

    Broadcom Employee
    Posted Apr 02, 2018 08:41 AM

    Converted into a discussion and cross-posted to APM Development. Please offer Richard some next steps



  • 3.  Re: CA APM - WAS - Custom Instrumentation

    Posted Apr 02, 2018 05:04 PM

    Hi German,

     

    The discussion has already been created.

     

    Thanks,

    Richard



  • 4.  Re: CA APM - WAS - Custom Instrumentation

    Broadcom Employee
    Posted Apr 02, 2018 11:53 AM

    Hello Richard,

     

    Do you see any messages indicating that tracers are inserted into the class mentioned by RetiroCensatiasTracing in your Autoprobe log? You should see a message indicating that ar/com/prueba/empleadores/cesantias/portlet/RetiroCesantiasPortlet was processed. If not, then agent is not seeing this class loaded by your application. 

     

    Here is an example of a tracer being inserted...

    Processing class org/apache/jsp/index_jsp
    _jspService inserted method tracer object allocation: com/wily/introscope/agent/brtm/trace/BrtmTracer; tracer order: -9000000; file: C:\Program Files\CA APM\Agents\TomcatAgent10.5.2\wily\core\config\browseragent.pbd; line: 44



  • 5.  Re: CA APM - WAS - Custom Instrumentation

    Posted Apr 02, 2018 04:59 PM

    Hi Thomas,

    In the log I see:

    Processing class ar/com/prueba/empleadores/cesantias/portlet/RetiroCesantiasPortlet

     

    And I do not see any error associated with the agent's log. But it does not appear in the Introscope tree either. The fact that the application uses liferay-osgi, can it affect something?

     

    Thanks,

    Richard



  • 6.  Re: CA APM - WAS - Custom Instrumentation

    Broadcom Employee
    Posted Apr 04, 2018 11:28 AM

    Were any traces inserted after seeing that line? If not, maybe try a "TraceMethodsIfFlagged" instead.