Steps to Monitor Multiple Java applications running on a single server
Monitoring Multiple Java Applications on a Single Server:
Refer this
document to find your java agent version
Note: Ensure that agent's -D and -javaagent argument values — including the agent directory path and application name — should not be enclosed in double quotes.
APMInsight Java Agent 7.0 and Above
1.
Download and extract the
APMInsight Java agent and configure the host and license key of the Applications Manager Server (refer to the documentation for details) and add the following argument to each Java application startup file:
-javaagent:<agent_extracted_directory>/apminsight-javaagent.jar -Dapminsight.application.name=<application_name> -Dapminsight.agent.server.port=<application_running_port>
Example:
For windows,
-javaagent:D:\me\apminsight-javaagent\apminsight-javaagent.jar -Dapminsight.application.name=Ecommerce Application -Dapminsight.agent.server.port=8185
For Linux,
-javaagent:/opt/apminsight-javaagent/apminsight-javaagent.jar -Dapminsight.application.name=Ecommerce Application -Dapminsight.agent.server.port=8185
Note: The above argument must be added to each application's startup file with the corresponding application name and running port.
2. Restart your application server to start monitoring your application.
APMInsight Java Agent 6.8 and Below
1.
Download and extract the APMInsight Java agent. Delete the apminsight.conf file present in the extracted directory. Then, add the following argument to each application's startup file:
-javaagent:<agent_extracted_directory>/apminsight-javaagent.jar -Dapminsight.application.name=<application_name> -Dapminsight.agent.server.port=<application_running_port> -Dapminsight.home=<agent_extracted_directory>/<application_name> -Dapminsight.license.key=<your_apminsight_license_key> -Dapminsight.apm.host=<applications_manager_url>
2. Restart your application server to start monitoring your application.
Example:
-javaagent:D:/me/apminsight-javaagent/apminsight-javaagent.jar -Dapminsight.application.name=Ecommerce application -Dapminsight.agent.server.port=8185 -Dapminsight.home=D:/me/apminsight-javaagent/Ecommerce application -Dapminsight.license.key=APMI_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Dapminsight.apm.host=https://apm-prod-server:8443
Key Definitions:
- agent_extracted_directory: Directory where the agent is extracted.
- application_name: Name of your application.
- application_running_port: Running port of your application.
- your_apminsight_license_key: License key of the Applications Manager Server.
- applications_manager_url: Applications Manager Server URL.
New to ADSelfService Plus?