Install APM Insight Java Agent in AWS Elastic Beanstalk

  • Create a new directory under <APP_HOME>/WEB-INF/lib, say appmanager.
  • Download latest the APM Insight java agent zip file ( here
  • Extract the zip file to a appmanager directory to find agent jar and its configuration files.
  • Open the apminsight.conf¬†file in any text editor and include the following keys:
    license.key=[LICENSE KEY][HOST]:[PORT]/


    To learn more about the configurations, visit our Configuration Guide page.
  • Repackage your application and deploy it on AWS Elastic Beanstalk.
  • In AWS Console, go to Elastic Beanstalk and choose your application.
  • Navigate to Configurations > Software Configuration > JVM command line options to add the java argument
    -javaagent:<APP_HOME>/WEB-INF/lib/apminsight-javaagent jar

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

    Example: For installing agent in Tomcat container on linux, JVM argument would look like: