Help Docs

Installing Java Agent in a Spring Boot application

Note
Refer to this help page for the previous steps.
  1. Extract the zip file to a new directory to find agent jar and its configuration files
  2. Open the apminsight.conf file in any text editor, enter your license.key (which can be obtained from the Site24x7 APM Insight page), configure the application.name and agent.server.port values as required, and save the file. Refer here to fine-tune the agent settings.
    Note

    If multiple Java applications or instances are running on the same host, configure application-specific properties, such as application.name and agent.server.port, as JVM system properties instead of configuring them in the apminsight.conf file. For more information, refer to this KB article.

  3. Add the following argument to your application startup command.
    java -javaagent:<agent_directory_full_path>/apminsight-javaagent.jar <your_application_JVM_args_if_any> -jar <spring_application>.jar
    Example:
    java -javaagent:/opt/apm/apminsight-javaagent.jar -jar <spring_appliction>.jar

Video

Here's a quick video on how to install a Site24x7 APM Insight Java agent in a Spring Boot application.

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!