DX Application Performance Management

Expand all | Collapse all

APM 9.7 How to Config the JAVA Agent for Tomcat on Linux

Jump to Best Answer
  • 1.  APM 9.7 How to Config the JAVA Agent for Tomcat on Linux

    Posted 03-14-2019 01:35 PM

    Hello,

     

    We have tomcat server now installed on our Linux servers, I am working with the sysadmin and we have downloaded the APM 9.7.1 agent files for java / tomcat monitoring.

     

    I have updated my introscopeAgent profile alone with the needed pbd and pbl files.

     

    I had the sys admin add in the following line of code in the catalina.sh file on the Linux server (per the apm java install guiide:

     

     CATALINA_OPTS="$JPDA_OPTS $CATALINA_OPTS -javaagent:/apps/apm/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/apps/apm/wily/core/config/IntroscopeAgent_tomcat.profile"

     

    I am not seeing anything in the wily/logs for wily java agent startup!

     

    Does anyone know if the syntax for the above is indeed correct?

    In reading the documentation, no other steps are required as not doing jmx..

     

    any tips are appreciated...

     

    Regards,

    Pat



  • 2.  Re: APM 9.7 How to Config the JAVA Agent for Tomcat on Linux

    Posted 03-14-2019 03:38 PM

    patrickjo44

    Check  following things. 

    1) Make sure user permissions are correct. 

    2) Path or Profile file and agent.jar is correct. to verify copy path from startup script and "cd" paste it.

    3) If startup script is other then Catalina.sh make sure you put JVM argument there.  



  • 3.  Re: APM 9.7 How to Config the JAVA Agent for Tomcat on Linux

    Posted 03-14-2019 03:52 PM

    Hello,

     

    Thanks for the feedback.

     

    Question on your item #1: My IntroscopAgent_tomcat_profile and the Agent.jar all have read permissions…

     

    When the system admin restarts the tomcat, I have not output in the wily/logs file and no agent has started, almost like the line of code is not being read in to tomcat…

     

    CATALINA_OPTS="$JPDA_OPTS $CATALINA_OPTS -javaagent:/apps/apm/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/apps/apm/wily/core/config/IntroscopeAgent_tomcat.profile"

     

    poco /apps/apm/wily/core/config]ls -trl IntroscopeAgent_tom*

    -rw-rr. 1 apmadmin apmadmin 81840 Mar  7 15:06 IntroscopeAgent_tomcat.profile

     

    poco/apps/apm/wily]ls -trl Agent*

    -rw-rr. 1 apmadmin apmadmin 4478973 Mar 16  2015 Agent.jar

     

     

    poco/forms/tomcat8/bin]ls -trl catalina.sh

    -rwxrwx---. 1 tomadmin tomadmin 23637 Mar 13 13:24 catalina.sh

     

     

    Regards,

    Pat O’Connor

    Systems Performance Unit

    Department of Child Support Services

    (916) 464-7064



  • 4.  Re: APM 9.7 How to Config the JAVA Agent for Tomcat on Linux
    Best Answer

    Posted 03-14-2019 04:26 PM

    Issue resolved…

     

    The system admin updated the file: /etc/systemd/system/tomcat.service with the wily information…

     

     

    Regards,

    Pat O’Connor

    Systems Performance Unit

    Department of Child Support Services

    (916) 464-7064