Installing Java Agent in Other Java Servers

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 OpManager Nexus 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 "-javaagent:<agent_directory_full_path>/apminsight-javaagent.jar" to the server JVM configurations.
Note

The argument '-javaagent' is similar to other Java arguments such as -X and -D. The argument must be added to your server configuration where heap memory, garbage collector, or system properties are configured. These configurations might be in a separate file or included in the command/script used to start your application server.

  1. Restart the application server.
Shortlink has been copied!