# Install APM Insight Java Agent For seamless onboarding, you can use the [APM Insight AutoProfiler](https://www.manageengine.com/products/applications_manager/help/apm-insight-autoprofiler-overview.html) to automatically discover and instrument Java applications running on your server. To add a new Java Agent monitor in Applications Manager, go to the **APM tab** → **Add New Monitor** → **Java.** ![Applications Manager Installing APM Insight Java Agent: Adding Java monitor in APM Insight](https://www.manageengine.com/products/applications_manager/help/images/apm-insight-add-on.png) Based on the version of the build you are using, follow the steps given below to add a Java Agent monitor: - [Build version 172100 and above](https://www.manageengine.com/products/applications_manager/help/installing-transaction-agent.html#172100andabove) - [Build versions below 172100](https://www.manageengine.com/products/applications_manager/help/installing-transaction-agent.html#below172100) ## Add a new Java Agent monitor - Guided Installation (Build version 172100 & above) 1. Choose your preferred **deployment type** (Host/Container), **Operating System** (UNIX/Windows), and **Java framework** (Apache Tomcat, etc.,) based on your Java application and click **Next**. ![Applications Manager Installing APM Insight Java Agent: Choosing deployment type](https://www.manageengine.com/products/applications_manager/help/images/apm-insight-java-agent-install-1.png) 2. Enter the **configuration** details of your Java application to be monitored including the Application name, Application running port, and the Java version used by your application. The **Advanced Settings** dropdown displays Applications Manager details such as the protocol, host, port, and APM Insight license key. Click **Next**. **Note:** Ensure that the Applications Manager URL is reachable from the application server. If not, use the **Edit** option to provide the accessible IP address or hostname to connect to the Applications Manager for the agent to communicate. ![Applications Manager Installing APM Insight Java Agent: Specifying configuration details of application to be monitored](https://www.manageengine.com/products/applications_manager/help/images/apm-insight-java-agent-install-2.png) 3. Execute the command displayed in the UI as an Administrator and follow the steps displayed in the **Monitor addition** tab to complete the process: - Go to **Application installed server** → Navigate to **Application installed directory** → Open **Windows PowerShell / Terminal** based on OS type (with administrator privilege) → Execute the command displayed in the **Monitor Addition** view to complete the agent installation. **Note:** This command internally downloads the guided-installation script (to extract agent and configure APM host and license details) and the Java Agent from Applications Manager to complete agent installation. ![Applications Manager Installing APM Insight Java Agent: Agent installation via command execution](https://www.manageengine.com/products/applications_manager/help/images/apm-insight-java-agent-install-3.png) **Note:** Use the **Switch to manual steps** option in the Applications Manager UI if any environmental issues cause command execution failure, to follow the [Manual Installation](https://www.manageengine.com/products/applications_manager/help/installing-transaction-agent.html#below172100) steps. - Once the agent installation is successful, follow the steps given to **configure agent argument** in your Java application by performing framework steps shown in the APM GUI and restart your application to start monitoring. **Note:** **Restarting** your application is mandatory to start the monitoring process. The purpose is to instrument your application with the agent. ![Applications Manager Installing APM Insight Java Agent: Configuring Java arguments](https://www.manageengine.com/products/applications_manager/help/images/apm-insight-java-agent-install-3.2.png) - Perform some transactions in your application to view the performance data in Applications Manager. 4. Once the monitor addition is successful, perform some transactions to start monitoring. ## Add a new Java Agent monitor - Manual Installation (Build versions below 172100) ![Applications Manager Installing APM Insight Java Agent: Manual installation of Java agent](https://www.manageengine.com/products/applications_manager/help/images/apm-insight-java-agent-install.png) - Download the appropriate [APM Insight Java Agent](https://manageengine.com/products/applications_manager/apm-insight-agent-installation.html) (**apminsight-javaagent.zip**) file. **Note:** Users can verify the authenticity of the downloaded file by performing checksum validation. Click [here](https://www.manageengine.com/products/applications_manager/help/apm-insight-java-agent-checksum-validation.html) to learn more. - The zip file contains **apminsight-javaagent.jar**, **apminsight-javaagent-api.jar**, and its configuration files. This file should be copied to your Application Server. **Note:** Ensure that the Application server's user permission has been provided to the Agent Installed folder. - To configure the Java agent using system properties, [click here](https://www.manageengine.com/products/applications_manager/help/apm-insight-java-agent-configure-system-properties.html). - Click on the links below to learn how to install the APM Insight Java Agent in different Application Servers: - [Install APM Insight Java Agent in Apache Tomcat 6.x & above](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-tomcat.html) - [Install APM Insight Java Agent in AWS Elastic Beanstalk](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-aws-beanstalk.html) - [Install APM Insight Java Agent in Azure Web App](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-azure-webapp.html) - [Install APM Insight Java Agent in ColdFusion](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-coldfusion.html) - [Install APM Insight Java Agent in Glassfish 3.x servers & above and clustered environments](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-glassfish.html) - [Install APM Insight Java Agent in IBM WebSphere (WAS) 7.x servers & above](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-ibm-websphere.html) - [Install APM Insight Java Agent in JBoss AS 4.2.x & above](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-jboss-application-server.html) - [Install APM Insight Java Agent in JBoss EAP 6.2.x & above](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-jboss-eap.html) - [Install APM Insight Java Agent in Jira Server](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-jira.html) - [Install APM Insight Java Agent in JOnAS 4.x & above](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-jonas.html) - [Install APM Insight Java Agent in Oracle Weblogic 10.3.x servers & above](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-oracle-weblogic.html) - [Install APM Insight Java Agent in Resin 3.1.x servers & above](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-resin.html) - [Install APM Insight Java Agent in SonarQube](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-sonarqube.html) - [Install APM Insight Java Agent in Spring Boot Application](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-spring-boot.html) - [Install APM Insight Java Agent in WildFly 8.x servers & above](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-wildfly.html) - [Install APM Insight Java Agent in Docker](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-docker.html) - [Install APM Insight Java Agent in other servers](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-other.html) - [Install APM Insight Java Agent via System environment](https://www.manageengine.com/products/applications_manager/help/apm-insight-install-java-agent-via-system-environment.html) **Note:** - For older versions of Java (v2.3 & below), data collection might not happen after upgrading Applications Manager to version 14440 & above. To enable, include the following keys in the **apminsight.conf** file after extracting the APM Insight Java agent zip (*apminsight-javaagent.zip*) file: *license.key=[LICENSE KEY]* *apm.host=http://[HOST]:[PORT]* **Example:** *license.key=APMI_74447444b666d7ab5174cc3021a9b68dd4b3364d50f99c2969360810313e8fac* *apm.host=http://apm-prod-server:9090* - After including the above keys, save the file and restart the application. - You can also configure a secure APM URL. Ensure that the connection is stable and free from certificate-related issues. **Example:** *https://apm-prod-server:8443* - For an Applications Manager failover setup, you can specify multiple hosts in a comma-separated format (supported from **Java Agent v6.8**), as shown below: *apm.host=http://apm-prod-server-A:9090, http://apm-prod-server-B:9090* ## Troubleshooting: For troubleshooting tips, go to our [Support Portal](https://pitstop.manageengine.com/portal/kb/articles/apm-insight-troubleshooting-tips-java-agent)