Help Docs

Install Java agent on AWS Beanstalk

Please follow the below steps to install Java agent on AWS Beanstalk

  1. Extract the agent zip file to a new directory inside WEB-INF/lib
  2. Open apminsight.conf file in any text editor and add license.key value, which can be obtained from Site24x7 APM Insight page. Also provide the application name in the conf file.
  3. Repackage your application and deploy it on AWS Elastic Beanstalk.
  4. In AWS Console, go to Elastic Beanstalk and choose your application.
  5. Then navigate to Configurations > Software Configuration > JVM command line options to add the java argument
    -"-javaagent:/apminsight-javaagent jar"
    Note

    Saving the JVM configuration changes will restart the application server automatically.


    For Example: For installing agent in Tomcat container on linux, JVM argument would look like,
    -javaagent:/usr/home/tomcat/webapps/ROOT/WEB-INF/lib/site24x7/apminsight-javaagent.jar
    Note

    You can also pass the license key as a environment variable using key "S247_LICENSE_KEY" This can be added in Configurations > Software Configuration > Environment properties.

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!