Tivoli Performance Viewer: What This Exercise Is About
Tivoli Performance Viewer: What This Exercise Is About
Tivoli Performance Viewer: What This Exercise Is About
Lab Requirements................................................................................................................................................. 1
Introduction ........................................................................................................................................................... 2
NOTE: Education materials and other documentation as applicable including programming manuals,
operating guides, physical planning manuals and installation manuals related to the IBM Products may be
early versions subject to change. Documents will be furnished solely for the purpose of and for the
duration of the Beta Test.
Lab Requirements
This lab requires the following software to be installed on the systems:
• WebSphere Application Server V601 for zOS with a Stand Alone Application Server
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
• Collect and monitor performance data collected from a running application server.
Introduction
This lab will introduce you to WebSphere’s integrated performance monitoring client – Tivoli Performance
Viewer. The Tivoli Performance Viewer allows you to visualize performance data collected through
WebSphere’s Performance Monitoring Infrastructure (PMI). The Tivoli Performance Viewer provides basic
functionality that allows an administrator to closely monitor and analyze the performance of his/her
WebSphere environment from within WebSphere’s Administrative Console.
All parts of this lab will need to be completed individually. Also be sure to complete the Environment Setup
and Environment Cleanup portions. They are important because they provide a clean starting point for the
start of the next lab.
Exercise Instructions
Some instructions in this lab may be Windows operating-system specific. If you plan on running the lab on
an operating-system other than Windows, you will need to execute the appropriate commands, and use
appropriate files ( .sh vs. .bat) for your operating system. The directory locations are specified in the lab
instructions using symbolic references, as follows:
/opt/WebSphere/AppServer
Windows users please note: When directory locations are passed as parameters to a Java program
such as EJBdeploy or wsadmin, it is necessary to replace the backslashes with forward slashes to follow
the Java convention. For example, C:\LabFiles60\ would be replaced by C:/LabFiles60/
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
1) ftp mvs226.rtp.raeligh.ibm.com
3) cd /etc/LabFiles60
4) bin
5) get open.bank.exe
6) quit
__ c. Unzip the repository. Enter open.bank.exe and then enter the path to your temporary directory.
____ 2. Open OpenSTA Commander to execute load on the WebSphereBank application. On your lap top
click Start > Programs > OpenSTA > OpenSTA Commander.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
____ 3. Open the load generation scenario within OpenSTA Commander. In the OpenSTA Commander
window:
__ b. In the Browse for Folder window, browse to <ytd>\OpenSTA (where <ytd> is the path ot your
temporary directory and click OK.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ b. In the Scripts Molder window select Variables from the menu bar and then Replace in String and
substitute your host name for m mvsXXX.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
____ 6. Execute load against the WebSphereBank application. In the OpenSTA Commander window:
__ a. Open the Bank test. Expand BANK and double-click on BANK. The scenario will open in the
right panel (see the screen capture below).
IMPORTANT: The scenario will execute for 45 minutes. If the scenario ends before you finish the
lab, execute the scenario again.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
____ 1. Open the WebSphere Administration Console. Open an Internet Explorer window and type
http://<HOST_NAME>:9080/ibm/console.
____ 2. Navigate to Tivoli Performance Viewer. In the Administrative Console’s navigation panel, expand
Monitoring and Tuning > Performance Viewer and click on Current Activity.
In the right panel you will see a table with a list of servers that can be monitored from the
Administration Console (see the screen capture below). From this panel you are able to start/stop
the performance monitoring process. When monitoring is enabled on a server, the PMI data that the
server is generating can be collected and viewed within the Administrative Console. By default
monitoring is not started on your application server, which means that no PMI data is actually being
collected.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
____ 3. Start monitoring your application server’s PMI data. Select the check box next to C6Server01 in
the table and click Start Monitoring.
__ a. Verify that the following message appears at the top of Tivoli Performance Viewer panel.
____ 4. Open the Tivoli Performance Viewer panel for C6Server01. Click on C6Server01 in the table. The
Tivoli Performance Viewer will open in the right panel for C6Server01 (see the screen capture
below).
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ a. The Tivoli Performance Viewer is made up of two regions (highlighted in the screen capture
above). The following describes the different sections labeled in the screen shot above.
1) The panel on the left allows you to select the different views and settings that are available.
From this panel you can access the following functionality:
Advisor – Provides tuning advice based on the collected PMI data from your server.
Settings – Gives the user control over the PMI collection and logging.
Summary Reports – Predefined reports that allow you to quickly analyze your server’s
performance. The different reports that are available are described below:
• Servlets – Displays total requests and average response time data for all of
the Servlets that are currently gathering PMI data.
• EJBs – Displays number of method calls and average response time data for
all the Enterprise Beans that are currently gathering PMI data. Data is
grouped according to bean name.
• EJB methods – Displays number of method calls and average response time
data for all the Enterprise Beans that are currently gathering PMI data. Data is
grouped according to method name.
• Connection Pool – Displays pool size and percentage of pool in use for data
sources that are actively collecting PMI data.
• Thread Pool – Displays pool size and number of active threads for the
different thread pools within WebSphere (if they are actively collecting PMI
data).
2) The panel on the right displays the item that is selected on the left. By default the Servlets
Summary Report is shown.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
____ 5. View the EJBs Summary Report. In the left panel, expand C6Server01 > Summary Reports and
click EJBs. The EJBs Summary Report will load in the right panel (see the screen capture below).
__ a. Monitor the summary report until you are satisfied with what you see.
____ 6. Load the Servlet Summary Report again and filter the table for only the WebSphereBank
application’s servlets.
__ a. In the left panel, click Servlets. The Servlets Summary Report will load in the right panel.
__ b. Unhide the filter dialogue. Click the Show filter function button (circled in the screen capture
below).
__ c. Filter the results. Fill in the following values and click Go.
1) Filter: Application
__ d. The Servlets Summary Report will now only show values from the WebSphereBank application
that we want to monitor.
____ 7. View the collected PMI data for WebSphere’s JVM Runtime and the WebSphereBank application’s
EJBs.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ a. In the left panel, expand C6Server01 > Performance Modules > Enterprise Beans and select
the check box next to bank jar.
__ b. View the selected module. Scroll the left panel up and click View Module(s) (see the screen
capture below). The right panel will display a graph containing the WebSphereBank application’s
EJB PMI data.
__ c. Select the JVM Runtime module. In the left panel, select the check box next to JVM Runtime.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ d. View the selected modules. Scroll the left panel up and click View Module(s). The right panel
will show a graph containing both the WebSphereBank application’s EJB and JVM Runtime PMI
data.
__ e. A composite graph will be displayed in the right panel that contains data points from both the
WebSphereBank EJBs and JVM Runtime modules selected in the steps above (see the screen
capture below).
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ f. Scroll the right panel down to view the additional PMI metrics that are being collected but are not
being displayed. Rows that have a check mark next to them are currently being displayed in the
graph above. To display additional data points within the graph, place a check mark next to
performance data that you want to view.
NOTE: A tabular view of the data that is currently being displayed in the graph is also available. To access
the table, click View Table below the graph.
__ g. Monitor the graph until you are satisfied with what you see.
__ h. Optionally add or remove performance modules to or from the graph and examine the data that
is collected.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ a. In the Administrative Console’s navigation panel, expand Monitoring and Tuning and select
Performance Monitoring Infrastructure (PMI).
__ c. By default the Configuration tab is shown. Changes made within the Configuration tab are
persisted out to the master repository but will not take effect until the next restart of the server.
__ d. View the settings that are currently in effect. Click the Runtime tab (circled in the screen capture
below).
__ e. By default the Basic PMI setting is enabled on C6Server01. You can view the PMI data that is
collected by the Basic setting by expanding the plus sign under Basic (circled in the screen
capture below).
__ f. The entries contained within the list are the PMI counters that are currently enabled on the
application server. This means that WebSphere is actively collecting data on these counters and
the data can be viewed within Tivoli Performance Viewer.
____ 2. Use WebSphere’s fine grained PMI control to select specific PMI data under the JVM Runtime
module to collect.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ c. Enable the collection of FreeMemory PMI data. Notice that all of the JVM Runtime module’s
counters are enabled except for the FreeMemory counter. To enable the collection of free
memory data, place a check mark next to FreeMemory in the table and click Enable (note
your image will be significantly different and FreeMemory is not present).
__ a. Navigate to Tivoli Performance Viewer. In the Administrative Console’s navigation panel, expand
Monitoring and Tuning > Performance Viewer and click on Current Activity.
__ b. Open the Tivoli Performance Viewer panel for C6Server01. In the right panel, click on
C6Server01.
__ c. Scroll the window with the graph down until you see the list of PMI counters underneath it. Notice
that the JVMRuntime: FreeMemory counter is now in the table and being collected (see previous
note).
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
NOTE: Since you made the change to the runtime configuration and not WebSphere’s master repository,
the next time the server is restarted the FreeMemory counter will not be collected. You would either have
to re-enable the counter again, or edit the PMI configuration and persist the changes out to the master
repository.
__ d. Monitor the graph until you are satisfied with what you see.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ a. In Tivoli Performance Viewer’s navigation panel, expand C6Server01 > Summary Reports and
click Servlets.
__ b. Start logging PMI data. At the top of the Servlets Summary Reports table, click Start Logging.
NOTE: Logging can be started from any one of the Summary Report views or the Performance Data graph
or table views.
__ c. Verify that the following message appears at the top of Tivoli Performance Viewer panel.
__ d. Wait five minutes for the performance logs to accumulate a few data points.
NOTE: You can continue to view collected PMI data while you are logging data.
__ e. Stop logging PMI data. At the top of the panel that you are currently viewing, click Stop
Logging.
__ f. Verify that the following message appears at the top of Tivoli Performance Viewer panel.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ a. In the Administrative Console’s navigation panel, expand Monitoring and Tuning >
Performance Viewer and select View Logs.
__ b. Specify the log file that you want to replay. In the right panel, verify that Explicit Path to Log
File is selected and click Browse….
__ e. The log will begin replaying in the panel on the right. There are several controls provided that
allow you to control the replay of the logged data.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
__ f. Navigate to the different Summary Reports. Notice that performance data was also recorded for
these views as well.
__ g. Enable the JVM Runtime performance module and view the logged performance data.
____ 3. Logout of the Administrative Console and close the browser window.
WASv601_zOS_TivoliPerfViewer.doc
© Copyright IBM Corporation 2005. All rights reserved
WASv601_zOS_TivoliPerfViewer.doc