Install APM Insight Java Agent in Oracle WebLogic 10.3.x & above
Following are the steps to install APM Insight Java agent in Oracle WebLogic:
- Download latest the APM Insight java agent zip file (apminsight-javaagent.zip) here
- Extract the zip file to a new directory to find agent jar and its configuration files
- Open the apminsight.conf file in any text editor and include the following keys:
license.key=[LICENSE KEY]
apm.host=http://[HOST]:[PORT]/
Example:
license.key=APMI_74447444b666d7ab5174cc3021a9b68dd4b3364d50f99c2969360810313e8fac
apm.host=http://apm-prod-server:9090/
To learn more about the configurations, visit our Configuration Guide page.
For standalone setup:
- Open the startManagedWebLogic.bat(.sh) file located under <ORACLE_HOME>/user_projects/domains/<doman_name>/bin/ directory in any text editor.
- Add the following lines at the top of the script file:
- For Windows:
set JAVA_OPTIONS=-DUseSunHttpHandler=true -javaagent:<agent_directory_full_path>apminsight-javaagent.jar %JAVA_OPTIONS%
- For Linux:
set JAVA_OPTIONS="-DUseSunHttpHandler=true -javaagent:<agent_directory_full_path>/apminsight-javaagent.jar $JAVA_OPTIONS"
For cluster setup:
- Open the administrative console of Weblogic server, Select Environment > Servers > Configuration tab.
- Select <Your Server Name> > Configuration > Server Start tab.
- Locate Arguments textbox and enter the following argument:
-DUseSunHttpHandler=true -javaagent:<agent_directory_full_path>/apminsight-javaagent.jar

- Save the settings and start the WebLogic server.