cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

How to setup AppMon on server based off spring boot with embedded tomcat in it?

Jibin_rajan2
Participant

How to setup AppMon on server based off spring boot with embedded tomcat in it?

1 REPLY 1

andreas_grabner
Dynatrace Guru
Dynatrace Guru

Hi

Just as with any Java App you have to get the -agentpath parameter on the JVM that runs your Spring Boot App. I am not 100% sure what you mean with Embedded Tomcat in Spring Boot - but - here are two thoughts

#1) For Tomcat we typically recommend to modify the catalina.sh or catalina.bat file and use a SET CATALINA_OPTS=-agentpath:xxxx

#2) An Alternative for Tomcat is also to create a setenv.sh or setnenv.bat file in tomcat\bin directory and do the same SET CATALINA_OPTS. Setenv is supposed to be called during tomcat startup

#3) If the above two approaches dont work simply set the JAVA_OPTS environment variable to include the -agentpath. JAVA_OPTS is supposed to be evaluated by every JVM during startup allowing you to add our -agentpath to it

Andi