Install Java agent on Azure WebApp
Please follow the below steps to install Java agent on Azure WebApp
- Create a new directory under APP_HOME/WEB-INF/lib, say site24x7.
- Download and extract the javaagent zip file to the above directory.
- Open apminsight.conf file in any text editor and provide the Site24x7 License key and application name.
- Bundle your application and deploy it in Azure WebApp service.
- Finally, add the below JVM argument in App Settings under Settings of your WebApp. Refer to screenshot.
- If using Tomcat server, please add Key "CATALINA_OPTS" and value as
-javaagent:D:/home/site/wwwroot/webapps/{APP_NAME}/WEB-INF/lib/site24x7/apminsight-javaagent.jar
- If using Jetty server, please add Key "JAVA_OPTIONS" and value as
-javaagent:D:/home/site/wwwroot/webapps/{APP_NAME}/WEB-INF/lib/site24x7/apminsight-javaagent.jar
- If using Tomcat server, please add Key "CATALINA_OPTS" and value as
- Restart your Webapp once for changes to take effect.