Install APM Insight Java Agent in Spring Boot Application

Follow the below steps to install APM Insight Java agent in Spring Boot applications:

  1. Download the latest APM Insight Java agent ( file.
  2. Extract the zip file to a new directory to find agent jar and its configuration files.
  3. 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 agent configurations, visit our Configuration Guide page.

  4. Modify your application start up command by including the argument -javaagent:<agent_directory_full_path>/apminsight-javaagent.jar as mentioned below:

    java -javaagent:<agent_directory_full_path>/apminsight-javaagent.jar <Your JVM arguments> -jar <Your application>.jar


    java -javaagent:D:/apm/apminsight-javaagent.jar -Xms64m -Xmx1024m -jar MyApplication.jar

  5. Note: Please ensure that the -javaagent argument is placed before -jar parameter in the startup command.