WebLogic
Attaching the OverOps Agent to a JVM Running Java 10 or 11
When attaching an OverOps Agent to a JVM that is running Java 10 or 11 or any IBM java versions, follow these guidelines:
Turn off Class Sharing: This can be done using the following flags:
for IBM Java
‑Xshareclasses:none
for HotSpot
-Xshare:off
-XX:-UseTypeSpeculation
Increase ReservedCodeCache to at least 512mb by adding the following flag
-XX:ReservedCodeCacheSize=512m
The Agent should appear last in the VM arguments list before specifying the main class or jar.
When adding/removing 3rd party packages, the Agent should be restarted.
Additionally, if you wish to upgrade your own compiler to target Java 10/11, then you'll have to upgrade your Collector (SaaS) or Collector + backend (On-Premises) to support it.
Rootless Agent Installation Method (Linux only)
When Using the Rootless Agent Installation Method replace the
-agentlib:TakipiAgent
JVM startup Argument
with
-agentpath:<TAKIPI_HOME>/lib/libTakipiAgent.so
JVM startup Argument
After you install OverOps on your machine, you’ll need to connect it to your WebLogic server.
Choose the WebLogic launch configuration you’re using:
Standalone WebLogic
Linux / macOS:
- Edit the file startWebLogic.sh, located in
<weblogic_<version#>_install_dir>/user_projects/domains/<domain_name>/bin/startWebLogic.sh
. - Add the following argument to the application server start script:
-agentlib:TakipiAgent
or respectively-agentpath:<TAKIPI_HOME>/lib/libTakipiAgent.so
Important
This argument should appear at the beginning of the arguments list before including any other agents
- Restart WebLogic.
- Test your Installation.
Windows:
- Open the startWebLogic.cmd file, located in
<weblogic_version_install_dir>\user_projects\domains\<domain_name>\bin
. - Add the following argument to the application server start script:
-agentlib:TakipiAgent
# --- Start Functions ---
...
overopsAgent()
{
echo "Adding OverOps Agent..."
JAVA_OPTIONS="${JAVA_OPTIONS} -agentlib:TakipiAgent"
export JAVA_OPTIONS
}
# --- End Functions ---
Note
If you're attaching the OverOps Agent to a JVM that is running Java 10 or 11, you'll need to turn off Class Data Sharing using one of the following flags:
‑Xshareclasses:none
→ for J9
-Xshare:off
→ for HotSpot
-XX:-UseTypeSpeculation
→ Java 11 HotSpot
The relevant flag should be added to the same location in the WebLogic.cm file as the agentlib:TakipiAgent argument.
- Next, add the OverOps Agent in the following way before starting WebLogic.
- Restart WebLogic.
# Add OverOps Agent:
overopsAgent
# START WEBLOGIC
Important
This argument should appear at the beginning of the arguments list before including any other agents
Clustered WebLogic Servers
For clustered WebLogic servers, you'll need to start and stop using Node Manager, and configure server startup in the WebLogic Server Administration Console.
- Open the WebLogic Server Administration Console.
- Navigate to Environment > Servers and click your server in the Server List.
- Click the Server Start tab.
- Add the agentlib argument:
-agentlib:TakipiAgent
or respectively-agentpath:<TAKIPI_HOME>/lib/libTakipiAgent.so
Important
This argument should appear at the beginning of the arguments list before including any other agents
- Restart your machine.
- Test your Installation.
Updated almost 5 years ago