DX Application Performance Management

  • 1.  Passing custom pbd as jvm argument

    Posted Mar 15, 2018 10:01 AM

    Hi Team,
    We are planning to use a single profile for multiple JVM in Weblogic server. We do not want restrict all the app JVMs to one pbl file (i.e  weblogic-typical.pbl) present in IntroscopeAgent.weblogic.profile file. We want the JVMs to use weblogic-typical.pbl along with custom pbd specific to the app JVM.

    So we are contemplating to pass the custom pbd as a JVM parameter in the startup script but using the same profile.
    Means all the JVM will have use the same profile but will have their own custom pbd. So that all of them will be able to take the advantage of weblogic-typical.pbl as well.

    Let me give you an example of JVM argument we are contemplating to add in the startup script two JVMs present in the same server.

    In startWeblogic1.sh

    -javaagent:/agent_home/Agent.jar -Dcom.wily.introscope.agentProfile=/agent_home/core/config/IntroscopeAgent.profile -Dcom.wily.introscope.agent.agentName=agent1 -Dcom.wily.introscope.autoprobe.directivesFile=custom1.pbd

    In startWeblogic2.sh

    -javaagent:/agent_home/Agent.jar -Dcom.wily.introscope.agentProfile=/agent_home/core/config/IntroscopeAgent.profile -Dcom.wily.introscope.agent.agentName=agent2 -Dcom.wily.introscope.autoprobe.directivesFile=custom2.pbd


    Cheers
    Jay
    Cell No:551-263-968



  • 2.  Re: Passing custom pbd as jvm argument
    Best Answer

    Broadcom Employee
    Posted Mar 15, 2018 06:15 PM

    Hi Jay,

     

    Yes, this approach can be used to override specific properties in the IntroscopeAgent.profile, for a specific agent instance.

     

    The correct argument should be:

    -Dintroscope.autoprobe.directivesFile=

     

    Also, I believe it will overwrite the entire value of this property in the profile, instead of appending to the existing value. So for example if you have this defined in the shared IntroscopeAgent.profile:

    introscope.autoprobe.directivesFile=webLogic.pbl

     

    and add the following to the JVM argument:

    -Dintroscope.autoprobe.directivesFile=custom.pbd

     

    only the custom.pbd will be loaded by the agent in this case.

     

    For more details, please see:

    Java Agent Properties - CA Application Performance Management - 10.7 - CA Technologies Documentation 

     

    Note: When you use this command to override hot-deployable properties, the property is no longer hot deployable. If you modify the property at a later time in the configuration file, Workstation or WebView issue a warning message. The message states that you modified an overridden property and your change has no effect. To avoid this situation, remove the override command before modifying the property in a configuration file.

     

    Hope this helps.

     

    Thanks,

    Aryne



  • 3.  Re: Passing custom pbd as jvm argument

    Posted Mar 19, 2018 10:36 AM

    Hi Aryne,

    If I comment the line introscope.autoprobe.directivesFile=weblogic-typical.pbl, hotdeploy in the IntroscopeAgent.profile file  and

    add the jvm argument

    -Dintroscope.autoprobe.directivesFile=webblogic-typical.pbl, custom.pbd

    in the startupsscript then the java agent is going to use both.

     

    Cheers

    Jay

    Cell no: 551-263-9681