APM Insight Java Agent – Onboarding & Troubleshooting Guide

APM Insight Java Agent – Onboarding & Troubleshooting Guide

This guide helps support engineers troubleshoot cases where the APM Insight Java Agent is not onboarding (not appearing in Applications Manager) after installation. Follow the step-by-step verification checklist in Section 2 to quickly diagnose and resolve the issue.

Quick Navigation


1. What is the APM Insight Java Agent?

The APM Insight Java Agent is a small software component that gets installed alongside the customer's Java application. Once installed and the application is restarted, it automatically monitors the application's performance and sends data to Applications Manager.

What it monitors:

  • Web page response times and background jobs
  • Database queries (SQL)
  • External HTTP calls made by the application
  • JVM health (memory usage, threads, garbage collection)
  • Application errors and exceptions

Supported Java Versions: JDK/JRE 1.5 to 24

  • Agent v7.x (current) requires Java 8 or above
  • For Java 5–7, a legacy agent version (v5.5) is available

Key files to know:

apminsight-javaagent.jar The agent file — loaded via -javaagent JVM argument
apminsight.conf Configuration file — contains license key, AppManager URL, app name, port
apminsight_startup_*.log Startup log — first file to check during troubleshooting
apminsight_agent_*.log Runtime log — ongoing activity, data dispatch, errors
Note: After initial installation, all agent configuration (thresholds, sampling, SQL capture, etc.) is managed from the Applications Manager web UI — not by editing apminsight.conf. Only the initial onboarding keys (license.key, apm.host, application.name, agent.server.port) are set during installation.

Configure from either:
  • APM → Your Application → Monitor Actions → Edit → APM Insight Agent Configuration Profile → Edit (Pencil icon)
  • Settings → Discovery & Data Collection → APM Insight Agent Configuration Profile → Default profile-JAVA / appropriate profile
2. Onboarding Verification Checklist (TODO Steps)
How to use this checklist: Follow these steps in order when a customer reports that the Java agent is not onboarding. Each step tells you exactly what to check, what commands to run, what the expected result should be, and what to do if it fails. This checklist works for all environments (Linux, Windows, any app server).
Warning Important: All checks must be performed on the customer's application server machine (where the agent is installed) — not on the Applications Manager server (unless specifically stated).
Before You Start: Navigate to Agent Directory & Verify Java Process

Why: All subsequent checks assume you are inside the agent directory. Also, before troubleshooting the agent, confirm that the customer's Java application is actually running and check how it was started.

Step A: Navigate to the agent directory

All commands in this checklist are relative to the agent directory. First, cd into it:

🐧 Linux
⊞ Windows
🐧 Linux
Quotecd <agent_directory>
⊞ Windows
Quotecd <agent_directory>


 


Step B: Verify the Java application is running and check its process command line

Before checking the agent, confirm that the customer's Java application process is running and inspect its startup command to verify the -javaagent argument is present.

🐧 Linux
⊞ Windows
🐧 Linux
Quoteps -ef | grep java | grep -v grep
⊞ Windows
QuoteGet-WmiObject Win32_Process -Filter "name='java.exe'" | Select-Object ProcessId, CommandLine | Format-List
✅ Java process found with -javaagent:...apminsight-javaagent.jar in command line Good — the application is running and the agent argument is configured. Proceed to Step 1.
⚠ Java process found but NO -javaagent argument The agent was not added to the application startup. Ask the customer to add the -javaagent argument to the correct configuration file (see Section 5) and fully restart the application.
❌ No Java process found The customer's application is not running. Ask them to start it first, then proceed with troubleshooting.
Tip: Save the process command output — it will be useful for later steps (checking Java version, competing agents, -Dapminsight.home usage, etc.).
A. Agent Loading Issues
Step 1: Does the agent startup log exist?

Why: The startup log is created when the agent loads into the Java application. If it doesn't exist, the agent was never loaded.

What to check: Look for a file named apminsight_startup_<timestamp>_<PID>.log in the agent directory.

How to check:

🐧 Linux
⊞ Windows
🐧 Linux
Quotels -lt apminsight_startup_*.log
⊞ Windows
QuoteGet-ChildItem "apminsight_startup_*.log" | Sort-Object LastWriteTime -Descending

Expected result: One or more startup log files should exist. Check the latest one (most recent timestamp).

✅ Log exists Agent was loaded. Proceed to Step 2.
❌ No log file found Agent was NOT loaded. The -javaagent argument is either missing, incorrect, or placed in the wrong configuration file. Check the following:
  1. Verify the -javaagent argument is added to the correct configuration file for the application server and OS (refer to Section 5).
  2. Verify the path to apminsight-javaagent.jar in the argument is correct and the file exists at that path.
  3. Confirm the application was fully restarted (not just reloaded/redeployed) after adding the argument.
  4. For server-specific issues (JBoss on Windows, WebLogic Admin Server, Spring Boot as Windows Service), refer to Server-Specific Issues KB.
Step 2: Did the agent load into the JVM successfully?

Why: Even if the startup log exists, the agent may have failed during initialization.

What to check: Open the latest apminsight_startup_*.log and look for the success message.

How to check:

🐧 Linux
⊞ Windows
🐧 Linux
Quotegrep -i "hooked up with JVM" apminsight_startup_*.log
⊞ Windows
QuoteSelect-String -Path "apminsight_startup_*.log" -Pattern "hooked up with JVM"

Expected result:

[INFO]: APM Insight javaagent v7.x.x.x successfully hooked up with JVM (PID:xxxxx)
✅ Message found Agent loaded successfully. Proceed to Step 3.
❌ Message not found or errors Open the startup log and check the first few lines for error messages. Common causes: incompatible Java version, corrupt JAR file, or permission issues. Proceed to Step 4 to verify Java version.
Step 3: Was the application fully restarted?

Why: The agent only loads when the JVM starts. A "hot reload" or "redeploy" through the application server admin console does NOT reload the agent.

What to check: Confirm the customer performed a full application server restart (stop + start) after adding the -javaagent argument.

How to verify:

Check the timestamp on the latest apminsight_startup_*.log — it should be after the most recent restart time.

🐧 Linux
⊞ Windows
🐧 Linux
Quotels -lt apminsight_startup_*.log | head -1
⊞ Windows
QuoteGet-ChildItem "apminsight_startup_*.log" | Sort-Object LastWriteTime -Descending | Select-Object -First 1
✅ Timestamp matches recent restart Restart is confirmed. Proceed to Step 4.
❌ Timestamp is old / doesn't match Ask the customer to perform a full stop and start of the application server (not just a reload or redeploy). Then recheck from Step 1.
B. Configuration & Environment
Step 4: Is the Java version supported?

Why: The current agent (v7.x) requires Java 8 or above. Older Java versions need a legacy agent.

What to check: The Java version of the application (not just what's installed on the system — the application may use a different Java).

How to check (from startup log — easiest method):

🐧 Linux
⊞ Windows
🐧 Linux
Quotegrep -i "java version\|java.version\|JVM Version" apminsight_startup_*.log
⊞ Windows
QuoteSelect-String -Path "apminsight_startup_*.log" -Pattern "java version|java.version|JVM Version"

Alternative — check from command line:

Quotejava -version

Note: The java -version command shows the system default Java. The application may use a different Java version. Always prefer checking from the startup log.

✅ Java 8 or above Compatible with current agent. Proceed to Step 5.
❌ Java 5, 6, or 7 Current agent (v7.x) does NOT support this version. Options:
  1. Ask the customer to upgrade to Java 8+ (recommended), or
  2. Use legacy agent v5.5 (for Java 5–7)

Supported JVM list: JVM / JDK Supported

Step 5: Is the configuration file (apminsight.conf) correct?

Why: The agent needs four key settings to connect to Applications Manager. If any of them are wrong, empty, or missing, the agent cannot onboard.

What to check: Open apminsight.conf in the agent directory and verify these four values:

Setting What it should be How to verify
license.key APM Insight license key from Applications Manager In AppManager: APM → Add New Monitor → Java → copy the license key from the right panel
apm.host Full URL of Applications Manager (e.g., https://appmanager.example.com:8443) In AppManager: Settings → Tools → Support → Installation Information → note Web Server Port & SSL Port
application.name A meaningful name for the monitored application Should not be empty
agent.server.port Port where the customer's application runs (e.g., 8080) Should match the actual application port

How to check (quick view):

🐧 Linux
⊞ Windows
🐧 Linux
Quotegrep -E "^(license\.key|apm\.host|application\.name|agent\.server\.port)" apminsight.conf
⊞ Windows
QuoteSelect-String -Path "apminsight.conf" -Pattern "^(license\.key|apm\.host|application\.name|agent\.server\.port)"
✅ All four values present and correct Configuration looks good. Proceed to Step 6.
❌ File is empty or values are missing/wrong If the conf file is completely empty, this is likely a shared directory issue — see Step 11. Otherwise, ask the customer to fill in the correct values and restart the application.
Step 6: Does the instance folder exist?

Why: From agent v7.x onwards, the agent creates an instance subdirectory named <application.name>_<port> (e.g., MyApp_8080) inside the agent directory. All runtime logs (apminsight_agent_*.log) and instance-specific data are maintained in this folder. If this folder doesn't exist, the agent never completed registration.

What to check: Look for a subdirectory matching the pattern <app-name>_<port> (or <app-name>:<port>) inside the agent directory.

How to check:

🐧 Linux
⊞ Windows
🐧 Linux
Quotels -ld */
⊞ Windows
QuoteGet-ChildItem -Directory

Expected result: A folder named like MyApp_8080 (matching the application.name and agent.server.port from apminsight.conf). Inside it, you should find apminsight_agent_*.log files.

✅ Instance folder exists with agent logs Agent registered and created its instance directory. Check apminsight_agent_*.log inside the folder for ongoing activity and errors. Proceed to Step 7.
⚠ Instance folder exists but no agent logs inside The agent started registration but may have failed. Check the startup log (apminsight_startup_*.log) for connection errors or response codes. Proceed to Step 7.
❌ No instance folder found The agent never completed onboarding. Possible causes:
  1. Connection to Applications Manager failed — see Step 7
  2. Invalid license key or license expired — see Step 8
  3. Permission issues — see Step 10
  4. Shared directory conflict — see Step 11
Continue with the remaining steps to identify the root cause.
Note: If the customer uses -Dapminsight.home=<custom_path>, the instance folder will be created at that custom path instead of the default agent directory. Check the process command line (from Before You Start) for the -Dapminsight.home value.
C. Connectivity & License Issues
Step 7: Can the agent reach Applications Manager? (Network Connectivity)

Why: The agent needs to communicate with Applications Manager over the network. If there's a firewall, proxy, or incorrect URL, the agent cannot send data.

What to check: From the customer's application server machine (where the agent is installed), test if Applications Manager is reachable.

How to check:

🐧 Linux
⊞ Windows
🐧 Linux
Quotecurl -ks <apm.host value from conf>/index.do | grep -i 'Applications Manager'
⊞ Windows
Quoteadd-type 'using System.Net;using System.Security.Cryptography.X509Certificates;public class TrustAllCertsPolicy : ICertificatePolicy {public bool CheckValidationResult(ServicePoint a,X509Certificate b,WebRequest c,int d){return true;}}';[System.Net.ServicePointManager]::CertificatePolicy=New-Object TrustAllCertsPolicy;(Invoke-WebRequest -Uri '<apm.host value from conf>/index.do').Content -split "`n" | Where-Object {$_ -match 'Applications Manager'}

Note: Replace <apm.host value from conf> with the actual URL from apminsight.conf (e.g., https://appmanager.example.com:8443). Use https:// if SSL is enabled, otherwise http://.

Also check the startup log for connection errors:

🐧 Linux
⊞ Windows
🐧 Linux
Quotegrep -i "Connection.*failed\|SSL handshake\|endpoints failed" apminsight_startup_*.log
⊞ Windows
QuoteSelect-String -Path "apminsight_startup_*.log" -Pattern "Connection.*failed|SSL handshake|endpoints failed"
✅ curl/PowerShell output contains "Applications Manager" Network connectivity is fine. Proceed to Step 8.
❌ Connection failed / No output / Timeout Resolution:
  1. Verify the apm.host URL in apminsight.conf is correct (check from AppManager: Settings → Tools → Support → Installation Information).
  2. Ask the customer to check firewall rules — the agent machine must be able to reach the AppManager host:port.
  3. If a proxy is required, add proxy settings in apminsight.conf:
    behind.proxy=true
    proxy.server.host=proxyserver
    proxy.server.port=proxyport
    proxy.auth.username=proxyuser
    proxy.auth.password=proxypassword
  4. Restart application after changes.
⚠ "SSL handshake failed" / "curveId: 29" This is an SSL/TLS compatibility issue with older Java 8 versions. Resolution (choose one):
  1. Add this JVM argument: -Djdk.tls.namedGroups="secp256r1,secp384r1,secp521r1"
  2. Upgrade JVM to Java 11+
  3. Downgrade agent to v7.4 (Upgrade/Downgrade steps)
Step 8: What response code did the agent receive?

Why: When the agent connects to Applications Manager, the server sends back a response code. This code tells us exactly what's happening.

How to check:

🐧 Linux
⊞ Windows
🐧 Linux
Quotegrep -i "Response Code" apminsight_startup_*.log
⊞ Windows
QuoteSelect-String -Path "apminsight_startup_*.log" -Pattern "Response Code"

What the response codes mean and what to do:

Code Meaning What to do
911 Success. Agent is active and sending data. No action needed. If the application still doesn't appear in the UI, ask the customer to generate some traffic (hit the application endpoints) and wait a few minutes.
901 Invalid license key. The license.key in apminsight.conf doesn't match the AppManager instance configured in apm.host. Get the correct key from: APM → Add New Monitor → Java → right panel → copy license key. Update and restart. Grace period: 3 days.
701 License expired. The "APM Insight Java Add-On" license has expired. Renew the license. Agent auto-recovers within 15-day grace period (no restart needed). Check in AppManager: APM → Add New Monitor → Java to verify license status.
702 License instance limit exceeded. Too many agents for current license. Upgrade license or remove/unmanage unused monitors. Grace period: 15 days.
900 Monitor was deleted from AppManager. Re-add the monitor within 3 days. Otherwise, restart the application after re-adding. Grace period: 3 days.
910 Monitor is unmanaged. The monitor is set to "Unmanaged" in AppManager UI. Manage it from the APM tab. Agent resumes automatically.

For detailed response code information, see Section 3.

✅ Response code 911 (Success) Agent is connected and working. If data is still not appearing, ask the customer to generate traffic and wait 2-3 minutes.
❌ Any other code or no response code Follow the action listed for that code in the table above. If no response code is found, go back to Step 7 to check connectivity.
D. Agent Conflicts & Environment
Step 9: Are there competing APM agents?

Why: Running multiple bytecode instrumentation agents (like Dynatrace, New Relic, AppDynamics, Glowroot) alongside APM Insight is NOT supported and can cause JVM instability, application crashes, WAR deployment failures, excessive memory usage, and unpredictable monitoring behavior.

What to check: See if other monitoring agent arguments are present in the Java process.

How to check (from startup log — easiest):

🐧 Linux
⊞ Windows
🐧 Linux
Quotegrep -i "Java Arguments" apminsight_startup_*.log | grep -iE "dynatrace|appdynamics|glowroot|newrelic|agentpath|elastic.*apm"
⊞ Windows
QuoteSelect-String -Path "apminsight_startup_*.log" -Pattern "Java Arguments" | Select-String -Pattern "dynatrace|appdynamics|glowroot|newrelic|agentpath|elastic.*apm"

Alternative — check the running process directly:

🐧 Linux
⊞ Windows
🐧 Linux
Quoteps -ef | grep java | grep -iE "javaagent|agentpath"
⊞ Windows
QuoteGet-WmiObject Win32_Process -Filter "name='java.exe'" | Select-Object CommandLine | Format-List

How to identify each competitor agent:

Agent How to detect in process args Also check for Removal steps
Dynatrace OneAgent -agentpath:*/liboneagentloader.so (Linux)
-agentpath:*/oneagentloader.dll (Windows)
Environment variables: DT_TENANT, DT_CONNECTION_POINT, LD_PRELOAD containing oneagent Remove the -agentpath argument from the application startup config. If auto-injected by OneAgent, disable auto-injection for the process or uninstall OneAgent from the host. Restart the application.
New Relic -javaagent:*/newrelic.jar or -javaagent:*/newrelic-agent.jar Environment variables: NEW_RELIC_LICENSE_KEY, NEW_RELIC_APP_NAME, NEW_RELIC_HOME
Config file: newrelic.yml
Remove the -javaagent:*/newrelic*.jar argument. Unset New Relic environment variables if present. Restart the application.
AppDynamics -javaagent:*/javaagent.jar (with AppDynamics path, e.g., */appagent/javaagent.jar) System properties: -Dappdynamics.controller.hostName, -Dappdynamics.agent.tierName Remove the -javaagent argument and all -Dappdynamics.* system properties. Restart the application.
Glowroot -javaagent:*/glowroot.jar Remove the -javaagent:*/glowroot.jar argument. Restart the application.
Elastic APM -javaagent:*/elastic-apm-agent*.jar System properties: -Delastic.apm.*
Config file: elasticapm.properties
Remove the -javaagent argument and -Delastic.apm.* properties. Restart the application.
Warning Important: Dynatrace, New Relic, AppDynamics, and Glowroot all use bytecode instrumentation — the same technique as APM Insight. Running two bytecode agents simultaneously causes class transformation conflicts leading to: JVM crashes (hs_err_pid*.log), WAR deployment hangs, intermittent 500 errors, and excessive memory consumption. This is confirmed by all major APM vendors' documentation — co-existence is NOT supported by any of them.

Known symptoms when multiple agents are loaded:

  • ClassNotFoundException or NoClassDefFoundError during application startup
  • JVM crashes with hs_err_pid*.log files generated
  • Application server hangs during WAR/EAR deployment
  • Intermittent HTTP 500 errors under load
  • Significant increase in JVM memory usage
✅ Only APM Insight agent found No conflict. Proceed to Step 10.
❌ Other agent(s) found Resolution: Ask the customer to remove or disable the competing agent using the removal steps in the table above. The competing agent must be fully removed (argument + environment variables) and the application must be restarted before proceeding. Validate stability after removal before continuing with APM Insight troubleshooting.
Step 10: Does the application user have permissions on the agent folder?

Why: The agent needs to write log files and temporary data into its directory. If the user running the application doesn't have write access to the agent folder, the agent will fail silently.

What to check:

  1. Find out which user account is running the application.
  2. Check if that user has read/write permission on the agent directory.

How to check:

🐧 Linux
⊞ Windows
🐧 Linux

Find the application user:

Quoteps -ef | grep java

(The first column shows the username running the process.)

Check agent folder ownership:

Quotels -la <agent_directory>

Fix permissions if needed:

Quotechown -R <app_user>:<app_group> <agent_directory>
⊞ Windows

Find the application user:

Open Task ManagerDetails tab → find the java.exe process → note the "User name" column.

Check agent folder permissions:

Right-click the agent folder → PropertiesSecurity tab → check if that user has Read & Write access.

Fix permissions if needed:

Right-click agent folder → PropertiesSecurityEditAdd the user → Allow Read & Write.

✅ Application user has read/write access Permissions are fine. Proceed to Step 11.
❌ Wrong owner or missing permissions Resolution: Fix ownership/permissions using the commands in the tab above, then restart the application.
Step 11: Are multiple JVMs sharing the same agent directory?
Warning This is one of the most common onboarding failures!

Why: If the customer runs multiple Java applications (e.g., microservices) on the same server and they all point to the same agent folder, the configuration file gets corrupted because multiple processes try to write to it at the same time.

Signs of this issue:

  • The apminsight.conf file is completely empty or has garbled/truncated content
  • Multiple applications show with "license.key is invalid" errors
  • Different applications appear as the same instance in Applications Manager
  • Port shown in AppManager doesn't match what the customer configured

How to verify:

Ask the customer: "Are you running multiple Java applications on this server?" If yes, check if they all reference the same -javaagent path.

🐧 Linux
⊞ Windows
🐧 Linux
Quoteps -ef | grep java | grep -o "\-javaagent:[^ ]*\|\-Dapminsight.home=[^ ]*"
⊞ Windows
QuoteGet-WmiObject Win32_Process -Filter "name='java.exe'" | Select-Object CommandLine | Format-List

Look for multiple processes using the same agent JAR path without a -Dapminsight.home argument.

✅ Each JVM has its own directory (or only one JVM) No conflict. If all previous steps passed and the issue persists, escalate with the details collected from all steps above.
❌ Multiple JVMs share the same directory Resolution: Each application must have its own agent directory. Ask the customer to use -Dapminsight.home to point each JVM to a unique directory:
-javaagent:/opt/apminsight-agent/apminsight-javaagent.jar
-Dapminsight.home=/opt/apminsight-agent/<app_name>
-Dapminsight.application.name=<app_name>
-Dapminsight.agent.server.port=<app_port>
-Dapminsight.license.key=<license_key>
-Dapminsight.apm.host=<appmanager_url>
Each application gets a separate folder under the agent directory using -Dapminsight.home.
Refer: KB: Monitor Multiple Applications on Single Server
Quick Summary — Checklist Flow:
Before You Start: cd <agent_directory> + verify Java process running
A. Agent Loading Issues
Step 1: Startup log exists? → If NO: -javaagent not applied
Step 2: Agent loaded? → If NO: Check errors in startup log
Step 3: Full restart done? → If NO: Stop + Start application
B. Configuration & Environment
Step 4: Java version OK? → If NO: Upgrade Java or use legacy agent
Step 5: Config file correct? → If NO: Fix 4 required values
Step 6: Instance folder exists? → If NO: Check connection/license/permissions
C. Connectivity & License Issues
Step 7: Network reachable? → If NO: Fix URL / firewall / proxy
Step 8: Response code? → Map code to resolution
D. Agent Conflicts & Environment
Step 9: Competing agents? → If YES: Remove other agent
Step 10: Folder permissions? → If NO: Fix ownership
Step 11: Shared directory? → If YES: Use -Dapminsight.home
3. Agent Response Codes (Detailed Reference)

When the agent connects to Applications Manager, it receives a response code. This code is logged in apminsight_startup_*.log and apminsight_agent_*.log.

911 – MANAGE_AGENT (Normal / Success)
Sample Log:
[26 Feb 2026 15:50:39.609][apminsight-2-thread-2][INFO]: Collector Response Code: 911(Manage the agent.)
[26 Feb 2026 15:50:39.610][apminsight-2-thread-2][INFO]: 47 metric(s) dispatched for context ''. Context currently enabled:true
What it means: The agent is active, connected, and successfully sending monitoring data. This is the normal success response.
Action: None needed. Agent is working correctly.
901 – INVALID_AGENT
Sample Log:
[24 Jan 2026 10:53:53.695][apminsight-services-starter][INFO]: Collector Response Code: 901(Invalid agent.)
java.lang.RuntimeException: Agent didnot receive instance-id from server.
What it means: The license key in the agent config doesn't match the Applications Manager it's connecting to.
Grace period: Agent shuts down after 3 days.
Action: Get the correct license key from: APM → Add New Monitor → Java → right panel → copy the key. Update license.key in apminsight.conf and restart the application.
701 – LICENSE_EXPIRED
Sample Log:
[24 Jan 2026 10:53:53.695][apminsight-services-starter][INFO]: Collector Response Code: 701(License expired. Kindly update license!)
What it means: The "APM Insight Java Add-On" license on Applications Manager has expired.
Grace period: Agent shuts down after 15 days.
Action: Renew the license. Agent auto-recovers within the grace period (no app restart needed). If the grace period has passed, restart the application after renewing.
702 – LICENSE_INSTANCES_EXCEEDED
Sample Log:
[24 Jan 2026 10:53:53.695][apminsight-services-starter][INFO]: Collector Response Code: 702(Number of instances supported for this license exceeds the limit.)
What it means: The customer has more agents reporting than their license allows.
Grace period: Agent shuts down after 15 days.
Action: Upgrade the license or remove/unmanage unused monitors to free up slots.
900 – DELETE_AGENT
Sample Log:
[24 Jan 2026 10:53:53.695][apminsight-services-starter][INFO]: Collector Response Code: 900(Delete the agent.)
What it means: The monitor was deleted from Applications Manager UI.
Grace period: Agent shuts down after 3 days.
Action: Re-add the monitor within 3 days or restart the application after re-adding it.
910 – UNMANAGE_AGENT
Sample Log:
[24 Jan 2026 10:53:53.695][apminsight-services-starter][INFO]: Collector Response Code: 910(Unmanage the agent.)
[24 Jan 2026 10:53:53.710][apminsight-services-starter][INFO]: Disabling monitoring for context '...'
What it means: The monitor is set to "Unmanaged" in AppManager. Agent stays loaded but doesn't collect data.
Action: Manage the monitor from the APM tab in Applications Manager. Agent resumes automatically.
Quick Reference:
• Code 911 → Normal success (agent active, metrics dispatched)
• Codes 701, 702 → 15-day grace period
• Codes 900, 901 → 3-day grace period
• Code 910 → Only disables monitoring (no shutdown)
Agent auto-recovers when the issue is resolved within the grace period (no restart needed).
4. Agent Log Files & Key Patterns

What log files does the agent create?

File Location When to look at it
apminsight_startup_*.log Agent root directory Always check this first. Shows startup, configuration loaded, connection attempts.
apminsight_agent_*.log Instance subdirectory For ongoing issues (data not sent, errors after initial onboarding).
apminsight.conf Agent root & instance dir To verify configuration values.

What to look for in the logs

You see this in the log... What it means
successfully hooked up with JVM Good — agent loaded successfully into the application.
Agent successfully connected to the server Good — agent connected to Applications Manager.
Connection to ... has failed Agent cannot reach Applications Manager. See Step 7.
SSL handshake failed SSL/TLS compatibility issue. See Step 7 (SSL section).
Response Code: 901 Invalid license key. See Step 8.
Response Code: 701 License expired. See Step 8.
Response Code: 911 Normal success — agent is active and sending data.
Disabling monitoring Monitor is set to "Unmanaged" in AppManager. Manage it from the UI.
Agent shutting down Agent stopped. Check the lines before this for the reason.

What a successful startup looks like

[24 Jan 2026 10:52:10.120][main][INFO]: APM Insight javaagent v7.x.x.x successfully hooked up with JVM (PID:12345)
[24 Jan 2026 10:52:10.250][main][INFO]: apm.host configured: https://appmanager.example.com:8443
[24 Jan 2026 10:52:10.300][main][INFO]: APM Insight agent started successfully.
[24 Jan 2026 10:52:15.500][apminsight-services-starter][INFO]: Identified 1 contexts. Initiating context registration.
[24 Jan 2026 10:52:15.600][apminsight-services-starter][INFO]: App Server: TOMCAT
[24 Jan 2026 10:52:16.100][apminsight-services-starter][INFO]: Agent successfully connected to the server.
[24 Jan 2026 10:53:20.447][apminsight-2-thread-2][INFO]: Collector Response Code: 911(Manage the agent.)
[24 Jan 2026 10:53:20.447][apminsight-2-thread-2][INFO]: 0 metric(s) dispatched for context ''. Context currently enabled:true
5. Installation Steps (Quick Reference)

Full installation guide: APM Insight Java Agent – Installation Help

5.1 Guided Installation (Build 172100 and above) – Recommended
  1. In Applications Manager: APM → Add New Monitor → Java
  2. Choose deployment type (Host/Container), OS (Windows/Linux), and Java framework
  3. Enter application name, port, and Java version
  4. Verify the Applications Manager URL is reachable from the customer's machine. Edit if needed.
  5. Ask the customer to execute the displayed command in an Administrator terminal:
    • Windows: PowerShell (Run as Administrator)
    • Linux: Terminal with sudo/root
  6. Follow the framework-specific steps shown in the UI to add the -javaagent argument
  7. Restart the application (full stop + start, mandatory)
  8. Ask the customer to access their application (perform some transactions) to start seeing data
Tip: If the download command fails, use the "Switch to manual steps" option in the UI.
5.2 Manual Installation (Legacy or Build below 172100)
  1. Download apminsight-javaagent.zip from Applications Manager
  2. Extract to a directory on the customer's application server
  3. Edit apminsight.conf with the four required values:
license.key=<YOUR_LICENSE_KEY>
apm.host=https://<AppManager_Host>:<Port>
application.name=<Your_Application_Name>
agent.server.port=<App_Running_Port>
  1. Add the -javaagent argument to the application startup configuration (see server-specific links below)
  2. Restart the application (full stop + start)
6. Useful References
Overview APM Insight Java Agent
Installation Install Java Agent
Configuration Java Agent Configuration Options
Upgrade/Downgrade Upgrade Java Agent
Supported Servers Application Servers Supported
Supported JVMs JVM / JDK Supported
Multiple Apps (Single Server) KB: Monitor Multiple Applications
Server-Specific Issues KB: APM Insight Java Agent – Server-Specific Issues (JBoss, WebLogic, Spring Boot, etc.)
Migration Steps KB: Migration Steps
Troubleshooting Portal KB: Troubleshooting Tips

Still Need Help?

If all steps above have been checked and the issue persists, gather the following from the customer and escalate:

  1. Agent folder (zipped) — entire directory including logs, conf, and instance subdirectories
  2. Application server logscatalina.out, server.log, or equivalent
  3. JVM crash logs (if any)hs_err_pid*.log
  4. Screenshot from the APM tab showing the monitor status
  5. Environment details:
    • Application Server type & version (e.g., Tomcat 9.0.63, WildFly 26)
    • Java version (java -version output)
    • OS type & version
    • Applications Manager build number (Settings → Tools → Support → Installation Information)
    • Agent version (from the startup log)

Contact: appmanager-support@manageengine.com (existing customers) or eval-itom@manageengine.com (trial users) with the above details.



                  New to ADSelfService Plus?

                    • Related Articles

                    • 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 ...
                    • How to rename an existing APM - Java agent application's monitor?

                      In Applications Manager's APM(Application Performance Monitoring) doesn't support renaming applications/monitors from the web client. However, the application name of an existing application instance can be renamed in the `apminsight.conf` file and ...
                    • 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 ...
                    • 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 ...
                    • How to add an APM Insight Java agent in Kubernetes via InitContainers?

                      Step 1. Create a secret to access the APM Insight license key in your application namespace: kubectl create secret generic app-secret --from-literal=s247licensekey='your_APMInsight_license_key' -n petclinic The license key can be obtained from the ...