Installing Java agent in JOnAS 7.0 and above
Note
Refer to this help page for the previous steps.
- Extract the zip file to a new directory to find agent jar and its configuration files
- 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.
NoteIf 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.
- For Windows, open <JONAS_ROOT>\bin\jonas.bat in any text editor and add the following entry at the top and save the file.
set JONAS_OPTS=%JONAS_OPTS% -javaagent:<agent_directory_full_path>/apminsight-javaagent.jar
- For Linux, open <JONAS_ROOT>/bin/jonas in any text editor and append the following value to JONAS_OPTS variable
"-javaagent:<agent_directory_full_path>/apminsight-javaagent.jar"
