The transaction tracking capability of the WebLogic agent requires changes to the agent
instance environment settings file and the WebLogic server startup file. A script is provided to
help you make the changes.
Before you begin
Ensure that the resource limit for open files is greater than 5,000 for the
transaction tracking toolkit to work properly.
- Display the current open file limit setting. ulimit -n
- Example setting the open file limit to 5,056. ulimit -n 5056
Perform
Configuring WebLogic monitoring
step
1 or
step 2 before you follow this procedure.
Note: Transaction tracking
capability is available for the WebLogic agent in the Cloud APM, Advanced offering. For the WebLogic agent with basic resource monitoring
capability, which is in the Cloud APM, Base
offering, skip this step.
The WebLogic agent must be installed
locally to the WebLogic server that is monitored with the transaction tracking capability.
The user account that runs this script must have write permission to the following directories
and files:
- The WEBLOGIC_HOME directory.
- The WEBLOGIC_HOME/bin directory and files.
- The install_dir/config
directory.
- The install_dir/config/hostname_wb_instance_name.cfg file.
where
- WEBLOGIC_HOME
- WebLogic server installation directory.
- install_dir
- Path where the agent is installed. The default paths to these logs are as follows.
- /opt/ibm/apm/agent
- C:\IBM\APM\TMAITM6_x64
- hostname
- Name of the host computer where the agent is installed.
- instance_name
- Name of the agent instance that is assigned in the agent configuration method topic:
- Configuring the agent on Windows
systems, step 3
- Configuring the agent by responding to prompts, step 1
- Configuring the agent by using the silent response file, step 2
Procedure
Run the simpleConfig script.
-
Log in to the WebLogic server with the WebLogic agent installed.
-
Change directory to the agent installation directory.
-
install_dir
-
install_dir\TMAITM6_x64
where install_dir is the path where the agent
is installed.
The default
install_dir paths are listed
here:
- /opt/ibm/apm/agent
- C:\IBM\APM\TMAITM6_x64
-
Change directory to wbdchome/8.1.4.0.0/bin.
-
Run the setup script.
-
./simpleConfig.sh
-
simpleConfig.bat
-
Follow the prompts to enter parameters for your environment:
-
Choose the WebLogic agent
instance_name and subnode to configure from the list of detected agent instance
and subnode combinations where instance_name is the name of the agent
instance.
-
Type the number of the WebLogic server startup method.
- Type the WebLogic domain root search path.
This path is used as the base
from which to search for WebLogic domains. If the WEBLOGIC_HOME environment
variable is set, its value is offered as the default value.
- Type the number of the WebLogic domain for the WebLogic server to
configure.
- Type the number of the WebLogic server name to configure.
Example configuration with a WebLogic startup method of
WebLogic startup
script.
./simpleconfig.sh
The following agents and subnodes are not yet configured for transaction tracking:
1) wlinst1 Server1
2) wlinst1 Server2
Type the number that corresponds to the agent instance and subnode that you want to configure.
Type your selection here (For example: 1): 1
The following WebLogic startup methods are supported:
1) WebLogic startup script
2) WebLogic Node Manager
Type your selection here (default is 1): 1
The path to begin looking for WebLogic domains.
WebLogic domain search root (default is: ): /home/wlsadmin
The found WebLogic domain paths are:
1) /home/wlsadmin/oracle/user_projects/domains/ttdd
Type the number that corresponds to the WebLogic domain containing the WebLogic server that
you want to configure.
Type your selection here (For examble: 1): 1
The following WebLogic servers are available for configuration:
1) AdminServer
2) Server1
Select a WebLogic server name (default is: 2): 2
INFO: [2000] Automatic configuration of agent environment file succeeded.
INFO: [3000] Automatic configuration of WebLogic start script succeeded.
INFO: [9000] Restart the WebLogic agent and WebLogic server for configuration to take effect.
- Follow these steps if WebLogic Node Manager is selected as the
WebLogic server startup method in step 5.b. Otherwise,
proceed to step 7.
- Open the weblogic_nodemanager_dc_opts file that is listed in
information message number 3011 of the output text from step 5.
Example configuration output with a WebLogic startup method of
WebLogic Node
Manager.
INFO: [2000] Automatic configuration of agent environment file succeeded.
INFO: [3010] Automatic configuration of WebLogic start script skipped.
INFO: [3011] Please review C:\IBM\APM\TMAITM6_x64\wbdchome\8.1.4.0.0\runtime\ttdd_win\win_Server1\
staging\weblogic_nodemanager_dc_opts.win for required WebLogic JVM start options.
INFO: [9000] Restart the WebLogic agent and WebLogic server for configuration to take effect.
- Log in to the WebLogic console and select
.
- Select the server to configure.
- Select the tab.
- Copy the server start arguments from the
weblogic_nodemanager_dc_opts file to the server’s Start
Server Arguments in the WebLogic console and save the changes.
The server
start arguments are all the lines that follow the comment line # Add the following lines to
the server start arguments
in the weblogic_nodemanager_dc_opts
file.
- Ensure that the transaction tracking toolkit is in the shared library path at run
time.
Warning: The startNodeManager scripts are generated by the WebLogic
configuration utility. So you might lose your changes when the WebLogic configuration is run
again.
-
If the WebLogic server and the agent are running, restart them.
Results
WebLogic server files that are changed during transaction tracking configuration:
- The startManagedWebLogic script.
- WEBLOGIC_HOME/bin/startManagedWebLogic.sh
- WEBLOGIC_HOME\bin\startManagedWebLogic.cmd
where WEBLOGIC_HOME is the WebLogic server installation
directory.
This file is updated with the configuration settings for the transaction tracking
capability. Configuration markers are inserted into the file for use when you disable the
transaction tracking capability. A backup file is saved in the
WEBLOGIC_HOME/bin/bak/ directory before the script adds or
removes the transaction tracking capability changes.
where
- install_dir
- Path where the agent is installed. The default paths to these logs are as follows.
- /opt/ibm/apm/agent
- C:\IBM\APM\TMAITM6_x64
- hostname
- Name of the host computer where the agent is installed.
- instance_name
- Name of the agent instance that is assigned in the agent configuration method topic:
- Configuring the agent on Windows
systems, step 3
- Configuring the agent by responding to prompts, step 1
- Configuring the agent by using the silent response file, step 2
Note: If the WebLogic agent is
re-configured after WebLogic agent
transaction tracking or diagnostics was configured, the agent environment settings file will be
overwritten by the WebLogic agent
reconfiguration. You need to re-run the steps in the Procedure section to configure the WebLogic agent transaction tracking or diagnostics
data collector. Or else, you might see no transaction tracking data in the Application Performance
Dashboard, and the default 5457 port is not listening.