Help Docs

Install the Java agent on Azure WebApp

Note

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
  6. Restart your Webapp once for changes to take effect.

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!