Install Java agent on AWS Beanstalk
Please follow the below steps to install Java agent on AWS Beanstalk:
Note
Refer to this help page for the previous steps.
- Extract the agent zip file to a new directory inside WEB-INF/lib
- 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.
- Repackage your application and deploy it on AWS Elastic Beanstalk.
- In AWS Console, go to Elastic Beanstalk and choose your application.
- Then navigate to Configurations > Software Configuration > JVM command line options to add the java argument
-"-javaagent:/apminsight-javaagent jar"
NoteSaving 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
NoteYou 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.