DX Application Performance Management

Expand all | Collapse all

Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

Jump to Best Answer
  • 1.  Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-24-2016 03:23 PM

    I have a customer with attached "startup.sh" script that calls "catalina.sh" Where should I put the JVM Args to instrument Introscope Agent v10.1 and what args. And what exact args should I put in?


    What I was thinking was to put the following args in the "startup.sh" script towards the beginning...

    -javaagent:/apps/CA/IntroscopeAgent10.1/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/apps/CA/IntroscopeAgent10.1/Tomcat6/wily/core/config/IntroscopeAgent.profile

     

    Do I need to set/define a variable called "JAVA_OPTS" or anything like that w/n the "startup.sh" script?.Or should I input the args in "catalina.sh"? If so, what exact args and where w/n the "catalina.sh"?

     

    Thanks in advance for all the assistance.

    Manish



  • 2.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37
    Best Answer

    Posted 10-24-2016 04:44 PM

    Hi Manish,

    As startup.sh already sets JAVA_OPTS and exports it for use in the called catalina.sh script you should be able to add the java agent arguments to that same JAVA_OPTS & they will be processed in catalina.sh.

     

    Regards,

     

    Lynn



  • 3.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-25-2016 09:20 AM

    Lynn_Williams

    So basically do the following?

     

    JAVA_OPTS="-Xms128M -Xmx4096M -XX:MaxPermSize=512M"

    JAVA_OPTS="-javaagent:/apps/CA/IntroscopeAgent10.1/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/apps/CA/IntroscopeAgent10.1/Tomcat6/wily/core/config/IntroscopeAgent.profile"



  • 4.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-25-2016 09:22 AM

    Make sure to append and not replace your previous values.



  • 5.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-25-2016 02:26 PM

    Ok so I'll input it this way

     

    JAVA_OPTS="-Xms128M -Xmx4096M -XX:MaxPermSize=512M;-javaagent:/apps/CA/IntroscopeAgent10.1/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/apps/CA/IntroscopeAgent10.1/Tomcat6/wily/core/config/IntroscopeAgent.profile”

     

    That should work.



  • 6.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-25-2016 02:38 PM

    Is this Windows then since you're using a semicolon?



  • 7.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-25-2016 03:26 PM

    No, this is a linux box. Guess semicolon is not the correct syntax. What should it be?



  • 8.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-25-2016 03:28 PM

    Use a colon



  • 9.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-26-2016 08:50 AM

    Hi Manish:

       With Hiko's suggestions were you able to get to this to work or are experiencing new issues? Please let us know

    Thanks

    Hal German



  • 10.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-26-2016 09:10 AM

    Hallett_German,

    The App Server admin has not applied the instrumentation yet. Should have an answer today though.

    Thanks

    Manish



  • 11.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-25-2016 03:29 PM

    But in the case you've shown, you do not need a divider since '-javaagent' is the start of another property. Just put a space between the last property and '-javaagent'.



  • 12.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-24-2016 05:20 PM

    Hi Manish:

        Please let us know setting the JAVA_OPTS in startup.sh works as you expect. Or do you then encounter an issue?



  • 13.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-27-2016 06:54 AM

    Hi Manish:

    I am marking as assumed answered since there has no resolution yet. And no follow-up is needed at this time. If the solution works, please mark Lynn's response on 10-24 as correct. 



  • 14.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-27-2016 07:57 AM

    The solution worked yesterday. Thanks Lynn_Williams and Hiko_Davis for your help.

     

    JAVA_OPTS="-Xms128M -Xmx4096M -XX:MaxPermSize=512M -javaagent:/apps/CA/IntroscopeAgent10.1/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/apps/CA/IntroscopeAgent10.1/Tomcat6/wily/core/config/IntroscopeAgent.profile”



  • 15.  Re: Instrumenting v10.1 Java Agent on Tomcat App Server v6.0.37

    Posted 10-27-2016 08:03 AM

    Thanks Manish for letting us know about the good news!