--- title: "How to Monitor Java AWS Elastic Beanstalk with Retrace" slug: "aws-installation-linux-aws-elastic-beanstalk" description: "Easily install Retrace Linux Agent & Java APM on AWS Elastic Beanstalk (Tomcat). Just follow the step-by-step instructions provided." updated: 2020-01-07T19:27:38Z published: 2020-01-07T19:27:38Z canonical: "docs.stackify.com/aws-installation-linux-aws-elastic-beanstalk" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.stackify.com/llms.txt > Use this file to discover all available pages before exploring further. # AWS Elastic Beanstalk (Linux/Tomcat) ## Install for AWS Elastic Beanstalk (Tomcat) Instructions on how to install the Retrace Linux Agent and Java APM on [AWS Elastic Beanstalk](https://aws.amazon.com/elasticbeanstalk). ### Installing Stackify Linux Agent 1. Create a new file named **stackify.config** in your application’s **.ebextensions** folder. [Learn More about .ebextensions](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html). 2. Add the following to your **stackify.config** file: Replace `[INSERT ACTIVATION KEY]` with your activation key value. Optionally you can include the device name by adding `--devicealias "Custom Device Name"` with the desired device name. You can find your activation key under [Settings: Account](https://s1.stackify.com/Manage/AccountInfo). ``` sources: /home/ec2-user: https://s1.stackify.com/Account/AgentDownload/Linux commands: 01: command: sudo ./agent-install.sh --key [INSERT ACTIVATION KEY] --environment "Production" cwd: /home/ec2-user/stackify-agent-install-32bit test: "[ ! -d /usr/local/stackify ]" ``` 1. Deploy your app to Elastic Beanstalk - [Deploy using the **AWS Console**](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deploy-existing-version.html) - [Deploy using **eb deploy**](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html) ### Installing Stackify Java APM 1. Go to Elastic Beanstalk Environment Configuration and click on **Software Configuration** 2. Add the following to **JVM command line options**: ``` -javaagent:/usr/local/stackify/stackify-java-apm/stackify-java-apm.jar ``` 1. Restart App Server(s).