Help APM Add Java Agent Install Java agent on AWS Beanstalk

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"
    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
    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?
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 AWS Beanstalk