Steps to Monitor Multiple Java applications running on a single server
Monitoring Multiple Java Applications on a Single Server
To monitor multiple Java applications running on a single server, the following steps can be followed:
APMInsight Java Agent 7.0 and above
Add the Java Agent Argument in Each Application Startup Script: (Recommended)
- Add the below argument in the each application startup file
- -javaagent:"<agent_extracted_directory>/apminsight-javaagent.jar" -Dapminsight.application.name=<application_name> -Dapminsight.agent.server.port=<application_running_port>
Example : -javaagent:"D:\me\javaagent\apminsight-javaagent.jar" -Dapminsight.application.name="Ecommerce Application" -Dapminsight.agent.server.port=8080

Note : The above argument needs to be added to each application startup file with the corresponding application name and running port.
2. Restart your application Server to start monitoring your application
Add the Java Agent Argument in the Environment Variables of the Machine:
- Download the APMInsight Java agent and configure the host and license key of the Applications Manager Server - reference link
- Remove the default below key and values from the apminsight.conf file
- application.name=My Application
- agent.server.port=8080
- Add the below key and value in the apminsight.conf file
- auto.appname.enabled=true
- Configure the below key and value in the environment variables of the machine
- JAVA_TOOL_OPTIONS=-javaagent:"<agent_extracted_directory>/apminsight-javaagent.jar"
4. Start the Java application in a new terminal session.

Note : Adding the java agent argument on the environment level will add all the process created in the machine as a monitor in applications manager
APMInsight Java Agent 6.8 and below
- Add the below argument in the each application startup file
- -javaagent:"<agent_extracted_directory>/apminsight-javaagent.jar" -Dapminsight.application.name=<application_name> -Dapminsight.agent.server.port=<application_running_port> -Dapminsight.home=<home_directory_of _the_application> -Dapminsight.license.key=<your_apminsight_license_key> -Dapminsight.apm.host=<applications_manager_url>
Example : -javaagent:"D:/me/javaagent/apminsight-javaagent.jar" -Dapminsight.application.name='Ecommerce application' -Dapminsight.agent.server.port=8080 -Dapminsight.home="D:/me/myapplication" -Dapminsight.license.key=APMI_c6347e3652d5aae29d012a4a04f2f012572b183ae7b0845661dca95cb762c9d2 -Dapminsight.apm.host="htts://apm-prod-server:8443"
agent_extracted_directory - Directory where the agent is extracted
- application_name - Name of your application
- application_running_port - Running port of your application
- home_directory_of _the_application - Home directory of your application to store the agent related files.(Kindly provide a unique folder for each instance)
- your_apminsight_license_key - License key of the Applications Manager Server
- applications_manager_url - Application Manager Server Url
New to ADSelfService Plus?
Related Articles
Self monitor Applications Manager using Real User Monitoring
We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...
Real User Monitor (RUM) - Troubleshooting
If the monitor has not polled data for a long time, follow the steps below for troubleshooting: Step 1: Check the RUM Agent configuration Real User Monitor requires the RUM Agent to be installed and mapped to the Applications Manager. Refer the help ...
Self monitor Applications Manager using APM Insight Java Agent
Applications Manager is built with Java, hence we can monitor it using APM Insight Java Agent to measure it's performance continuously, which can be very much useful. Setting up APM Insight Java Agent Follow the below steps to download and set up the ...
Adding APM Insight Java agent in a Kubernetes environment
There are three methods for installing the APM Insight Java agent in a Kubernetes environment: Using Dockerfile Using InitContainers Using Persistent Volumes Prerequisites Download the latest APM Insight Java agent ZIP file. Extract the ZIP file and ...
Mail Server Monitor - Troubleshooting
Common Mail Server Monitor Errors and Troubleshooting Guide 1. Unknown Host Error Description: This error occurs when the mail client cannot resolve the hostname of the mail server to an IP address. The issue typically arises from DNS resolution ...