Help APM Add Java Agent Install Java agent on Azure WebApp

Install the Java agent on Azure WebApp

Refer to this help page for the previous steps.
  1. Create a new directory under APP_HOME/WEB-INF/lib named site24x7.
  2. Extract the ZIP file to the new directory created to find the agent's JAR file and its configuration files.
  3. Configure the properties such as license key, application name and port in the apminsight.conf file located in the extracted folder.
  4. Bundle your application and deploy it in Azure WebApp service. 
  5. Finally, add the below JVM argument in App Settings under Settings of your WebApp. Refer to screenshot.
    • If you are using the 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 you are using the 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
    Install APM insight Java agent in Azure web app
  6. Restart your Webapp once for changes to take effect.
Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.

Help APM Add Java Agent Install Java agent on Azure WebApp