In standalone setup: Edit the <JBOSS_HOME>/bin/standalone.bat (In Linux, standalone.sh) file to add the following java arguments to the existing JAVA_OPTS.
Save the file and start the JBoss Application Server
Note:
The application server user must have access to the agent-installed folder.
There is a bug in JBoss AS 7.2.x with a hindrance to deploy our APM Insight Java Agent in this server. We suggest to upgrade the JBoss server and try installing APMInsight Agent.
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