Java (Java Agent, Installation, JVM, and Controller Installation)

cancel
Showing results for 
Search instead for 
Did you mean: 

Tomcat stops serving pages after javaagent install

SOLVED
Highlighted
Wanderer

Tomcat stops serving pages after javaagent install

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

Tomcat stops serving pages after javaagent install
3 REPLIES
Employee

Re: Tomcat stops serving pages after javaagent install

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



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Wanderer

Re: Tomcat stops serving pages after javaagent install

Aaah! Thank you. I will change and let you know the results.
Murthy
Wanderer

Re: Tomcat stops serving pages after javaagent install

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