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 Java agent.

Note: All the below mentioned steps refer to the Applications Manager to which the monitoring data is to be sent.
- Download the appropriate APM Insight Java Agent (apminsight-javaagent.zip) file.
- Extract the downloaded file (apminsight-javaagent.zip) to any folder. in the server where the Applications Manager is installed.
Sample location: D:\ManageEngine\JavaAgent - From the extracted files, open a file named "apminsight.conf".
- Update the URL of the Applications Manager (to which the monitoring data is to be sent) in the key "apm.host"
Ex: apm.host=https://localhost:8443 - Update the license key of the Applications Manager (to which the monitoring data is to be sent) in the key "license.key"
Ex: license.key=APMI_95ef70db7c637dd75f1b922bd7c9725d1ab59785987a35328af380447bf81e3f - To fetch the license key:
Applications Manager UI > "APM" tab > "Add New Monitor" > Copy the license key present in the page
- Provide a name for this application in the key "application.name". This will be used as the display name.
Ex: application.name=APM Self Monitoring - Save and close the "apminsight.conf" file.
- Restart the Applications Manager after these changes.
Example:
Once the above steps are completed, we need to map this agent to the Applications Manager, which you want to monitor. Please follow the steps below, based on the installation type.
Applications Manager - Standalone Installation
Follow the steps given below to add monitor the Applications Manager which is installed as standalone (non OPM Plugin installations). Steps vary a little based on the System OS (Windows/Linux) and start up method (Service/Non-Service).

Note: All the below mentioned steps need to performed on the Applications Manager which the user wants to monitor.
Applications Manager - Service startup
Windows installations
- Navigate to <AppManager_Home>/working/conf folder.
- Open wrapper.conf file in a text editor.
- Add the java agent property to the conf file, under the key wrapper.java.additional.<argument_number>, as mentioned below.
- Ensure that the <argument_number> is unique, and doesn't exist already in the conf file.
Ex: wrapper.java.additional.40=-javaagent:D:/<agent_directory_full_path>/apminsight-javaagent/apminsight-javaagent.jar

Note: Replace <agent_directory_full_path> with the full directory path where the APM Insight agent is installed.
Applications Manager - Non-Service start up
Windows installations
- Navigate to Applications Manager installed directory.
- Open startApplicationsManager.bat file in a text editor.
- Search for the "start javaw" command, and add the following entry next to the class path and save it.

-javaagent:<agent_directory_full_path>/apminsight-javaagent.jar
Example:
Linux installations
- Navigate to Applications Manager installed directory.
- Open startApplicationsManager.sh file in a text editor.
- Search for JAVA_OPTS, add the below argument at the start of the JAVA_OPTS property.

-javaagent:<agent_directory_full_path>/apminsight-javaagent.jar
Example:
Applications Manager - Plugin Installation
Navigate to the Applications Manger folder inside OpManager installed directory, and follow the above mentioned instructions based on the System OS and start up mode.
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) ...
Uninstrumented Block of Code - APM Insight
In the traces tab --> Slowest Method Calls and Count we show if you find Un-instrumented block of code the reason is as follows: Basically, What is un-instrumented block of code in APM Insight? By default, APM Insight agent monitors known frameworks ...
APM Insight Troubleshooting - FAQs
Monitor Addition - FAQs 1. How to add an APM Insight Monitor? After you deploy APM Insight agent in your Application Server with suitable Applications Manager credentials in apminsight.conf, APM Insight monitors will be added automatically when ...
Troubleshooting communication between APM Insight Agent and Applications Manager
APM Insight agent communicates to the Applications Manager through the HTTP/HTTPS protocol. Make sure the communication between Applications Manager server and agent server via HTTP/HTTPS is allowed in firewall.To check , open a browser in the APM ...
To monitor Self Contained .NET Core applications using .NET Core Agent Loader API
By default, when you install an APM Insight .NET Core agent, the agent will be loaded along with the .NET dependencies configurations. But in the case of self-contained applications, this is not possible. In these cases, you can install the .NET Core ...