Splunk AppDynamics

Can't start tomcat after javaagent installer

CommunityUser
Splunk Employee
Splunk Employee

I did same as docs 

I put export CATALINA_OPTS="$CTALINA_OPTS -javaagent:/home/centos/AppJavaAgent/javaagent.jar" this in /usr/local/tomcat/bin/setenv.sh

but after this I can't start my tomcat agin.

IF I comment this line it will run.

Can you help me to fix this?

Which logs I can go for troubleshoot?

Thanks in Advance.

Labels (1)
0 Karma

iamryan
Community Manager
Community Manager

Hi @Rizki Muhammad.Haris,

Are you saying this solution above does work or does not? 

0 Karma

Rizki_Muhammad_
New Member

Sorry i just wanna share this is work for my case (can't start up tomcat if use CATALINA_OPTS="$CATALINA_OPTS

Thanks

0 Karma

Atyuha_Pal
Contributor

Hi ,

Could you please confirm whether it is throwing any specific error. Please attach the sentenv.sh file to verify the configuration.

Thanks,

Atyuha

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
Thanks for quick help

My setenv.sh is like


export LD_LIBRARY_PATH=/usr/local/apr/lib

export CATALINA_PID=$CATALINA_HOME/catalina.pid

export JPDA_ADDRESS=8000

export JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1024m -Xmx2048m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m"

export CLASSPATH=/usr/local/osmosix/etc

export CATALINA_OUT=/dev/null

#export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/home/centos/AppJavaAgent/javaagent.jar"

0 Karma

Atyuha_Pal
Contributor

Hi,

Could you please  pass the  javaagent.jar as a JAVA_OPTS and check if it works

For example: 

export JAVA_OPTS="-javaagent:/home/centos/AppJavaAgent/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"

 

Thanks,

Atyuha

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...