Splunk AppDynamics

Tomcat stops serving pages after javaagent install

CommunityUser
Splunk Employee
Splunk Employee

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

Labels (1)
0 Karma
1 Solution

Peter_Holditch
Builder

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

View solution in original post

Peter_Holditch
Builder

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

CommunityUser
Splunk Employee
Splunk Employee

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

CommunityUser
Splunk Employee
Splunk Employee
Aaah! Thank you. I will change and let you know the results.
Murthy
0 Karma
Get Updates on the Splunk Community!

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

Index This | What goes up and never comes down?

January 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk + Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...