This topic applies to Oracle WebLogic Server 10.3 and 12.1.1.
To configure Oracle WebLogic Server to use the DevTest Java Agent, use any of the following approaches:
For each approach, you specify the agent parameters string as a server startup argument. You can use the agent install assistant to determine the required value. The following example is based on the pure Java agent:
-javaagent:/export/home/wls/agent/LisaAgent2.jar=url=tcp://172.24.255.255:2009,name=wls
Administration Console
To follow the officially supported way to add arguments to the JVM, specify the agent parameters string from the WebLogic administration console.
Follow these steps:
config.xml File
Another approach is to edit the central configuration file for the domain.
Follow these steps:
Startup Script
You can also edit the WebLogic startup script.
In the following example, the JAVA_TOOL_OPTIONS environment variable is used to set the agent parameters string. These lines are located in the startWebLogic.sh file after the Java version check and before the actual WebLogic invocation.
JAVA_TOOL_OPTIONS=<agent_parameters_string> export JAVA_TOOL_OPTIONS
If the startup script has been customized, the JAVA_TOOL_OPTIONS environment variable is not used.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|