DX Application Performance Management

Expand all | Collapse all

Steps to install APM Java Agent on weblogic server

Jump to Best Answer
  • 1.  Steps to install APM Java Agent on weblogic server

    Posted 09-27-2018 05:49 AM

    Hi All,

     

    I am trying to install APM Java agent on weblogic. I got below below link for the instruction.

     

    Oracle WebLogic - CA Application Performance Management - 10.7 - CA Technologies Documentation 

     

    But from the document I am not able to find out what all changes we need to do weblogic startup script.

     

    Someone who has already did this please help me with the steps.

     

    Regards,

    Vivek



  • 2.  Re: Steps to install APM Java Agent on weblogic server
    Best Answer

    Broadcom Employee
    Posted 09-27-2018 11:10 AM

    How to Instrument Introscope Java Agent on WebLogic Windows Server 

    Dear Community:

    Can you help as well?

     

    Dear Vivek:

    Please post in the CA Developer APM  since on custom tracers

     

    Dear Vivek:

    What Java Vendor/Release are you using? I included the above link. The Docs says include the 

    following: What else do you think you are missing? Are you getting an error on startup?

    Java Agent

     -javaagent:<PathToAgentJar> -DagentProfile=<PathToAgentProfile>

     

    IBM J9 

    1. Edit the WebLogic startup script as explained above.
    2. Set the Java command line options as follows: 
      -javaagent:<Path_To_AgentJar> -DagentProfile=<Path_To_AgentProfile>,
      where <Path_To_AgentJar> and <Path_To_AgentProfile> are the paths to AgentNoRedefNoRetrans.jar and IntroscopeAgent.NoRedef.profile, respectively. For example:

      -javaagent:<Agent_Home>/AgentNoRedefNoRetrans.jar -DagentProfile=<Agent_Home>/core/config/IntroscopeAgent.NoRedef.profile



  • 3.  Re: Steps to install APM Java Agent on weblogic server

    Posted 10-01-2018 05:08 AM

    Hello Hallett,

     

    Thanks for the reply. Installation and configuration of Java APM agent has been done successfully. 

     

    Our requirement is to monitor a specific java class. I created specific.pbd file and still I am not able to see the metrics for these classes. Please find the content of the file below. I kept this file under hotdeploy directory with full permission.

     

    File

    *******************

     

    ################# begin ##############
    SetFlag: SpecificTracing
    TurnOn: SpecificTracing

    #For UDS:

    IdentifyMatchingClassesAs: com.arcot.euds.usermgmt.api.* SpecificTracing

    IdentifyClassAs: com.arcot.euds.usermgmt.api.UserMgmt SpecificTracing
    IdentifyInheritedAs: com.arcot.euds.usermgmt.api.UserMgmt SpecificTracing

    IdentifyClassAs: com.arcot.euds.usermgmt.impl.UserManagerImpl SpecificTracing
    IdentifyInheritedAs: com.arcot.euds.usermgmt.impl.UserManagerImpl SpecificTracing

    #For AFM:
    IdentifyMatchingClassesAs: com.arcot.integrations.frontend.tasks.* SpecificTracing


    #For State Manager:
    IdentifyClassAs: com.arcot.integrations.toksvr.server.TokenManager SpecificTracing
    IdentifyInheritedAs: com.arcot.integrations.toksvr.server.TokenManager SpecificTracing


    TraceAllMethodsIfFlagged: SpecificTracing BlamePointTracer "Specific|{packageandclassname}”

    ################# end ##############

     

     

    Please let me know if you need any other information.

     

    Regards,

    Vivek Thakur



  • 4.  Re: Steps to install APM Java Agent on weblogic server

    Broadcom Employee
    Posted 10-01-2018 02:52 PM

    You do not need the other lines after using "IdentifyMachingClassesAs" for UDS since you've used a wildcard for matching the namespaces.

     

    I would recommend using TraceComplexMethodsWithParametersIfFlagged for your directive. This is so the agent will capture any method parameters during tracing.

     

    https://communities.ca.com/docs/DOC-231151998-custom-instrumentation-with-ca-apm#jive_content_id_Common_Directives 



  • 5.  Re: Steps to install APM Java Agent on weblogic server

    Posted 10-03-2018 03:07 AM

    Hi Vivek,

     

    Try with below changes 

     


    TraceOneMethodOfClass: psft.pt8.psreports returnFile BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.util.PSHttpUtil waitProcess BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.jb.JBEntry processRequest BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.jb.ICService requestService BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: com.peoplesoft.pt.integrationgateway.framework.GatewayManager connect BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: com.peoplesoft.pt.integrationgateway.service.BasicConnectorInvocator execute BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: com.peoplesoft.pt.common.XmlDocument parse BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.ContentGetter getContent BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.ContentGetter getPIADirectContent BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.psc onActionDirect BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.PIADirectConnection connect BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.ContentGetter getProxiedContent BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.PSParser parseHTML BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.Proxyizer proxyContent BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.psp writeDocument BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.net.JoltSessionPool getJoltSession BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.PageAssembler replaceComponent BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.template.IClientComponent getContent BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.auth.PSAuthenticator authenticate BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.net.NetSession connect BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.jb.JBEntry connect BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.PageAssembler assemble BlamePointTracer "PeopleSoft|{classname}|{method}"
    TraceOneMethodOfClass: psft.pt8.portal.PageAssembler replaceComponentTags BlamePointTracer "PeopleSoft|{classname}|{method}"

    Post changes restart the web service