Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
11-01-2018 09:38 AM
Hi,
I installed a on-prem controller(4.5.2.8055) and I have a test tomcat container(8.5) with a simple html form pointing to servlet. The entire tomcat server works fine when the javaagent is not installed. The minute I install the javaagent, tomcat stops working i.e it stops serving pages. I can see the tomcat service is up and running and I can also see that the agent has contacted the controller(appname, tier name, node name are good).
Results from ps -ef:
root 6050 1 3 09:20 ? 00:00:22 /usr/lib/jvm/java-11-oracle/bin/java -Djava.util.logging.config.file=/opt/wtomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -javaagent:/opt/software/appd/appJVM443/ver4.4.3.23530/javaagent.jar -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1024m -Xmx2048m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xms512M -Xmx1024M -server -XX:+UseParallelGC -Dignore.endorsed.dirs= -classpath /opt/wtomcat/bin/bootstrap.jar:/opt/wtomcat/bin/tomcat-juli.jar -Dcatalina.base=/opt/wtomcat -Dcatalina.home=/opt/wtomcat -Djava.io.tmpdir=/opt/wtomcat/temp org.apache.catalina.startup.Bootstrap start
************************
My setenv file
CATALINA_PID=/tmp/tomcat.pid
#export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/opt/software/appd/appJVM443/ver4.4.3.23530/javaagent.jar"
export JAVA_OPTS="-javaagent:/opt/software/appd/appJVM443/ver4.4.3.23530/javaagent.jar -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1024m -Xmx2048m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m"
Note that it does not matter if I comment out the CATALINA_OPTS or JAVA_OPTS (same result).
*************************
I am using oracle java ver 11
The same results happen with Tomcat9 and other Javaagent versions(Sun/Rockit).
************************
I got angry and used root to install everything from scratch (so not sure if permissions are an issue).
Any help would be appreciated,
Thanks
Murthy
Solved! Go to Solution.
11-01-2018 10:27 AM
Murthy,
The agent does not currently support java 11 (planned for the next monthly release)
If you look in the agent log, you will likley see some exceptions.
You should find that everything works well with a prior JVM release.
Warm regards,
Peter
11-01-2018 10:44 AM
11-01-2018 12:54 PM
Hi Peter,
Thank you for that piece of information. It solved the issue. I used Java8 and everything worked as I expected.
Thanks again for the prompt reply.
Murthy
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form