Installing Java Agent in Weblogic 10.3.x and above
Installing Java Agent in Weblogic 10.3.x & above
For standalone setup:
- Open <ORACLE_HOME>/user_projects/domains/<doman_name>/bin/startManagedWebLogic.cmd(.sh) file 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:
- Extract the zip file to a new directory to find agent jar and its configuration files.
- Open apminsight.conf file in any text editor and add license.key value, which can be obtained from Site24x7 APM Insight page. Refer here to fine tune the agent settings.
- 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:
-javaagent:<agent_directory_full_path>/apminsight-javaagent.jar -DUseSunHttpHandler=true - Save the settings and start the Weblogic server.