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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Quantify Your Splunk Investment Impact: Introducing Savings Metrics to Value Insights

Building on the foundation established in our initial Value Insights releases, we are introducing the Savings ...

Event Series: Telemetry Pipeline Management

Balancing Scale and Spend: Gaining Control Over High-Volume Metrics in Splunk Observability Cloud As ...

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...