Help APM Add Java Agent Install Java agent on Azure WebApp

Install Java agent on Azure WebApp

Please follow the below steps to install Java agent on Azure WebApp

  1. Create a new directory under APP_HOME/WEB-INF/lib, say site24x7.
  2. Download and extract the javaagent zip file to the above directory.
  3. Open apminsight.conf file in any text editor and provide the Site24x7 License key and application name.
  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 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
    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