Introscope Agent Setup Guide For Ibm Websphere: SAP Active Global Support
Introscope Agent Setup Guide For Ibm Websphere: SAP Active Global Support
SAP
Page |2
Copyright/Trademark
Overview
This document covers the installation and configuration of CA Wily Introscope agent for IBM WebSphere
Application Server.
Page |3
Copyright/Trademark
Introscope Overview
Introscope is an application management solution created to manage Java Application performance. The
Java Agent is the component of Introscope that collects performance data from your applications running
on Java Virtual Machines (JVMs), and sends it to the Introscope Enterprise Manager.
The Enterprise Manager processes the data received from the Java Agent and sends it to the Introscope
Workstation where you can review the information and set up actions and alerts based on the data
received. The Java Agent allows Introscope to collect minute details about how your applications are
performing. Data is collected from your applications by the Java Agent. What types of data collected
depends on which ProbeBuilder Directives (PBDs) files you choose to implement. Several standard PBDs are
included when you install the Java Agent, as well as specific PBDs for your application server. Fine tuning
the tracers and directives in the PBD files will deliver the metric information you want to monitor for your
environment.
The figure below illustrates the key components in the Introscope environment.
The Right to View (RTV) version of CA-Wily Introscope supplied with SAP Solution Manager is a restricted,
read-only form of the full product and is bundled with SAP Solution Manager. With the RTV version,
support is limited to products that are licensed and supported by SAP. The instrumentation, dashboards,
Probe Builder Directives (PBDs), management modules, and Smartstor data contained within the RTV
version of CA-Wily Introscope as provided by SAP is the intellectual property of SAP. Use of these functions
is restricted by SAP and may only be used in an unrestricted manner by licensing SAP Extended Diagnostics
by CA-Wily from SAP.
Page |4
Copyright/Trademark
Installation procedure
This section describes installation and configuration of Wily Introscope ByteCode Agent for Java for IBM
WebSphere Application Server. The installation instructions are valid for IBM WebSphere as of version 6.0
or higher. If Java 4 is used an additional installation step is required.
The instructions in the following section are applicable to both Windows and UNIX systems.
Note: Use Unix-like forward slashes (/) as path separators on all platforms (including Windows) (e.g. in
Introscope configuration files and in the JVM parameters). Windows-like backslash (\) separators has to be
escaped with double backslashes (\\).
The following steps are required to install and configure the Introscope Java Agent to report information to
the Enterprise Manager:
It is recommended to uninstall old Introscope Agent installations before new installation. To uninstall
Introscope Agent remove JVM options and agent directory, and restart WebSphere application server(s).
Page |5
Copyright/Trademark
cd /usr/sap/ccms
SAPCAR xvf ISAGENT.8.2*.SAR
Please check that the Agents files are properly extracted. Make sure that the /wily sub-directory exists in
the specified folder. For example
<drive>:/usr/sap/ccms/wile.
The Introscope Agent installation directory will be referred as the AGENT_HOME directory through this
guide.
For Apache Tomcat SAP delivers the default Agent profile in the <AGENT_HOME> directory in
IntroscopeAgent_websphere.profile file. This file contains some SAP-specific settings.
The agent profile file contains different properties. You have to specify the connections properties to the
Enterprise Manager. All other settings can usually remain to the default values.
Page |6
Copyright/Trademark
Choose the Right Instrumentation Packages
The property introscope.autoprobe.directivesFile specifies the (PBD) Directives files for AutoProbe.
ProbeBuilder Directive (PBD) files tell the Introscope ProbeBuilder how to add probes, such as timers and
counters, in order to instrument an application. SAP delivers the (PBD) Directive files packaged into .jar
files. Following package is used for Apache Tomcat by default:
introscope.autoprobe.directivesFile = sap_typical.jar,
sap_websphere_typical.jar
This instrumentation package covers standard J2EE (e.g. Servlets, database/JDBC, web services, threads,
etc.), functionality. Another instrumentation package for WebSphere is the sap_websphere_full.jar file. It
covers the same functionality but more in detail. Please use this file only if detailed analysis is needed.
Nether specify both typical and full together.
<AGENT_HOME>/logs.
Please make sure that the Apache Tomcat has read and write access to this directory. The location there
Introscope Agents wtites its logs is specified by the properties introscope.autoprobe.logfile and
log4j.appender.logfile.File
This step is only required for Java 4 and is not necessary for Java 5 and above.
The AutoProbe connector is created by the CreateAutoProbeConnector.jar tool provided in the Agents
connector folder. You have to specify the JVM used by the WebSphere application server. There are two
ways to specify the JVM:
Page |7
Copyright/Trademark
Example:
As result this command will create a connector.jar in the same directory. You will specify the path to the jar
in Java VM options for the Introscope Agent.
Note: For AIX with IBM J9 Hybrid VM please refer to SAP Note 1015184there are additional parameters
to be used for creation of the AutoProbe connector on that Java VM.
Note: For IBM VM on Linux x86_64 please see note 1149214 there are additional parameters to be
used for creation of the AutoProbe connector on that Java VM.
Important Note
You must re-create the AutoProbe connector every time the used JVM is updated. Even if only JVM patch
level changes (e.g. from 1.4.2_04 to 1.4.2_05)! For this reason it is also important that you specify exactly
the same JVM that is actually used by the WebSphere Application Server.
On Java 5:
-javaagent:<AGENT_HOME>/Agent.jar
-Dcom.wily.introscope.agentProfile=<AGENT_HOME>/IntroscopeAgent_websphere.profile
-Dcom.wily.introscope.agent.agentName=<AgentName>
-Xbootclasspath/p:<AGENT_HOME>/connectors/connector.jar;<AGENT_HOME>/Agent.jar
-Dcom.wily.introscope.agentProfile=<AGENT_HOME>/IntroscopeAgent_websphere.profile
-Dcom.wily.introscope.agent.agentName=<AgentName>
Note
Remember the difference in the class path separator between Unix and Windows. Class path
entries are separated by ; on Windows but by : on Unix.
You can use WebSphere Administrators UI Integration Solutions Console to specify Java VM parameters
for IBM WebSphere application server as follows:
Go to Servers > Application servers and select the server you want to modify.
Page |8
Copyright/Trademark
From the right-side menu, click Server Infrastructure > Java and Process Management > Process
Definition > Java Virtual Machine
Specify new Java VM parameters in the field Generic JVM arguments
The Java Agent name is important because it is central to many views and presentations in the Introscope
clients, and it is the key to the process of associating monitoring logic with target applications.
You should assign a unique name to each Introscope Agent running in your landscape. The agent name is
set by the <AgentName> Java VM parameter (see above). SAP Solution Manager requires following agent
naming convention to be applied to WebSphere Application Server systems.
<AgentName>=<CELL _NAME>_<NODE_NAME>_<APP_SERVER_NAME>
there
For example
-com.wily.introscope.agent.agentName =
diagp010Cell01_diagp010Node01_server1
To enable the Java Agent to obtain and use data from the application server you have to configure an
Introscope startup class as a custom service in the application server.
1. Expand the right pane and navigate to Server Infrastructure > Administration > Custom Services.
Page |9
Copyright/Trademark
2. Click New to add a new custom service.
3. Check the check box Enable service at server startup.
4. In the field Classname enter:
com.wily.introscope.api.websphere.IntroscopeCustomService
These PMI metrics can then be displayed as Introscope metrics. Users can filter which metric categories to
bring into Introscope, depending on their needs. To enable PMI reporting:
To configure PMI collection, open the Introscope Agent profile file (e.g.
IntroscopeAgent_websphere.profile) and locate the property, introscope.agent.pmi.enable, under the
WebSphere PMI Configurations heading, and verify it is set to true.
introscope.agent.pmi.enable = true
Introscope can report data from the different high-level PMI metric categories. These categories are
represented by commented-out properties under the WebSphere PMI Configuration heading. For example,
introscope.agent.pmi.enable.threadPool=true
introscope.agent.pmi.enable.servletSessions=true
introscope.agent.pmi.enable.connectionPool=true
For each high level metric category you want to report, enter a value of true.
P a g e | 10
Copyright/Trademark
Restart WebSphere Application server
Restart the Apache Tomcat server. The Introscope Agent will send periodically performance data to the
configured Enterprise Manager
Look for the Agent log files (e.g. in the logs subdirectory of the Introscope agent installation directory
<AGENT_HOME>/logs). Make sure that a log file for configured Introscope Agent exists. The name of
the log file must be
IntroscopeAgent.<AgentName>.log
, there <AgentName> is the name of the Agent. Open the log file with a text editor and check the last
log messages in the file.
EXAMPLE
The last few lines of the agent log file should similar to the following:
Check that the Agent delivers data to the Enterprise Manager. Launch the Introscope Workstation and
make sure that the data provided by the agent is available in the Enterprise Manager.
Additional Information
Diagnostics at service.sap.com
Browse at the quick link service.sap.com/diagnostics for installation manuals
CSS XX-PART-WILY
Please open a CSS message on XX-PART-WILY in case of problems
P a g e | 11
Copyright/Trademark
SAPCAR Tool
To extract .SAR file use the sapcar toll. See details in Support Package Stack Guide at
http://service.sap.com/instguidesNW04 -> Operations
P a g e | 12
Copyright/Trademark