HP Load Runner Monitor Reference Guide
HP Load Runner Monitor Reference Guide
Manufacturing Part Number: T7182-90017 Document Release Date: January 2009 Software Release Date: January 2009
Legal Notices
Warranty The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. The information contained herein is subject to change without notice. Restricted Rights Legend Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. Third-Party Web Sites HP provides links to external third-party Web sites to help you find supplemental information. Site content and availability may change without notice. HP makes no representations or warranties whatsoever as to site content or availability. Copyright Notices Copyright 1993 - 2009 Mercury Interactive (Israel) Ltd. Trademark Notices Java is a US trademark of Sun Microsystems, Inc. Microsoft and Windows are U.S. registered trademarks of Microsoft Corporation. Oracle is a registered US trademark of Oracle Corporation, Redwood City, California. UNIX is a registered trademark of The Open Group.
Documentation Updates
This guides title page contains the following identifying information: Software Version number, which indicates the software version. Document Release Date, which changes each time the document is updated. Software Release Date, which indicates the release date of this version of the software.
To check for recent updates, or to verify that you are using the most recent edition of a document, go to: http://h20230.www2.hp.com/selfsolve/manuals This site requires that you register for an HP Passport and sign-in. To register for an HP Passport ID, go to: http://h20229.www2.hp.com/passport-registration.html Or click the New users - please register link on the HP Passport login page. You will also receive updated or new editions if you subscribe to the appropriate product support service. Contact your HP sales representative for details.
Support
You can visit the HP Software Support web site at: http://www.hp.com/go/hpsoftwaresupport This web site provides contact information and details about the products, services, and support that HP Software offers. HP Software Support Online provides customer self-solve capabilities. It provides a fast and efficient way to access interactive technical support tools needed to manage your business. As a valued support customer, you can benefit by using the HP Software Support web site to: Search for knowledge documents of interest Submit and track support cases and enhancement requests Download software patches Manage support contracts Look up HP support contacts Review information about available services Enter into discussions with other software customers Research and register for software training
Most of the support areas require that you register as an HP Passport user and sign in. Many also require a support contract. To find more information about access levels, go to: http://h20230.www2.hp.com/new_access_levels.jsp To register for an HP Passport ID, go to: http://h20229.www2.hp.com/passport-registration.html
Table of Contents
Welcome to This Guide .......................................................................13 How This Guide Is Organized .............................................................14 Who Should Read This Guide .............................................................16 LoadRunner Online Documentation ..................................................16 Additional Online Resources...............................................................18 PART I: INTRODUCTION TO ONLINE MONITORING Chapter 1: Introduction ......................................................................23 Setting Up the Monitoring Environment ...........................................24 Choosing Monitors and Measurements on the Controller ................34 Monitor Types .....................................................................................35 PA RT I I : W E B R E S O U R C E M O N I TO R IN G Chapter 2: Web Resource Monitors....................................................41 About Web Resource Monitoring........................................................42 Hits per Second Graph ........................................................................42 Throughput Graph .............................................................................42 HTTP Responses per Second Graph ....................................................43 Pages Downloaded per Second Graph ...............................................45 Retries per Second Graph ...................................................................47 Connections Graph ............................................................................47 Connections per Second Graph .........................................................47 SSLs per Second Graph .......................................................................48 P A R T I I I : T R A N S A C T I O N M O N I T O R IN G Chapter 3: Run-Time and Transaction Monitoring ...........................51 About Run-Time and Transaction Graphs ..........................................51 Run-Time Graphs ...............................................................................52 Transaction Monitor Graphs ..............................................................54 Enabling Web Page Diagnostics .........................................................57
Table of Contents
P A R T I V : S Y S TE M R E S O U RC E M O N I T O R I N G Chapter 4: Understanding System Resource Monitors ......................61 Chapter 5: Windows Resource Monitoring ........................................63 Setting up the Monitoring Environment............................................64 Adding a Machine to Monitor ............................................................64 Configuring the Windows Resources Monitor ..................................65 Windows Resource Performance Counters .........................................69 Chapter 6: UNIX Resource Monitoring...............................................73 Setting up the Monitoring Environment............................................74 Adding a Machine to Monitor ............................................................75 Configuring the UNIX Resources Monitor .........................................76 UNIX Resources Performance Counters..............................................78 Chapter 7: Server Resource Monitoring .............................................79 Setting up the Monitoring Environment............................................79 Adding a Machine to Monitor ............................................................80 Configuring the Server Resources Monitor .........................................81 Server Resources Performance Counters .............................................84 Chapter 8: SNMP Resource Monitoring .............................................85 Setting up the Monitoring Environment............................................85 Adding a Machine to Monitor ............................................................86 Configuring the SNMP Resources Monitor.........................................87 Chapter 9: SiteScope Resource Monitoring........................................95 Setting up the Monitoring Environment............................................95 Adding a Machine to Monitor ............................................................96 Configuring the SiteScope Monitor ....................................................97 P A R T V : N E T W O R K D E L A Y M O N I T O R IN G Chapter 10: Introduction to Network Monitoring ...........................101 Chapter 11: Network Delay Monitoring...........................................103 Setting up the Monitoring Environment..........................................104 Adding a Machine to Monitor ..........................................................108 Configuring the Network Delay Time Monitor ................................110 Network Monitoring over a Firewall .................................................114 Viewing the Network Delay Time Graph .........................................115
Table of Contents
PA RT V I : F IR E W A L L M O N I T O R I N G Chapter 12: Firewall Server Performance Monitoring .....................119 Setting up the Monitoring Environment..........................................119 Adding a Machine to Monitor ..........................................................120 Configuring the Check Point FireWall-1 Server Monitor .................121 Check Point FireWall-1 Performance Counters ................................123 PA RT V I I : W E B S E R V E R R E S O U R C E M O N I TO RI N G Chapter 13: Introduction to Web Server Resource Monitoring ......127 About Web Server Resource Monitors...............................................127 Monitoring Using a Proxy Server .....................................................128 Chapter 14: iPlanet/Netscape Monitoring .......................................129 Setting up the Monitoring Environment..........................................130 Adding a Machine to Monitor ..........................................................131 Configuring the iPlanet/Netscape Monitor ......................................132 iPlanet/Netscape Performance Counters...........................................135 Chapter 15: iPlanet (SNMP) Monitoring ..........................................137 Adding a Machine to Monitor ..........................................................138 Configuring the iPlanet (SNMP) Monitor .........................................139 iPlanet (SNMP) Performance Counters .............................................141 Chapter 16: Microsoft IIS Monitoring ..............................................147 Adding a Machine to Monitor ..........................................................148 Configuring the Microsoft IIS Monitor.............................................149 Microsoft IIS Performance Counters .................................................151 P A R T V I I I : W E B A P P L I C A T I O N S E R V E R M O N I T O R IN G Chapter 17: Introduction to Web Application Server Resource Monitoring ....................................................................155 Chapter 18: Ariba Monitoring ..........................................................157 Adding a Machine to Monitor ..........................................................158 Configuring the Ariba Monitor.........................................................159 Ariba Performance Counters .............................................................161 Chapter 19: iPlanet (NAS) Monitoring .............................................165 Setting Up the Monitoring Environment .........................................166 Adding a Machine to Monitor ..........................................................170 Configuring the iPlanet (NAS) Monitor............................................172 iPlanet (NAS) Performance Counters ................................................174
Table of Contents
Chapter 20: Microsoft Active Server Pages Monitoring...................185 Adding a Machine to Monitor ..........................................................186 Configuring the Microsoft Active Server Pages Monitor ..................187 MS Active Server Pages Performance Counters .................................188 Chapter 21: WebLogic (SNMP) Monitoring .....................................191 Adding a Machine to Monitor ..........................................................192 Configuring the WebLogic (SNMP) Monitor ....................................193 WebLogic (SNMP) Performance Counters ........................................195 Chapter 22: WebSphere Application Server Monitoring .................199 Setting up the Monitoring Environment..........................................200 Adding a Machine to Monitor ..........................................................203 Configuring the WebSphere Application Server Monitor ................204 WebSphere Application Server Performance Counters.....................208 P A R T I X : D A T A B A S E S E R V E R RE S O U R C E M O N I T O R I N G Chapter 23: Introduction to Database Resource Monitoring ..........213 Chapter 24: DB2 Monitoring ............................................................215 Setting Up the Monitoring Environment .........................................216 Adding a Machine to Monitor ..........................................................217 Configuring the DB2 Monitor ..........................................................218 DB2 Performance Counters...............................................................221 Chapter 25: Oracle Monitoring.........................................................235 Setting Up the Monitoring Environment .........................................236 Adding a Machine to Monitor ..........................................................240 Configuring the Oracle Monitor .......................................................241 Oracle Performance Counters ...........................................................247 Custom Queries .................................................................................248 Chapter 26: SQL Server Monitoring .................................................251 Setting up the Monitoring Environment..........................................251 Adding a Machine to Monitor ..........................................................252 Configuring the SQL Server Monitor ................................................253 SQL Server Performance Counters ....................................................256 PART X: STREAMING MEDIA MONITORING Chapter 27: Introduction to Streaming Media Monitoring .............261 Chapter 28: RealPlayer Client Monitoring........................................263 Configuring the Real Client Monitor................................................264 RealPlayer Client Performance Counters ..........................................264
Table of Contents
Chapter 29: Media Player Client Monitoring ...................................267 Configuring the Windows Media Player Client Monitor .................267 Media Player Client Performance Counters......................................268 PA RT X I : E RP / C R M S E R V E R R E S O U RC E M O N I T O R I N G Chapter 30: Introduction to ERP/CRM Server Resource Monitoring ....................................................................................271 About ERP/CRM Server Resource Monitoring...................................272 Choosing Between Different SAP Monitors ......................................272 Chapter 31: SAP Portal Server Resource Monitoring .......................275 Setting up the Monitoring Environment..........................................276 Adding a Machine to Monitor ..........................................................276 Configuring the SAP Portal Monitor.................................................277 SAP Portal Performance Counters .....................................................280 Chapter 32: SAP CCMS Resource Monitoring ..................................281 Setting up the Monitoring Environment..........................................282 Adding a Machine to Monitor ..........................................................283 Configuring the SAP CCMS Monitor ................................................284 Chapter 33: SAPGUI Server Resource Monitoring............................289 Setting Up the Monitoring Environment .........................................290 Adding a Machine to Monitor ..........................................................291 Configuring the SAPGUI Monitor.....................................................292 SAPGUI Performance Counters .........................................................296 Chapter 34: Siebel Web Server Resource Monitoring......................299 Setting up the Monitoring Environment..........................................299 Adding a Machine to Monitor ..........................................................300 Configuring the Siebel Web Server Monitor.....................................301 Siebel Web Server Performance Counters .........................................305 Chapter 35: Siebel Server Manager Resource Monitoring...............307 Setting up the Monitoring Environment..........................................308 Adding a Machine to Monitor ..........................................................310 Configuring the Siebel Server Manager Monitor ..............................311 Siebel Server Manager Performance Counters ..................................313 Chapter 36: PeopleSoft (Tuxedo) Resource Monitoring..................315 Setting up the Monitoring Environment..........................................315 Adding a Machine to Monitor ..........................................................316 Configuring the PeopleSoft (Tuxedo) Monitor.................................317 PeopleSoft (Tuxedo) Performance Counters .....................................320
Table of Contents
P A R T X I I : A P PL IC A T I O N C O M P O N E N T M O N I TO RI N G Chapter 37: Introduction to Application Component Monitoring ....................................................................................325 Chapter 38: Microsoft COM+ Server Monitoring.............................327 Setting up the Monitoring Environment..........................................327 Adding and Configuring a Machine to Monitor ..............................328 Configuring the Microsoft COM+ Monitor Over a Firewall.............331 Microsoft COM+ Performance Counters ..........................................331 P A R T X I I I: A P P L I C A T I O N D E P L O Y M E N T M O N IT O R I N G Chapter 39: Introduction to Application Deployment Solution Monitoring .....................................................................337 Chapter 40: Citrix MetaFrame XP Monitoring .................................339 Setting up the Monitoring Environment..........................................339 Adding a Machine to Monitor ..........................................................341 Configuring the Citrix MetaFrame XP Monitor ...............................342 Citrix MetaFrame Performance Counters .........................................346 P A R T X I V : M I D D L E W A RE P E R F O R M A N C E M O N I T O R I N G Chapter 41: Introduction to Middleware Performance Monitoring ...................................................................................357 Chapter 42: Tuxedo Monitoring .......................................................359 Setting up the Tuxedo Monitor.........................................................360 Adding a Machine to Monitor ..........................................................361 Configuring the Tuxedo Monitor .....................................................362 Tuxedo Performance Counters..........................................................365 Chapter 43: IBM WebSphere MQ Monitoring .................................367 Setting up the Monitoring Environment..........................................368 Adding a Machine to Monitor ..........................................................371 Configuring the IBM WebSphere MQ Monitor ................................372 IBM WebSphere MQ Performance Counters ....................................376 P A R T X V : I N F RA S T R U CT U R E R E S O U R C E M O N I TO RI N G Chapter 44: Infrastructure Resources Monitoring............................381 Configuring the Network Client Monitor ........................................381 Network Client Performance Counters.............................................381
10
Table of Contents
PART XVI: APPENDIXES Appendix A: Troubleshooting Online Monitors ...............................385 Troubleshooting Server Resource Monitors ......................................386 Troubleshooting the Network Delay Monitor ..................................389 Network Considerations....................................................................390 Appendix B: Security Monitoring .....................................................393 Distributed Denial of Service Graph .................................................393 Appendix C: Working with Server Monitor Counters ......................395 Changing a Monitors Default Counters ..........................................395 Useful Counters for Stress Testing ....................................................396 Index ..................................................................................................399
11
Table of Contents
12
How This Guide Is Organized on page 14 Who Should Read This Guide on page 16 LoadRunner Online Documentation on page 16 Additional Online Resources on page 18
13
Part I
Part II
Part III
Transaction Monitoring
Describes run-time and transaction monitoring.
Part IV
Part V
Part VI
Firewall Monitoring
Describes how to use the Firewall server online monitor to measure the performance of a Firewall server during scenario execution.
14
Part IX
Part X
Part XI
15
Note: For information about J2EE and .NET Diagnostics monitors, see the HP Diagnostics User Guide.
Performance Engineers Project Manager This document assumes that you are moderately knowledgeable about enterprise application development and highly skilled in enterprise system and database administration.
16
From the Start menu, click Start > LoadRunner > Documentation and select the relevant document. From the Help menu, click Documentation Library to open the merged help.
Readme. Provides last-minute news and information about LoadRunner. You access the Readme from the Start menu. HP LoadRunner Quick Start provides a short, step-by-step overview and introduction to using LoadRunner. To access the Quick Start from the Start menu, click Start > LoadRunner > Quick Start. HP LoadRunner Tutorial. Self-paced printable guide, designed to lead you through the process of load testing and familiarize you with the LoadRunner testing environment. To access the tutorial from the Start menu, click Start > LoadRunner > Tutorial.
LoadRunner Guides
HP Virtual User Generator User Guide. Describes how to create scripts using VuGen. The printed version consists of two volumes, Volume I Using VuGen and Volume II - Protocols, while the online version is a single volume. When necessary, supplement this user guide with the online HP LoadRunner Online Function Reference. HP LoadRunner Controller User Guide. Describes how to create and run LoadRunner scenarios using the LoadRunner Controller in a Windows environment. HP LoadRunner Monitor Reference. Describes how to set up the server monitor environment and configure LoadRunner monitors for monitoring data generated during a scenario. HP LoadRunner Analysis User Guide. Describes how to use the LoadRunner Analysis graphs and reports after running a scenario to analyze system performance. HP LoadRunner Installation Guide. Explains how to install LoadRunner and additional LoadRunner components, including LoadRunner samples.
17
LoadRunner References
LoadRunner Function Reference. Gives you online access to all of LoadRunners functions that you can use when creating Vuser scripts, including examples of how to use the functions. Analysis API Reference. This Analysis API set can be used for unattended creating of an Analysis session or for custom extraction of data from the results of a test run under the Controller. You can access this reference from the Analysis Help menu. LoadRunner Controller Automation COM and Monitor Automation Reference. An interface with which you can write programs to run the LoadRunner Controller and perform most of the actions available in the Controller user interface. You access this reference (automation.chm) from the <LoadRunner Installation>/bin directory. Error Codes and Troubleshooting. Provides clear explanations and troubleshooting tips for Controller connectivity and Web protocol errors. It also provides general troubleshooting tips for Winsock, SAPGUI, and Citrix protocols.
18
To register for an HP Passport user ID, go to: http://h20229.www2.hp.com/passport-registration.html HP Software Web site accesses the HP Software Web site. This site provides you with the most up-to-date information on HP Software products. This includes new software releases, seminars and trade shows, customer support, and more. Choose Help > HP Software Web site. The URL for this Web site is www.hp.com/go/software.
19
20
Part I
Introduction to Online Monitoring
22
1
Introduction
You can monitor a scenario execution using the LoadRunner online monitors. This chapter includes:
Setting Up the Monitoring Environment on page 24 Choosing Monitors and Measurements on the Controller on page 34 Monitor Types on page 35
Note: For information on setting monitor options, configuring graph settings and measurements, and exporting graph data, refer to the HP LoadRunner Controller User Guide.
23
Chapter 1 Introduction
Configure the monitoring environment on the server machine (if necessary) Configure the monitor on the Controller machine
24
Chapter 1 Introduction
Server
Add a monitored server to the Controller by selecting the server whose monitors you want to configure. For SiteScope monitors, configure the remote server. Configure the monitor by selecting the measurements that you want to monitor. For more information on setting up the monitoring environment and configuring a monitor, see the specific monitoring chapter.
25
Chapter 1 Introduction
Select settings for the remote machine as described in Understanding the Configuring NT Remote Machine Dialog Box on page 27.
26
Chapter 1 Introduction
Select settings for the remote machine as described in Understanding the Configuring Unix Remote Machine Dialog Box on page 30.
NT Server Address. The IP address or UNC style name of the Windows server you wish to monitor. An IP hostname will also work provided that the SiteScope server has a way to resolve this common name into an IP address (for example, by the use of a hosts file, DNS, or WINS/DNS integration).
27
Chapter 1 Introduction
Connection Method. SiteScope can use one of two connection types for monitoring remote Windows server resources. These are:
NetBIOS. The default server-to-server communication protocol for Windows networks. SSH. Secure Shell, a more secure communication protocol that can be installed on Windows based networks. This connection method normally requires installing SSH libraries on each server to which you want to connect.
Login. The login for the remote server. If the server is within the same domain as the SiteScope machine, include the domain name in front of the user login name. For example: domainname\user. If you are using a local machine login account for machines within or outside the domain, include the machine name in front of the user login name. For example: machinename\user. Password. The password for the remote server or the passphrase for the SSH key file.
Note: When using SSH authentication with public/private key based authentication enter the passphrase for the identity file here.
Title. (Optional) A name by which the remote machine should be known. This name will appear in the drop-down list. Trace. Check this box to have trace messages to and from the subject server recorded to the SiteScope RunMonitor.log file. SSH Connection Method. The method to use for this connection. The currently supported methods are:
Internal Java Libraries. Connect using the Java SSH client integrated with SiteScope. Plink. Connect using an external SSH client. On Windows, SiteScope ships with Plink. On UNIX or Linux SiteScope will use an installed client such as OpenSSH.
28
Chapter 1 Introduction
Disable Connection Caching. Check this option to turn off connection caching for this remote. By default SiteScope caches open connections. Connection Limit. Controls the number of open connections that SiteScope will allow for this remote. If you have a large number of monitors configured to use this connection then set this number high enough to relieve the potential bottleneck.
Note: This setting does not effect the running of tests for a remote, tests will always create a new connection.
SSH Authentication Method. The authentication method to use for SSH connections. The currently supported methods are:
Password. Authenticate using a password. Key File. Authenticate using public/private key authentication. When this option is selected SiteScope uses the private key in the file SiteScope/groups/identity to authenticate. The corresponding public key must be listed in the authorized_keys file on the remote host.
Key File for SSH connections. Select the file that contains the private key for this connection. The default key file is SiteScope\groups\identity. This setting only applies when the authentication method is Key File . SSH Version 2 Only. Check this option to force SiteScope to use SSH protocol version 2 only. This option only applies when using the integrated Java Client in SiteScope. Custom Commandline. Enter a custom commandline for a remote using the External Client. This option can be used when needing to pass specific options to the external client being executed. Valid substitution variable are:
$root$. This will be translated to the SiteScope directory. $user$. This will be translated to the username entered into the remote. $password$. This will be translated to the password entered into the remote. $host$. This will be translated to the hostname entered into the remote.
29
Chapter 1 Introduction
SSH Port Number. Enter the port that the remote SSH server is listening on. By default, the port number is 22.
Server Address. Displays the IP address or host name of the server that you entered in the Add Machine dialog box. OS. Select the operating system running on the remote server. The following versions of UNIX are supported:
AIX FreeBSD HP/UX HP/UX 64-bit Linux MacOSX OPENSERVER SCO SGI Irix Sun Solaris Tru64 5.x Tru64 Pre 4.x (Digital)
Connection Method. Select the method for connecting to the server. The supported methods are:
Telnet. Log in to the remote server using Telnet. SSH. Log in to the remote server using the SSH protocol. This may require additional software and setup depending on the version of UNIX you are working with. Rlogin. Log in to the remote server using the Rlogin protocol. HTTP. Connect to an HTTP server on the remote server and run the command via a CGI. For this method, the Login and Password are optional and are used for authorizing the log on to the remote machine if required.
Login. The login for the remote server. Password. Enter the password for the remote server.
30
Chapter 1 Introduction
Title. Enter a name by which the remote machine should be known. This name will appear in the drop-down list in monitors that can connect to this server. Prompt. Enter the prompt to be displayed when the system is ready to handle a command - the default is #. Login Prompt. Enter the prompt to be displayed when the system is waiting for the login to be entered - the default is "login:" Password Prompt. Enter the prompt to be displayed when the system is waiting for the password to be entered - the default is "password:" Secondary Prompt. Enter the prompt to be displayed if the telnet connection to the remote server causes the remote server to prompt for more information about the connection. Separate multiple prompt strings by commas (,). For example, for Telnet connections to some remote servers, the remote server may ask what terminal type should be emulated for the connection. In this case you might need to enter Terminal type? as the secondary prompt. The response to the secondary prompt is entered in the Secondary Response field below. Secondary Response. Enter the responses to secondary prompts required to establish connections with this remote server. Separate multiple responses with commas (,). Initialize Shell Environment. Enter any shell commands to be executed at the beginning of the session. Separate multiple commands with a semicolon (;). This option allows you to specify shell commands to be executed on the remote machine directly after a Telnet or SSH session has been initiated. These commands can be used to customize the shell for each SiteScope remote.
31
Chapter 1 Introduction
Examples:
The remote shell may not have the correct path set for SiteScope scripts to run. The following command will add the directory /usr/local/bin into the PATH of the current shell on the remote machine: export PATH=$PATH:/usr/local/sbin
The remote shell may not be initializing the pseudo terminal correctly. Enter the following command to increase the terminal width to 1024 characters: stty cols 1024;${SHELL}
There have been cases where the remote Telnet Server does not echo back the command line properly. This may cause strange behavior for monitors that rely on this behavior. Enter the following command to force the remote terminal to echo: stty echo
Certain UNIX shells have been known to behave erratically with SiteScope. This includes bash, ksh, and csh. Enter the following command to change the shell to sh for the SiteScope connection: /bin/sh
Trace. Select this option to trace messages to and from the remote server in the RunMonitor.log file. SSH Connection Method. Select the method to use to connect to the remote server.
Internal Java Libraries. Connect using the Java SSH client integrated with SiteScope Plink. Connect using an external SSH client. On Windows, SiteScope ships with Plink.
32
Chapter 1 Introduction
Connection Limit. Enter the maximum number of connections for this remote machine. SSH Authentication Method. Select the method to use to authenticate to the remote server (for SSH connections only).
Password. Authenticate using a password. Keyfile. Authenticate using public/private key authentication. When this option is selected, SiteScope uses the private key in the file SiteScope/groups/identity to authenticate. The corresponding public key must be listed in the authorized_keys file on the remote host.
Connection Limit. Enter the maximum number of connections for this remote machine. SSH Version 2 Only. Select this option to force SSH to only use SSH protocol version 2. This option is only supported when using the internal Java libraries connection method. Custom Commandline. Enter the command for execution of the external SSH client. For substitutions with options listed above, use $host$, $user$, and $password$ respectively. This setting is supported only for connections using an external process. SSH Port Number. Enter the port on which the SSH service is running. After defining the server for SiteScope, you can test the settings by clicking on the test link. SiteScope attempts to display the working directory of the remote machine (the "pwd" command on UNIX, or "cd" on Windows), as a test to ensure that the remote machine can be accessed and can run commands properly.
33
Chapter 1 Introduction
Enter the server name or IP address of the machine you want to monitor. Select the platform on which the machine runs, and click OK. For Sitescope monitors enter the name and port number of the SiteScope server, and specify whether you are using a Secure HTTP connection. To use an account, fill in the relevant account information. For more information, see Understanding the Add Machine Dialog Box on page 35.
5 In the Resource Measurements section of the monitor dialog box, click Add. The Monitor Configuration dialog box opens. Choose the measurements for the specific server, and click OK to save your configuration.
34
Chapter 1 Introduction
Name. Enter the name or IP address of the machine that you want to monitor. Platform. Enter the platform of the machine you want to monitor.
SiteScope Server Information. For monitors that use SiteScope, enter the following SiteScope server information:
Name. Enter the name of the SiteScope server. Port. Enter the SiteScope port (default:8888). Use Secure HTTP. Select this to use a Secure HTTP connection. Use Account. Select this option to use a specific SiteScope user account. Enter the following account details:
Account.
The SiteScope account name or number The username defined to log in to the SiteScope account The password defined to log in to the SiteScope account
Username. Password.
Monitor Types
The online monitors are divided into the following categories:
Web Resource Monitors. Provide information about the number of Web connections, throughput volume, HTTP responses, server retries, and downloaded pages at the Web servers during the scenario. For more information, see Part II, Web Resource Monitoring. Transaction and Run-Time Monitors. Display the transaction rate and response times, and the number and status of Vusers participating in the scenario, as well as the number and types of errors that the Vusers generate. For more information, see Part III, Transaction Monitoring.
35
Chapter 1 Introduction
System Resource Monitors. Measure the Windows, UNIX, Server, SNMP, Antara FlameThrower, and SiteScope resources used during a scenario. For more information, see Part IV, System Resource Monitoring. Network Delay Monitor. Displays information about the network delays on your system. For more information, see Part V, Network Delay Monitoring. Firewall Monitor. Measures statistics related to the firewall servers during the scenario. For more information, see Part VI, Firewall Monitoring. Web Server Resource Monitors. Measure statistics related to the Apache, Microsoft IIS, iPlanet (SNMP) and iPlanet/Netscape Web servers during the scenario. For more information, see Part VII, Web Server Resource Monitoring. Web Application Server Resource Monitors. Measure statistics related to the Ariba, ATG Dynamo, BroadVision, ColdFusion, Fujitsu INTERSTAGE, iPlanet (NAS), Microsoft ASP, Oracle9iAS HTTP, SilverStream, WebLogic (SNMP), WebLogic (JMX), and WebSphere application servers during the scenario. For more information, see Part VIII, Web Application Server Monitoring. Database Server Resource Monitors. Measure statistics related to the SQL server, Oracle, Sybase, and DB2 databases during the scenario. For more information, see Part IX, Database Server Resource Monitoring. Streaming Media Monitors. Measure statistics related to the Windows Media Server and RealPlayer audio/video servers, as well as the RealPlayer client during the scenario. For more information, see Part X, Streaming Media Monitoring. ERP/CRM Server Resource Monitors. Measure statistics related to the SAP Portal, SAP CCMS, SAPGUI, Siebel Server Manager, Siebel Web Server, and PeopleSoft (Tuxedo) servers during the scenario. For more information, see Part XI, ERP/CRM Server Resource Monitoring. J2EE & .NET Diagnostics Monitors. Provide information to trace, time, and troubleshoot individual transactions through J2EE Web, application, and database servers. For more information, see the HP Diagnostics User Guide. Application Component Monitor. Measures statistics related to the Microsoft COM+ server during a scenario run. For more information, see Part XII, Application Component Monitoring.
36
Chapter 1 Introduction
Application Deployment Solutions Monitor. Measures statistics related to the Citrix MetaFrame XP server during a scenario run. For more information, see Part XIII, Application Deployment Monitoring. Middleware Performance Monitors. Measure statistics related to the Tuxedo and IBM WebSphere MQ servers during a scenario run. For more information, see Part XIV, Middleware Performance Monitoring. Infrastructure Resources Monitor. Displays information about network client data points during a scenario using the Network Client graph. For more information, see Part XV, Infrastructure Resource Monitoring. Security Monitor. Displays information about simulated attacks on the server during a scenario using the Distributed Denial of Service graph. For more information, see Part XVI, Appendixes. All of the monitors allow you to view a summary of the collected data at the conclusion of the scenario. Using LoadRunner Analysis, you can generate a graph for any of the monitors. For more information, see the HP LoadRunner Analysis User Guide.
37
Chapter 1 Introduction
38
Part II
Web Resource Monitoring
40
2
Web Resource Monitors
You obtain information about the performance of your Web server using LoadRunners Web Resource monitor. This chapter includes:
About Web Resource Monitoring on page 42 Hits per Second Graph on page 42 Throughput Graph on page 42 HTTP Responses per Second Graph on page 43 Pages Downloaded per Second Graph on page 45 Retries per Second Graph on page 47 Connections Graph on page 47 Connections per Second Graph on page 47 SSLs per Second Graph on page 48
41
Throughput Graph
The Throughput graph shows the amount of throughput on the Web server (y-axis) during each second of the scenario run (x-axis). Throughput is measured in bytes and represents the amount of data that the Vusers received from the server at any given second. You can compare this graph to the Transaction Response Time graph to see how the throughput affects transaction performance. In the following example, the Transaction Response time graph is compared with the Throughput graph. It is apparent from the graph that as the throughput decreases, the transaction response time also decreases. The peak throughput occurred at approximately 1 minute into the step. The highest response time also occurred at this time.
42
Example:
43
Code 205 206 300 301 302 303 304 305 307 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415
Description Reset Content Partial Content Multiple Choices Moved Permanently Found See Other Not Modified Use Proxy Temporary Redirect Bad Request Unauthorized Payment Required Forbidden Not Found Method Not Allowed Not Acceptable Proxy Authentication Required Request Timeout Conflict Gone Length Required Precondition Failed Request Entity Too Large Request - URI Too Large Unsupported Media Type
44
Description Requested range not satisfiable Expectation Failed Internal Server Error Not Implemented Bad Gateway Service Unavailable Gateway Timeout HTTP Version not supported
For more information on the above status codes and their descriptions, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.
Note: To view the Pages Downloaded per Second graph, you must select Pages per second (HTML Mode only) from the scripts run-time settings Preferences tab before running your scenario.
Like throughput, downloaded pages per second is a representation of the amount of data that the Vusers received from the server at any given second.
The Throughput graph takes into account each resource and its size (for example, the size of each .gif file, the size of each Web page).
45
The Pages Downloaded per Second graph takes into account simply the number of pages. In the following example, the Throughput graph is compared with the Pages Downloaded per Second graph. It is apparent from the graph that throughput is not proportional to the number of pages downloaded per second. For example, between 15 and 16 seconds into the scenario, the throughput decreased while the number of pages downloaded per second increased. Example:
46
Connections Graph
The Connections graph shows the number of open TCP/IP connections (yaxis) at each point in time of the scenario (x-axis). One HTML page may cause the browser to open several connections, when links on the page go to different Web addresses. Two connections are opened for each Web server. This graph is useful in indicating when additional connections are needed. For example, if the number of connections reaches a plateau, and the transaction response time increases sharply, adding connections would probably cause a dramatic improvement in performance (reduction in the transaction response time).
47
48
Part III
Transaction Monitoring
50
3
Run-Time and Transaction Monitoring
While running a scenario, you use LoadRunners Run-Time and Transaction monitors to view graphs of run-time status and transaction performance. This chapter includes:
About Run-Time and Transaction Graphs on page 51 Run-Time Graphs on page 52 Transaction Monitor Graphs on page 54 Enabling Web Page Diagnostics on page 57
51
Run-Time Graphs
The Runtime monitor provides information for the following graphs:
Running Vusers Graph User-Defined Data Points Graph Error Statistics Graph Vusers with Errors Graph
The Status field of each Vuser displays the current status of the Vuser. The following table describes each Vuser status.
Status Running Ready Finished Error Description The total number of Vusers currently running on all load generators. The number of Vusers that completed the initialization section of the script and are ready to run. The number of Vusers that have finished running. This includes both Vusers that passed and failed. The number of Vusers whose execution generated an error. Check the Status field in the Vuser view or the Output window for a complete explanation of the error.
52
For Vuser protocols that support the graphical script representations such as Web and Oracle NCA, you insert a data point as a user-defined step. Data point information is gathered each time the script executes the function or step. For more information about data points, see the HP LoadRunner Online Function Reference. By default, LoadRunner displays all of the data points in a single graph. The legend provides information about each data point. If desired, you can hide specific data points using the legend below the graphs. You can also view data points offline, after the completion of the scenario. For more information, see the HP LoadRunner Analysis User Guide.
53
Transaction Response Time Transactions per Second (Passed) Transactions per Second (Failed, Stopped) Total Transactions per Second (Passed)
The Transaction Response Time graph shows the average response time of transactions in seconds (y-axis) as a function of the elapsed time in the scenario (x-axis). The Transactions per Second (Passed) graph shows the number of successful transactions performed per second (y-axis) as a function of the elapsed time in the scenario (x-axis). The Transactions per Second (Failed, Stopped) graph shows the number of failed and stopped transactions per second (y-axis) as a function of the elapsed time in the scenario (x-axis). The Total Transactions per Second (Passed) graph shows the total number of completed, successful transactions per second (y-axis) as a function of the elapsed time in the scenario (x-axis).
54
2 Disable transaction monitoring by clearing the Enable Transaction Monitor check box. To enable transaction monitoring, select the Enable Transaction Monitor check box.
55
To add a transaction to a script in the Controller: 1 Click the Design tab to view the list of Vuser groups and scripts. 2 To edit a script for a Vuser group, select the group and click the View Script button to the right of the Scenario Groups window. The script generation tool opens. To edit a script for an individual Vuser, click Vusers. Right-click the Vuser whose script you want to edit, and select View Script to open the script generation tool. 3 Insert Start and End Transaction functions or markers throughout your script. For more information, see the appropriate users guide as described in the Welcome chapter.
56
2 Select Enable the following diagnostics and specify the percentage of Vusers for which you want transaction breakdown to be performed. 3 Click the Enable button next to Web Page Diagnostics (Max. Vuser Sampling: 10%). 4 Click OK. For more information, refer to the Working with Diagnostics section of the HP LoadRunner Controller User Guide. For more information about Web Page Breakdown graphs, refer to the HP LoadRunner Analysis User Guide.
57
58
Part IV
System Resource Monitoring
60
4
Understanding System Resource Monitors
You use LoadRunners System Resource monitors to monitor a machines system resource usage during a scenario run and isolate server performance bottlenecks. A primary factor in a transactions response time is its system resource usage. Using the LoadRunner resource monitors, you can monitor the Windows, UNIX, Server, SNMP, Antara FlameThrower, and SiteScope resources on a machine during a scenario run, and determine why a bottleneck occurred on a particular machine. The Windows measurements correspond to the built-in counters available from the Windows Performance Monitor. The UNIX measurements include those available by the rstatd daemon: average load, collision rate, context switch rate, CPU utilization, incoming packets error rate, incoming packets rate, interrupt rate, outgoing packets error rate, outgoing packets rate, page-in rate, page-out rate, paging rate, swap-in rate, swap-out rate, system mode CPU utilization, and user mode CPU utilization.
Note: You must configure an rstatd daemon on all UNIX machines being monitored. For information on how to configure an rstatd daemon, refer to the UNIX man pages, or see Setting up the Monitoring Environment on page 79.
The Server Resources monitor can measure CPU, disk space, memory, and application resources used on remote Windows and UNIX servers.
61
The SNMP monitor is available for monitoring machines using the Simple Network Management Protocol (SNMP). SNMP monitoring is platform independent. The Antara FlameThrower monitor can measure the following performance counters: Layer, TCP, HTTP, SSL/HTTPS, Sticky SLB, FTP, SMTP, POP3, DNS, and Attacks. The SiteScope monitor can measure server, network, and processor performance counters. For detailed information on the performance counters that SiteScope can monitor, see the relevant SiteScope documentation. The resource monitors are automatically enabled when you execute a scenario. However, you must specify the machine you want to monitor and which resources to monitor for each machine. You can also add or remove machines and resources during the scenario run. For more information about a particular System Resource monitor see:
Chapter 5, Windows Resource Monitoring Chapter 6, UNIX Resource Monitoring Chapter 7, Server Resource Monitoring Chapter 8, SNMP Resource Monitoring Chapter 9, SiteScope Resource Monitoring
62
5
Windows Resource Monitoring
The Windows Resources monitor shows the Windows resources measured during the scenario. Windows measurements correspond to the built-in counters available from the Windows Performance Monitor.
Note: To monitor a Windows machine over a firewall, use TCP, port 139.
Setting up the Monitoring Environment on page 64 Adding a Machine to Monitor on page 64 Configuring the Windows Resources Monitor on page 65 Windows Resource Performance Counters on page 69
63
If you are using the SiteScope monitor engine, ensure that SiteScope has been installed on a server. You can install SiteScope on the same server as the Controller, or on a dedicated server. If you want to monitor a remote Windows server that does not use Windows domain security, you must authenticate the Controller on the remote Windows server. To authenticate the Controller, create an account, or change the password of the account used to log on to the Controller so that it matches the password and user name used to log on to the remote monitored Windows machine. When the remote Windows machine requests another machines resources, it sends the logged-in user name and password of the machine requesting the resources.
64
4 In the Monitored Server Machines section, click Add. The Add Machine dialog box opens.
In the Monitored Machine Information section, enter the server name or IP address of the machine you want to monitor. Select the platform on which the machine runs. In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information. Note: If you are adding a native LoadRunner monitor, the SiteScope Server Information section does not appear.
Click OK to close the Add Machine dialog box. 5 Click Add in the Resource Measurements on: <machine> section of the Windows Resources dialog box. 6 Continue with Configuring the Windows Resources Monitor on page 65.
Configuring the Native LoadRunner Windows Resources Monitor Configuring the SiteScope Windows Resources Monitor
65
Note: To change the default counters for the Windows machine monitor, see Changing a Monitors Default Counters on page 395.
To delete a measurement from the default list, select the measurement and click Delete. To select additional measurements, click Add.
2 A Windows Resources dialog box opens displaying the available Windows resources.
For each measurement select an object, counter, and instance, as described in Understanding the Add Windows Resources Measurements Dialog Box on page 68, and then click Add. For a description of the available measurements, see Windows Resource Performance Counters on page 69. 3 When you have finished selecting the measurements to monitor, click Close. The counters that you selected appear in the Resource Measurements on: <machine> section of the Windows Resources dialog box. 4 Click OK in the Windows Resources dialog box to activate the monitor.
66
For each measurement select an object, measurement, and instance, as described in Understanding the Add Windows Resources Measurements Dialog Box on page 68, and then click Add. For a description of the available measurements, see Windows Resource Performance Counters on page 69.
67
Note: To change the default counters for the Windows machine monitor, see Changing a Monitors Default Counters on page 395.
4 When you have finished selecting the measurements to monitor, click Close. The measurements that you selected appear in the Resource Measurements on: <machine> section of the Windows Resources dialog box. 5 Click OK in the Windows Resources dialog box to activate the monitor.
Object. Select the object to monitor on the specified Windows machine. Counters/Measurements. Select the resource counter/measurement to monitor. Select multiple counters using the CTRL key. For an explanation of each counter, click Explain. Instances. If multiple instances of the selected counter are running, select one or more instances to monitor for the selected counter. Explain. Displays a description of the selected counter.
68
System
Processor
69
Object System
Description The instantaneous length of the processor queue in units of threads. This counter is always 0 unless you are also monitoring a thread counter. All processors use a single queue in which threads wait for processor cycles. This length does not include the threads that are currently executing. A sustained processor queue length greater than two generally indicates processor congestion. This is an instantaneous count, not an average over the time interval. This is a count of the page faults in the processor. A page fault occurs when a process refers to a virtual memory page that is not in its Working Set in the main memory. A page fault will not cause the page to be fetched from disk if that page is on the standby list (and hence already in main memory), or if it is in use by another process with which the page is shared. The percentage of elapsed time that the selected disk drive is busy servicing read or write requests. The number of bytes in the nonpaged pool, a system memory area where space is acquired by operating system components as they accomplish their appointed tasks. Nonpaged pool pages cannot be paged out to the paging file. They remain in main memory as long as they are allocated.
Memory
Page Faults/sec
PhysicalDisk
% Disk Time
Memory
70
Object Memory
Measurement Pages/sec
Description The number of pages read from the disk or written to the disk to resolve memory references to pages that were not in memory at the time of the reference. This is the sum of Pages Input/sec and Pages Output/sec. This counter includes paging traffic on behalf of the system cache to access file data for applications. This value also includes the pages to/from non-cached mapped memory files. This is the primary counter to observe if you are concerned about excessive memory pressure (that is, thrashing), and the excessive paging that may result. The rate at which the computer is receiving and servicing hardware interrupts. The devices that can generate interrupts are the system timer, the mouse, data communication lines, network interface cards, and other peripheral devices. This counter provides an indication of how busy these devices are on a computer-wide basis. See also Processor:Interrupts/sec. The number of threads in the computer at the time of data collection. Notice that this is an instantaneous count, not an average over the time interval. A thread is the basic executable entity that can execute instructions in a processor. The current number of bytes that the process has allocated that cannot be shared with other processes.
System
Total Interrupts/sec
Objects
Threads
Process
Private Bytes
71
72
6
UNIX Resource Monitoring
The UNIX Resources monitor shows the UNIX resources measured during the scenario. This graph helps you determine the impact of Vuser load on the various system resources. The UNIX kernel statistics measurements include those available by the rstatd daemon: average load, collision rate, context switch rate, CPU utilization, incoming packets error rate, incoming packets rate, interrupt rate, outgoing packets error rate, outgoing packets rate, page-in rate, pageout rate, paging rate, swap-in rate, swap-out rate, system mode CPU utilization, and user mode CPU utilization. To obtain data for this graph, you need to select the desired measurements for the online monitor (from the Controller) before running the scenario. This chapter includes:
Setting up the Monitoring Environment on page 74 Adding a Machine to Monitor on page 75 Configuring the UNIX Resources Monitor on page 76 UNIX Resources Performance Counters on page 78
73
Note: The rstatd daemon might already be configured, because when a machine receives an rstatd request, the inetd on that machine activates the rstatd automatically.
To verify whether the rstatd daemon is already configured: The rup command reports various machine statistics, including rstatd configuration. Run the following command to view the machine statistics: >rup host You can also use lr_host_monitor and see if it returns any relevant statistics. If the command returns meaningful statistics, the rstatd daemon is already configured and activated. If not, or if you receive an error message, the rstatd daemon is not configured. To configure the rstatd daemon: 1 Run the command: su root 2 Go to /etc/inetd.conf and look for the rstatd row (it begins with the word rstatd). If it is commented out (with a #), remove the comment directive, and save the file. 3 From the command line, run: kill -1 inet_pid where inet_pid is the pid of the inetd process. This instructs the inetd to rescan the /etc/inetd.conf file and register all daemons which are uncommented, including the rstatd daemon. 4 Run rup again. If the command still does not indicate that the rstatd daemon is configured, contact your system administrator.
74
Note: To monitor a UNIX machine through a firewall, you must run a UNIX utility called rpcinfo and identify the rstatds port number. By running rpcinfo -p <hostname>, you will receive a list of all RPC servers registered in the hosts portmapper, along with the port number. This list will not change until rstatd is stopped and rerun. Some firewalls allow you to open an RPC program number instead of a port. In such cases, open program 100001. If are prompted to include a version number, specify versions 3 and 4.
75
Note: To change the default counters for the UNIX monitor, see Changing a Monitors Default Counters on page 395.
5 To select additional measurements, click Add. 6 Continue with Configuring the UNIX Resources Monitor below.
Select measurements and server properties as described in Understanding the Unix Kernel Statistics Dialog Box on page 77.
76
For a description of the available measurements, see UNIX Resources Performance Counters on page 78. 2 Click OK. The measurements that you selected appear in the Resource Measurements on: <machine> section of the UNIX Resources dialog box. 3 Click OK in the UNIX Resources dialog box to activate the monitor.
Note: Ensure that the rstatd daemon is correctly configured and running on the monitored UNIX machine. For more information, see Setting up the Monitoring Environment on page 74. To change the default counters for the UNIX monitor, see Changing a Monitors Default Counters on page 395.
Available Measurements. Select the measurements you want to add. To select more than one measurement, use the CTRL key. Description. Displays a description of the selected measurement.
Note: Ensure that rstatd is running on the monitored UNIX machine. For more information, see Setting up the Monitoring Environment on page 74.
77
78
7
Server Resource Monitoring
The Server Resources monitor shows the resources of monitors (CPU, disk space, memory, or applications) used on remote Windows and UNIX servers measured during the scenario. This helps you determine the impact of Vuser load on the various system resources. The Server Resources monitor includes the following monitors:
CPU Monitor. Monitors CPU usage. Disk Space Monitor. Monitors disk space. Memory Monitor. Monitors Pages per Second and Percentage of Virtual Memory Used. Service Monitor. Verifies that specific processes are listed as running and checks CPU usage. To obtain data for this graph, you need to select the desired measurements for the online monitor (from the Controller) before running the scenario. This chapter includes:
Setting up the Monitoring Environment on page 79 Adding a Machine to Monitor on page 80 Configuring the Server Resources Monitor on page 81 Server Resources Performance Counters on page 84
Ensure that SiteScope has been installed on a server. You can install SiteScope on the same machine as the Controller, or on a dedicated server.
79
Verify that SiteScope is collecting the required data from the servers it is monitoring. From the SiteScope Panel, select the monitor group polling the Server Resource machines, and check that the monitor displays a list of server measurements in the Status column.
Note: If you are using the HTTP method of monitoring, enter the full URL of the CGI script (for example: http://demo.thiscompany.com/cgi-bin/run.sh).
In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information. 5 Click OK. The Server Resources dialog box is redisplayed.
80
6 In the Resource Measurements section of the Server Resources dialog box, click Add to configure the remote machine and select the measurements that you want to monitor. 7 Continue with Configuring the Server Resources Monitor below.
If you are monitoring a machine on a Windows platform, the Configuring NT Remote Machine dialog box opens. If you are monitoring a machine on a UNIX platform, the Configuring UNIX Remote Machine dialog box opens.
Enter the remote machines configuration information, as described in Configuring the Remote Machine for SiteScope Monitors on page 25, and click OK.
81
2 The Server Resources Configuration dialog box opens, displaying the available measurements.
Browse the Measured Components tree, select the required performance counters in the right pane, as described in Understanding the Server Resources Configuration Dialog Box on page 83. For a list of the available performance counters, see Server Resources Performance Counters on page 84. 3 Click OK. The components that you selected appear in the Resource Measurements on: <machine> section of the Server Resources dialog box.
82
4 In the Controller, click OK in the Server Resources dialog box to activate the monitor.
Note: The minimum recommended online graph refresh rate (in the Graph Configuration dialog box) is 30 seconds. If you choose a lower refresh rate, the Controller may not get all the data in time.
Host. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
83
Percent used
Services Monitor
84
8
SNMP Resource Monitoring
The SNMP Resources monitor shows statistics for machines using the Simple Network Management Protocol (SNMP). The SNMP Resources monitor is available for monitoring any machine that runs an SNMP agent, using the Simple Network Management Protocol (SNMP).
Note: The LoadRunner SNMP monitor is the same as the SiteScope SNMP by MIB monitor.
Setting up the Monitoring Environment on page 85 Adding a Machine to Monitor on page 86 Configuring the SNMP Resources Monitor on page 87
To obtain data for this graph, you need to configure the SNMP Resources monitor (from the Controller) and select the measurements you want to display, before running the scenario. If you are using the SiteScope monitor engine, ensure that SiteScope has been installed on a server. You can install SiteScope on the same machine as the Controller, or on a dedicated server.
85
In the Monitored Machine Information section, enter the server name or IP address of the machine you want to monitor. Select the platform on which the machine runs. In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information. Note: If you are adding a native LoadRunner monitor, the SiteScope Server Information section does not appear.
Click OK to close the Add Machine dialog box. 5 In the Resource Measurements on: <machine> section of the SNMP dialog box, click Add. 6 Continue with Configuring the SNMP Resources Monitor below.
86
Configuring the Native LoadRunner SNMP Monitor Configuring the SiteScope SNMP by MIB Monitor
87
2 Click Close. The resources that you selected appear in the Resource Measurements on: <machine> section of the SNMP dialog box.
Note: The native LoadRunner SNMP monitor can only monitor up to 25 measurements.
SNMP Objects. Select each required object and click Add. Click Explain for the ID number and a description of the selected object. Explain. Displays a description of the selected object.
Note: The native LoadRunner SNMP monitor can only monitor up to 25 measurements.
88
To enable this feature, add the following line to the <LoadRunner root folder>\dat\monitors\snmp.cfg file: SNMP_show_string_nodes=1 Usage Notes: You can select more than one name modifier, but the first in the hierarchy will be used. Each time the SNMP Add Measurements dialog box opens, the information is reread from the snmp.cfg file. You cannot add the same measurement twice (once with a name modifier and once without it). If you do so, an error message is issued.
Note: You can modify the list of resources that you want to monitor at any point during the scenario. A scenario does not have to be active in order for you to monitor the resources on a remote machine.
89
90
2 The SNMP Configuration dialog box opens. Browse the Measured Components tree and select the performance counters on the right, as described in Understanding the SNMP Configuration Dialog Box on page 93. Click a component or counter to see its description in the Component/Counter Description section.
3 Click OK to close the SNMP Configuration dialog box. The components that you selected appear in the Resource Measurements on: <machine> section of the SNMP dialog box.
91
Note: You can modify the list of resources that you want to monitor at any point during the scenario. A scenario does not have to be active in order for you to monitor the resources on a remote machine.
Server. Enter the name of the server you want to monitor. MIB File. Select the MIB file which contains the objects you are interested in monitoring. If you select a specific MIB file, then only the objects described in that MIB file are displayed. If you select All MIBs, then all objects retrieved from the agent during the MIB traversal will be displayed. If no MIB information is available for an object, it is still displayed, but with no textual name or description. To make this monitor aware of new or additional MIBs, simply place new MIB files in the SiteScope/templates.mib directory. SNMP Version. Select the version of SNMP to use when connecting. V1/V2 Community. Enter the community string (valid only for version 1 or 2 connections). SNMP V3 Authentication Type. Select the type of authentication to use for version 3 connections. SNMP V3 Username. Enter the username for version 3 connections. SNMP V3 Authentication Password. Enter the authentication password to use for version 3 connections. SNMP V3 Privacy Password. Enter the privacy password if DES privacy encryption is desired for version 3 connections. Leave blank if you do not want privacy.
92
SNMP V3 Context Engine ID. Enter a hexadecimal string representing the Context Engine ID to use for this connection. This is applicable for SNMP V3 only. SNMP V3 Context Name. Enter the Context Name to use for this connection. This is applicable for SNMP V3 only. Timeout. Enter the total time, in seconds, that SiteScope should wait for all SNMP requests (including retries) to complete. The default is 5 seconds. Retries. Enter the number of times each SNMP GET request should be retried before SiteScope considers the request to have failed. The default is 1 retry. Port. Enter the port to use when requesting data from the SNMP agent. The default of 161 is the port on which an SNMP agent will typically be listening. Update every. Enter how frequently the monitor should read the server statistics. The drop-down list to the right of the text box lets you specify time increments of seconds, minutes, hours, or days. You must specify a time increment of at least 3 seconds. The default is 3 seconds.
Host. The name of the host machine. Measured Components. Displays a tree containing all the available measured components. Performance Counters. Displays the performance counters for a selected measured component. Component/Counter Description. Displays a description of the selected measured component or performance counter.
93
94
9
SiteScope Resource Monitoring
The SiteScope Resources monitor graph shows the SiteScope resources measured during the scenario. The SiteScope monitor can measure server, network, and processor performance counters. For detailed information on the performance counters that SiteScope can monitor, refer to the relevant SiteScope documentation. To obtain data for this graph, you need to select the desired measurements for the online monitor (from the Controller) before running the scenario. This chapter includes:
Setting up the Monitoring Environment on page 95 Adding a Machine to Monitor on page 96 Configuring the SiteScope Monitor on page 97
Ensure that SiteScope has been installed on a server. You can install SiteScope on the same machine as the Controller, or on a dedicated server. If SiteScope is installed on a machine other than the Controller, verify that the SiteScope machine is accessible from the Controller machine.
95
96
2 Browse the Measured Components tree, and select performance counters, as described in Understanding the SiteScope Monitor Configuration Dialog Box on page 98.
97
3 Click OK. The components that you selected appear in the Resource Measurements on: <machine> section of the SiteScope dialog box. 4 Click OK in the SiteScope Monitor Configuration dialog box, and then in the SiteScope dialog box to activate the monitor.
Host. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
98
Part V
Network Delay Monitoring
100
10
Introduction to Network Monitoring
You use Network monitoring to determine whether your network is causing a delay in the scenario. You can also determine the problematic network segment. Network configuration is a primary factor in the performance of applications. A poorly designed network can slow client activity to unacceptable levels. In a true Web or client/server system, there are many network segments. A single network segment with poor performance can affect the entire system. The following diagram shows a typical network. To go from the server machine to the Vuser machine, data must travel over several segments.
To measure network performance, the Network monitor sends packets of data across the network. When a packet returns, the monitor calculates the time it takes for the packet to go to the requested node and return. This time is the delay which appears in the Network Delay Time graph. Using the online Network Delay Time graph, you can locate the networkrelated problem so that it can be fixed.
101
Note: The delays from the source machine to each of the nodes are measured concurrently, yet independently. It is therefore possible that the delay from the source machine to one of the nodes could be greater than the delay for the complete path between the source and destination machines.
102
11
Network Delay Monitoring
You use Network Delay monitoring to determine whether your network is causing a delay in the scenario. You can also determine the problematic network segment. The Network Delay Time monitor shows the delays for the complete path between the source and destination machines (for example the database server and Vuser host). The graph maps the delay as a function of the elapsed scenario time. Each defined path is represented by a separate line with a different color in the graph.
Note: To run the Network monitor, you must have administrator privileges on the Windows source machine (unless you are using the ICMP protocol).
Setting up the Monitoring Environment on page 104 Adding a Machine to Monitor on page 108 Configuring the Network Delay Time Monitor on page 110 Network Monitoring over a Firewall on page 114 Viewing the Network Delay Time Graph on page 115
103
You configure the Network monitor from the Run view of the Controller before you begin running a scenario.
Note: To enable network monitoring, you must install the LoadRunner agent on the source machine. You do not have to install the LoadRunner agent on the destination machine.
You can run the Network monitor on UNIX source machines, using UDP or ICMP. Before running the Network monitor from a UNIX source machine:
configure the source machine by assigning root permissions to the merc_webtrace process. make the necessary adjustments to either connect to the source machine through RSH, or through the agent.
Configuring the Unix Source Machine Connecting to the Unix Source Machine Through RSH Connecting to the Unix Source Machine Through the Agent
104
5 To verify, type ls -l merc_webtrace. The permissions should look like this: rwsrwsr-x. To configure the source machine, where LoadRunner is installed on the network: In a LoadRunner network installation, the merc_webtrace process is on the network, not on the source machine disk. The following procedure copies the merc_webtrace file to the local disk, configures mdrv.dat to recognize the process, and assigns root permissions to merc_webtrace: 1 Copy merc_webtrace from <LoadRunner_installation>/bin to anywhere on the local disk of the source machine. For example, to copy the file to the /local/<LoadRunner> directory, type: cp /net/tools/LoadRunner_installation/bin/merc_webtrace /local/<LoadRunner>
Note: All of the source machines that use the same network installation must copy merc_webtrace to the identical directory path on their local disk (for example, /local/<LoadRunner>), since all of them use the same mdrv.dat.
2 Add the following line to the <LoadRunner_installation>/dat/mdrv.dat file, in the [monitors_server] section: ExtCmdLine=-merc_webtrace_path /local/xxx 3 Log in to the source machine as root. 4 Type: cd LoadRunner_installation/bin to change to the bin directory. 5 Type: chown root merc_webtrace to make the root user the owner of the merc_webtrace file. 6 Type: chmod +s merc_webtrace to add the s-bit to the file permissions. 7 To verify, type ls -l merc_webtrace. The permissions should look like: -rwsrwsr-x.
105
2 In the Password box, type your RSH user name and password, separated by a vertical bar symbol. For example, myname|mypw. 3 Click Generate. An encoded string is displayed in the Encoded string field. 4 Click Copy to copy the encoded string to the clipboard. 5 Add the following line to the <LoadRunner_installation>/dat/monitors/ndm.cfg file, in the [hosts] section: Host = <encrypted string copied from clipboard> 6 Close and open the current scenario. LoadRunner will read the updated configuration file and recognize the source machine for monitoring.
106
107
3 In the Monitor the network delay from machine section, click Add, and enter the server name or IP address of the source machine, from which you want the network path monitoring to begin. Select the platform on which the machine runs, and click OK.
108
4 In the To machine(s) section of the Network Delay Time dialog box, click Add to enter the name of the machine at the final destination of the path you want to monitor. 5 Continue with Configuring the Network Delay Time Monitor on page 110.
Note: To run the Network monitor, you must have administrator privileges on the source machine (unless you are using the ICMP protocol).
Monitor the network delay from machine. Displays the name of the machine from which network monitoring begins. Click Add to enter the name of a machine.
Add. Opens the Add Machine dialog box. Enter the server name or IP address of the source machine, from which you want the network path monitoring to begin. Select the platform on which the machine runs, and click OK. Repeat this for each path you want to monitor. Delete. Removes the source machine.
To machine(s).
Add. Opens the Adding Destination Machines for Network Delay Monitoring dialog box. Delete. Removes the destination machine.
109
Note: The Network Delay Time Monitor cannot be configured to work in TCP mode on Windows XP SP2 or Vista.
To configure the Network Delay monitor: 1 When you click Add in the To machine(s) section of the Network Delay Time dialog box, the Add Destination Machines for Network Delay Monitoring dialog box opens.
To add a machine, click Add. The New Machine Name dialog box opens.
110
2 Enter the name of the destination machine and click OK. The name of the machine appears in the Add Destination Machines for Network Delay Monitoring dialog box. Repeat this procedure for each path you want to monitor, and then click OK.
Note: If the destination machine is localhost, enter the local machines name and not localhost.
To rename a machine, click Rename, and enter a new name for the machine. To delete a machine, select it and click Delete.
3 Click Properties to configure additional network monitor settings. The Network Monitor Settings for Defined Path dialog box opens.
4 In the Monitor Settings box, select the protocol and enter the port number being used by the network path. The Network monitor supports three protocols: TCP, UDP, and ICMP. It is recommended that you use the default protocol. In Windows, the default is TCP, and in UNIX, the default is UDP.
111
5 Select Enable display of network nodes by DNS names if you want to view the DNS name of each node along the network path, in addition to its IP address.
Note: Selecting this option will decrease the speed of the Network monitor.
6 In the Monitoring Frequency box, select the number of milliseconds the monitor should wait between receiving a packet and sending out the next packet. The default value is 3000 milliseconds. If you have a long, steady scenario, you can increase the interval by several seconds. 7 In the Monitoring Packet Retries box, select the maximum number of seconds that the monitor should wait for a packet to return before it retries to send the packet. The default value is 3 seconds. If your network is very large and loaded (an internet connection with a low capacity), you should increase the value by several seconds. If you have a small network (such as a LAN), you can decrease the value. In addition, select the number of times the Network monitor should try resending a packet to a node if the packet is not initially returned. The default value is 0.
From Machine. Displays the name of the source machine. To Machines. Displays the names or URLs of the destination machines. Add. Enter the name or URL of the machine at the final destination of the path you want to monitor in the New Machine Name dialog box. Repeat this for each path you want to monitor. Rename. Renames the destination machine. Delete. Deletes the destination machine.
112
Properties. Opens the Configuring Network Monitor Settings for Defined Path dialog box.
Monitor Settings.
Send request using X protocol. Select the network protocol you want the monitor to use. The Network monitor supports three protocols: TCP, UDP, and ICMP. It is recommended that you use the default protocol, TCP, unless it is necessary for you to use UDP or ICMP. Note: When you use TCP or UDP protocols, administrator privileges are required on the source machine.
Send request to port. Enter the port number to be used by the network path. Enable display of network nodes by DNS names. Enables you to view the DNS name of each node along the network path, in addition to its IP address. Note: Selecting this option will decrease the speed of the Network monitor.
Monitoring Frequency.
Send next packet X milliseconds after receipt of previous packet. Select the number of milliseconds the monitor should wait between receiving a packet and sending out the next packet. The default value is 3000 milliseconds. Note: If you have a long, steady scenario, you can increase the interval by several seconds.
Wait X seconds for packet to return before retrying. Select the maximum number of seconds that the monitor should wait for a packet to return before it retries to send the packet. The default value is 3 seconds.
113
If your network is very large and loaded (an internet connection with a low capacity), you should increase the value by several seconds. If you have a small network (such as a LAN), you can decrease the value.
Number of retries. Select the number of times the monitor should try resending a packet to a node if the packet is not initially returned. The default value is 0.
If you are using the TCP protocol, the firewall that protects the destination machine should not block outgoing ICMP_TIMEEXCEEDED packets (packets that are sent outside the firewall from the machine). In addition, the firewall protecting the source machine should allow ICMP_TIMEEXCEEDED packets to enter, as well as TCP packets to exit. If you are using the ICMP protocol, the destination machines firewall should not block incoming ICMP_ECHO_REQUEST packets, or outgoing ICMP_ECHO_REPLY and ICMP_ECHO_TIMEEXCEEDED packets. In addition, the firewall protecting the source machine should allow ICMP_ECHO_REPLY and ICMP_ECHO_TIMEEXCEEDED packets to enter, and ICMP_ECHO_REQUEST packets to exit. If you are using the UDP protocol, ensure that the UDP protocol can access the destination machine from the source machine. The destination machines firewall should not block outgoing ICMP_DEST_UNREACHABLE and ICMP_ECHO_TIMEEXCEEDED packets. In addition, the firewall protecting the source machine should allow ICMP_DEST_UNREACHABLE and ICMP_ECHO_TIMEEXCEEDED packets to enter.
114
Note: To run the Network Delay monitor when there are firewalls between the Controller and the source machine, you must configure the LoadRunner agent, MI Listener, and Network Delay monitor for monitoring over a firewall. For more information about configuring LoadRunner Agents inside the firewall, installing and configuring the MI Listener outside the firewall, and configuring the Network Delay monitor over a firewall, see the relevant chapters in the HP LoadRunner Controller User Guide.
To view the DNS names of the measurements displayed in the legend, rightclick the graph and select View as DNS Name. To view the delay time from the source machine to each of the nodes along the network path, right-click the graph and select Configure. In the Graph Configuration dialog box, click SubPaths. In addition, you can view the delay time for each segment of the path.
115
To view the delay time for the network segments: 1 Right-click the Network Delay Time graph, and select View Segments. The Network Breakdown dialog box opens.
2 Select the path that you want to break down. 3 Choose whether you want to view the network segments of the graph you chose as an area graph or a pie graph. 4 Click OK to close the Network Breakdown dialog box. The delay time for the network segments of the path you chose is displayed in the graph view area.
Note: The segment delays are measured approximately, and do not add up to the network path delay which is measured exactly. The delay for each segment of the path is estimated by calculating the delay from the source machine to one node and subtracting the delay from the source machine to another node. For example, the delay for segment B to C is calculated by measuring the delay from the source machine to point C, and subtracting the delay from the source machine to point B.
To return to the complete path delay time view, select Hide Segments from the right-click menu.
116
Part VI
Firewall Monitoring
118
12
Firewall Server Performance Monitoring
The Firewall server online monitor measures the performance of a Firewall server during scenario execution, which enables isolation of server performance bottlenecks. The Check Point FireWall-1 monitor displays statistics about the resource usage on Check Point's FireWall during the scenario run. This chapter includes:
Setting up the Monitoring Environment on page 119 Adding a Machine to Monitor on page 120 Configuring the Check Point FireWall-1 Server Monitor on page 121 Check Point FireWall-1 Performance Counters on page 123
119
Note: You can specify a machine name and port number in the Add Machine dialog box using the following format: <machine name>:<port number>
4 In the Resource Measurements section of the Check Point FireWall-1 dialog box, click Add. 5 Continue with Configuring the Check Point FireWall-1 Server Monitor below.
120
2 Browse the FireWall-1 Objects list and select the measurements you want to monitor, as described in Understanding the CheckPoint FireWall-1 Dialog Box on page 123. For a description of the available measurements, see Check Point FireWall-1 Performance Counters on page 123.
121
3 Add all the desired resources to the list, and click Close. 4 Click OK in the Check Point FireWall-1 dialog box to activate the monitor.
To enable this feature, add the following line to the <LoadRunner root folder>\dat\monitors\snmp.cfg file: SNMP_show_string_nodes=1 Usage Notes: You can select more than one name modifier, but the first in the hierarchy will be used. Each time the Check Point FireWall-1 Add Measurements dialog box opens, the information is reread from the snmp.cfg file. You cannot add the same measurement twice (once with a name modifier and once without it). If you do so, an error message is issued.
122
CheckPoint FireWall-1 SNMP Objects. Select each required object and click Add. Click Explain for the ID number and a description of the selected object. Explain. Displays a description of the selected object.
123
124
Part VII
Web Server Resource Monitoring
126
13
Introduction to Web Server Resource Monitoring
Using LoadRunners Web Server Resource monitors, you monitor the Apache, Microsoft IIS, iPlanet (SNMP), and iPlanet/Netscape servers during a scenario run and isolate server performance bottlenecks. This chapter includes:
About Web Server Resource Monitors on page 127 Monitoring Using a Proxy Server on page 128
Note: Certain measurements or counters are especially useful for determining server performance and isolating the cause of a bottleneck during an initial stress test on a Web server. For more information about these counters, see Useful Counters for Stress Testing on page 396.
127
In the Proxy Settings section of the configuration file, assign useProxy a value of 0.
128
14
iPlanet/Netscape Monitoring
This Web Server Resource monitor displays statistics about the resource usage on the iPlanet/Netscape Web server during the scenario run. To obtain data for this graph, you need to configure the iPlanet/Netscape online monitor (from the Controller) and select the measurements you want to display, before running the scenario. This chapter includes:
Setting up the Monitoring Environment on page 130 Adding a Machine to Monitor on page 131 Configuring the iPlanet/Netscape Monitor on page 132 iPlanet/Netscape Performance Counters on page 135
129
Note: In some server configurations, the URL must contain the administration server name and not the IP address. In addition, the administration server name may differ from the iPlanet/Netscape server name.
130
131
Select the required measurements. For a description of the available measurements, see iPlanet/Netscape Performance Counters on page 135. 2 Fill in the Server Properties:
Enter the user login name and password. The user must have administrator permissions on the server.
132
Enter the port number and URL (without the server name), and click OK. The default URL is /https-<admin_server>/bin/sitemon?doit.
3 Click OK in the iPlanet/Netscape - Add Measurements dialog box and in the iPlanet/Netscape dialog box to activate the monitor.
Available Measurements. Select the required measurements. Select multiple measurements using the CTRL key. A description of the selected measurement appears in the Description box. Server Properties.
Login. Enter the user login name. The user must have administrator permissions on the server. Password. Enter the user password. Port. Enter the servers port number. URL. To monitor an iPlanet/Netscape server, you need to know the server statistics information URL. A simple way to verify the statistics information URL is to try to view it through the browser. The URL should be in the following format: http://<admin_srv_name/IP address>:<port number>/https<admin_srv_name/IP address>/bin/sitemon?doit For example: http://lazarus:80/https-lazarus/bin/sitemon?doit Enter the servers URL, without the server name. The default URL is /https-<server>/bin/sitemon?doit.
133
Note: The default port number and URL can vary from one server to another. Please consult the Web server administrator. In some server configurations, the URL must contain the server name and not the IP address.
134
3xx/sec 401/sec 403/sec 4xx/sec 5xx/sec Bad requests/sec Bytes sent/sec Hits/sec xxx/sec
135
To change the default server properties: 1 Open the Netscape.cfg file in the <LoadRunner root folder>\dat\monitors directory. 2 Edit the following parameters in the [Netscape] section:
Counters
number of counters that the LoadRunner iPlanet/Netscape monitor will show you. This value should match the number of counters defined in the file. server statistics information URL server port number login name to the server login password for the login name rate (milliseconds) at which the LoadRunner monitor will poll the server for the statistics information. If this value is greater than 1000, LoadRunner will use it as its sampling rate. Otherwise, it will use the sampling rate defined in the Monitors tab of the Options dialog box.
Note: To monitor an iPlanet/Netscape server through a firewall, use the iPlanet/Netscape Administration server port. Configure this port during the server installation process.
136
15
iPlanet (SNMP) Monitoring
This Web Server Resource monitor displays statistics about the resource usage on the iPlanet (SNMP) Web server during the scenario run. The iPlanet (SNMP) monitor uses the Simple Network Management Protocol (SNMP) to retrieve iPlanet (SNMP) server statistics. To obtain data for this graph, you need to configure the iPlanet (SNMP) online monitor (from the Controller) and select the measurements you want to display, before running the scenario. You define the measurements for the iPlanet (SNMP) monitor using the iPlanet (SNMP) dialog box.
Note: To monitor a iPlanet (SNMP) server, use port 161 or 162, depending on the configuration of the agent.
Adding a Machine to Monitor on page 138 Configuring the iPlanet (SNMP) Monitor on page 139 iPlanet (SNMP) Performance Counters on page 141
137
Note: If the iPlanet SNMP agent is running on a different port than the default SNMP port, you need to define the port number. Enter the following information in the Add Machine dialog box: <server name:port number> For example: digi:8888 In addition, you can define the default port for your iPlanet server in the configuration file, snmp.cfg, located in <LoadRunner root folder>\dat\monitors. For example, if the port used by the SNMP agent on your iPlanet server is 8888, you should edit the snmp.cfg file as follows: ; iPlanet (WebServer) [cm_snmp_mon_iws60] port=8888
4 In the Resource Measurements section of the iPlanet (SNMP) dialog box, click Add. 5 Continue with Configuring the iPlanet (SNMP) Monitor on page 139.
138
Browse the iPlanet WebServer Object tree as described in Understanding the iPlanet (SNMP) Dialog Box on page 141, and select performance counters. For a description of the available measurements, see iPlanet (SNMP) Performance Counters on page 141.
139
2 Add all the desired resources to the list, and click Close. The measurements that you selected appear in the Resource Measurements on: <machine> section of the iPlanet (SNMP) dialog box. 3 Click OK in the iPlanet (SNMP) dialog box to activate the monitor.
To enable this feature, add the following line to the <LoadRunner root folder>\dat\monitors\snmp.cfg file: SNMP_show_string_nodes=1 Usage Notes: You can select more than one name modifier, but the first in the hierarchy will be used. Each time the iPlanet SNMP Add Measurements dialog box opens, the information is reread from the snmp.cfg file. You cannot add the same measurement twice (once with a name modifier and once without it). If you do so, an error message is issued.
140
iPlanet (SNMP) Objects. Select each required object and click Add. Click Explain for the ID number and a description of the selected object. Explain. Displays a description of the selected object.
141
Measurement iwsInstanceUptime iwsInstanceDeathCount iwsInstanceRequests iwsInstanceInOctets iwsInstanceOutOctets iwsInstanceCount2xx iwsInstanceCount3xx iwsInstanceCount4xx iwsInstanceCount5xx iwsInstanceCountOther iwsInstanceCount200 iwsInstanceCount302 iwsInstanceCount304 iwsInstanceCount400 iwsInstanceCount401 iwsInstanceCount403 iwsInstanceCount404 iwsInstanceCount503 iwsInstanceLoad 1MinuteAverage
Description Server instance uptime Number of times server instance processes have died Number of requests processed Number of octets received Number of octets transmitted Number of 200-level (Successful) responses issued Number of 300-level (Redirection) responses issued Number of 400-level (Client Error) responses issued Number of 500-level (Server Error) responses issued Number of other (neither 2xx, 3xx, 4xx, nor 5xx) responses issued Number of 200 (OK) responses issued Number of 302 (Moved Temporarily) responses issued Number of 304 (Not Modified) responses issued Number of 400 (Bad Request) responses issued Number of 401 (Unauthorized) responses issued Number of 403 (Forbidden) responses issued Number of 404 (Not Found) responses issued Number of 503 (Unavailable) responses issued System load average for 1 minute
142
Measurement iwsInstanceLoad 5MinuteAverage iwsInstanceLoad 15MinuteAverage iwsInstanceNetwork InOctets iwsInstanceNetwork OutOctets iwsVsTable iwsVsEntry iwsVsIndex iwsVsId iwsVsRequests iwsVsInOctets iwsVsOutOctets iwsVsCount2xx iwsVsCount3xx iwsVsCount4xx iwsVsCount5xx iwsVsCountOther iwsVsCount200 iwsVsCount302 iwsVsCount304
Description System load average for 5 minutes System load average for 15 minutes Number of octets transmitted on the network per second Number of octets received on the network per second iPlanet Web Server virtual servers iPlanet Web Server virtual server Virtual server index Virtual server identifier Number of requests processed Number of octets received Number of octets transmitted Number of 200-level (Successful) responses issued Number of 300-level (Redirection) responses issued Number of 400-level (Client Error) responses issued Number of 500-level (Server Error) responses issued Number of other (neither 2xx, 3xx, 4xx, nor 5xx) responses issued Number of 200 (OK) responses issued Number of 302 (Moved Temporarily) responses issued Number of 304 (Not Modified) responses issued
143
Measurement iwsVsCount400 iwsVsCount401 iwsVsCount403 iwsVsCount404 iwsVsCount503 iwsProcessTable iwsProcessEntry iwsProcessIndex iwsProcessId iwsProcessThreadCount iwsProcessThreadIdle iwsProcessConnection QueueCount iwsProcessConnection QueuePeak iwsProcessConnection QueueMax iwsProcessConnection QueueTotal iwsProcessConnection QueueOverflows iwsProcessKeepalive Count iwsProcessKeepaliveMax iwsProcessSizeVirtual iwsProcessSizeResident
Description Number of 400 (Bad Request) responses issued Number of 401 (Unauthorized) responses issued Number of 403 (Forbidden) responses issued Number of 404 (Not Found) responses issued Number of 503 (Unavailable) responses issued iPlanet Web Server processes iPlanet Web Server process Process index Operating system process identifier Number of request processing threads Number of request processing threads currently idle Number of connections currently in connection queue Largest number of connections that have been queued simultaneously Maximum number of connections allowed in connection queue Number of connections that have been accepted Number of connections rejected due to connection queue overflow Number of connections currently in keepalive queue Maximum number of connections allowed in keepalive queue Process size in kbytes Process resident size in kbytes
144
Measurement iwsProcessFraction SystemMemoryUsage iwsListenTable iwsListenEntry iwsListenIndex iwsListenId iwsListenAddress iwsListenPort iwsListenSecurity iwsThreadPoolTable iwsThreadPoolEntry iwsThreadPoolIndex iwsThreadPoolId iwsThreadPoolCount iwsThreadPoolPeak iwsThreadPoolMax iwsCpuTable iwsCpuEntry iwsCpuIndex iwsCpuId iwsCpuIdleTime iwsCpuUserTime iwsCpuKernelTime
Description Fraction of process memory in system memory iPlanet Web Server listen sockets iPlanet Web Server listen socket Listen socket index Listen socket identifier Address socket is listening on Port socket is listening on Encryption support iPlanet Web Server thread pools iPlanet Web Server thread pool Thread pool index Thread pool identifier Number of requests queued Largest number of requests that have been queued simultaneously Maximum number of requests allowed in queue iPlanet Web Server CPUs iPlanet Web Server CPU CPU index CPU identifier CPU Idle Time CPU User Time CPU Kernel Time
145
146
16
Microsoft IIS Monitoring
This Web Server Resource monitor displays statistics about the resource usage on the Microsoft Internet Information Server (IIS) during the scenario run. To obtain data for this graph, you need to configure the MS IIS online monitor (from the Controller) and select the measurements you want to display, before running the scenario. You select measurements for the Microsoft IIS Server monitor using the MS IIS dialog box.
Note: To monitor an IIS server through a firewall, use TCP, port 139.
Adding a Machine to Monitor on page 148 Configuring the Microsoft IIS Monitor on page 149 Microsoft IIS Performance Counters on page 151
147
To delete a measurement from the default list, select the measurement and click Delete. To select additional measurements, click Add. A dialog box opens displaying all the available measurements. For a description of the available measurements, see Microsoft IIS Performance Counters on page 151. Note: To change the default counters for the Microsoft IIS Server monitor, see Changing a Monitors Default Counters on page 395.
148
For each measurement, select an object, counter, and instance, and then click Add, as described in Understanding the MS IIS Dialog Box on page 150. For a description of the available measurements, see Microsoft IIS Performance Counters on page 151.
Note: To change the default counters for the Microsoft IIS Server monitor, see Changing a Monitors Default Counters on page 395.
2 Add all the desired resources to the list, and click Close. 3 Click OK in the MS IIS dialog box to activate the monitor.
149
Object. Select the object being monitored on the specified machine. Counters. Select a resource counter to monitor. Select multiple counters using the CTRL key. For an explanation of each counter, click Explain. Instances. If multiple instances of the selected counter are running, select one or more instances to monitor for the selected counter. Explain. Displays a description of the selected counter.
150
Web Service Web Service Web Service Web Service Web Service
Post Requests/sec
Maximum Connections Current Connections Current NonAnonymous Users Not Found Errors/sec
Process
Private Bytes
151
152
Part VIII
Web Application Server Monitoring
154
17
Introduction to Web Application Server Resource Monitoring
You use LoadRunners Web Application Server Resource monitors to monitor Web application servers during a scenario run and isolate application server performance bottlenecks. Web Application Server Resource monitors provide you with information about the resource usage of the Ariba, ATG Dynamo, BroadVision, ColdFusion, Fujitsu INTERSTAGE, iPlanet (NAS), Microsoft ASP, Oracle9iAS HTTP, SilverStream, WebLogic (SNMP), WebLogic (JMX), and WebSphere application servers during scenario execution. To obtain performance data, you need to activate the online monitor for the server and specify which resources you want to measure before executing the scenario. The procedures for selecting monitor measurements and configuring the monitors vary according to server type. The following sections contain specific configuration instructions for each server type.
155
156
18
Ariba Monitoring
The Ariba monitor displays statistics about the resource usage on the Ariba server during the scenario run. To obtain data for this graph, you need to configure the Ariba online monitor (from the Controller) and select the measurements you want to display, before running the scenario. You select measurements to monitor the Ariba server using the Ariba Monitor Configuration dialog box.
Note: The port you use to monitor an Ariba server through a firewall depends on the configuration of your server.
Adding a Machine to Monitor on page 158 Configuring the Ariba Monitor on page 159 Ariba Performance Counters on page 161
157
158
Browse the Measured Components tree, and select performance counters as described in Understanding the Ariba Monitor Configuration Dialog Box on page 160. For a description of the available measurements, see Ariba Performance Counters on page 161. 2 Click OK in the Ariba Monitor Configuration dialog box, and in the Ariba dialog box, to activate the Ariba monitor.
159
Note: In some cases, although the browser is XML-compatible, it may still return the error: The XML page cannot be displayed. In these cases, the XML file can be accessed by the Ariba performance monitor, although it cannot be viewed by the browser.
Host. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
160
Note: Only browsers that are XML-compatible will allow you to view the performance XML file. To verify whether the XML file is accessible, display the XML file through the browser. The URL should be in the following format: http://<server name:server port>/metrics?query=getStats For example: http://merc1:12130/metrics?query=getStats
161
Description The instantaneous reading of the reserved memory (in bytes) that is not currently in use at the moment this metric is obtained. The amount of time (in hours and minutes) that Ariba Buyer has been running since the previous time it was started. The instantaneous reading of the number of server threads in existence at the moment this metric is obtained. The instantaneous reading of the number of Ariba Buyer objects being held in memory at the moment this metric is obtained. The average length of the user sessions (in seconds) of all users who logged out since previous sampling time. This value indicates how long, on average, a user stays connected to server. The average idle time (in seconds) for all the users who have been active since previous sampling time. The idle time is the period of time between two consecutive user requests from the same user. The cumulative count of the number of Approves that occurred during the sampling period. An Approve consists of a user approving one Approvable. The cumulative count of the number of Approvals submitted since previous sampling time. The cumulative count of the number of submitted Approvals denied since previous sampling time. The cumulative count of accesses (both reads and writes) to the object cache since previous sampling time. The cumulative count of accesses to the object cache that are successful (cache hits) since previous sampling time.
Up Time
Number of Threads
Approves
162
163
164
19
iPlanet (NAS) Monitoring
This Web Application Server Resource displays statistics about the resource usage on the iPlanet (NAS) Web application server during the scenario run. The iPlanet (NAS) monitor uses the SNMP to retrieve iPlanet (NAS) server statistics. To obtain data for this graph, you must first configure the iPlanet SNMP Service on the application server. You can then enable the iPlanet (NAS) online monitor (from the Controller) and select the measurements you want to display, before running the scenario. You define the measurements for the iPlanet (NAS) monitor using the iPlanet (NAS) dialog box. This chapter includes:
Setting Up the Monitoring Environment on page 166 Adding a Machine to Monitor on page 170 Configuring the iPlanet (NAS) Monitor on page 172 iPlanet (NAS) Performance Counters on page 174
165
Note: The instructions below assume that SNMP statistics will be collected on the standard SNMP port 161.
SNMP Summary
Solaris has a native SNMP agent, snmpdx, that is started automatically at boot time by the script /etc/rc3.d/S76snmpdx. This daemon communicates on the standard SNMP port 161. The port number can be changed with the -p <port> option. Planet Products are shipped with their own SNMP agents. The architecture is such that there is one "master agent" per host, which a network management station communicates with, and one or more "subagents" that collect data from various iPlanet products and forward statistics to the master agent. The master agent also defaults to communicating on port 161. To run both the Solaris SNMP agent and the iPlanet SNMP agent, a proxy must be used that makes the Sun agent look like a subagent to the iPlanet master agent.
166
Steps Overview
Login to the system as root Change the port number for the Solaris SNMP agent Configure and run the iPlanet agents "magt" and "sagt" Start the Solaris SNMP agent Configure iPlanet Application Server for SNMP statistics Start SNMP subagents for iPlanet Directory Server and iPlanet Web Server (optional)
167
5 You can configure system information and traps. In the example below, information has been added about the system owner and location, and SNMP traps have been sent to a network manager station ("mde.uk.sun.com"). COMMUNITY public ALLOW ALL OPERATIONS INITIAL sysLocation "Under Joe Bloggs' Desk in Headquarters" INITIAL sysContact "Joe Bloggs Email: [email protected] Voice: +1 650 555 1212" MANAGER mde.uk.sun.com SEND ALL TRAPS TO PORT 162 WITH COMMUNITY public
Note: There is no need to edit the proxy agent's configuration file (CONFIG_SAGT).
6 Start the iPlanet agents by running the command: /etc/rc3.d/S75snmpagt start To start the Solaris SNMP agent: Restart the Solaris SNMP agent by running the command: /etc/rc3.d/S76snmpdx start
168
6 Restart the iPlanet Application Server with the commands: iascontrol stop iascontrol kill iascontrol start 7 Check in the logfile <iASInstallDir>/logs/ias.log that the application server successfully connected to the master agent. You should see the following line: kas> SNMP: Connected to master agent
169
Summary Note
Use your SNMP management tool to query the SNMP master agent on port 161. You should see all the information provided by the Solaris SNMP agent as well as any iPlanet subagents that you have configured. The next time that you boot Solaris, the Sun and iPlanet SNMP agents will be started automatically by the boot scripts which you have configured.
170
Note: If the iPlanet SNMP agent is running on a different port than the default SNMP port, you must define the port number. Enter the following information in the Add Machine dialog box: <server name:port number> For example: digi:8888 In addition, you can define the default port for your iPlanet server in the configuration file, snmp.cfg, located in <LoadRunner root folder>\dat\monitors. For example, if the port used by the SNMP agent on your iPlanet server is 8888, you should edit the snmp.cfg file as follows: ; iPlanet (NAS) [cm_snmp_mon_nas] port=8888
4 In the Resource Measurements section of the iPlanet (NAS) dialog box, click Add. 5 Continue with Configuring the iPlanet (NAS) Monitor on page 172.
171
2 Browse the iPlanet (NAS) Resources Object tree, and select performance counters, as described in Understanding the iPlanet (NAS) Resources Dialog Box on page 174. For a description of the available measurements, see iPlanet (NAS) Performance Counters on page 174.
172
3 Add all the desired resources to the list, and click Close. The resources that you selected appear in the Resource Measurements on: <machine> section of the iPlanet (NAS) dialog box.
To enable this feature, add the following line to the <LoadRunner root folder>\dat\monitors\snmp.cfg file: SNMP_show_string_nodes=1 Usage Notes: You can select more than one name modifier, but the first in the hierarchy will be used. Each time the iPlanet (NAS) Add Measurements dialog box opens, the information is reread from the snmp.cfg file. You cannot add the same measurement twice (once with a name modifier and once without it). If you do so, an error message is issued.
173
iPlanet (NAS) SNMP Objects. Select each required object and click Add. Click Explain for the ID number and a description of the selected object. Explain. Displays a description of the selected object.
174
nasKesDiskLoad Factor
nasKesMemLoad Factor
nasKesAppLogics RunningFactor
175
Description The relative importance of the cached results of an AppLogic in computing the AppLogic execution performance. This figure is specified as a percent. The sum of all agent load factors, ResultCached, AvgExecTime, LastExecTime, and ServerLoad must equal 100% The relative importance of the average execution time of an AppLogic in computing the AppLogic execution performance. This figure is specified as a percent. The sum of all agent load factors, ResultCached, AvgExecTime, LastExecTime, and ServerLoad must equal 100% The relative importance of the last execution time of an AppLogic in computing the AppLogic execution performance. This figure is specified as a percent. The sum of all agent load factors, ResultCached, AvgExecTime, LastExecTime, and ServerLoad must equal 100% The relative importance of the number of AppLogics running in computing the AppLogic execution performance. This figure is specified as a percent. The sum of all agent load factors, ResultCached, AvgExecTime, LastExecTime, and ServerLoad must equal 100% The relative importance of the server load (computed using the four server load factors) in computing AppLogic execution performance. The sum of all agent load factors, ResultCached, AvgExecTime, LastExecTime, and ServerLoad must equal 100%. The length of time (in seconds) between each broadcast attempt from the load balancer daemon. The length of time (in seconds) between each broadcast of AppLogic load information across all the servers in the cluster. This should be greater than nasKesBroadcastInterval.
nasKesAvgExecTime Factor
nasKesLastExec TimeFactor
nasKesHitsFactor
nasKesServerLoad Factor
176
Description The length of time (in seconds) between each broadcast of server load information across all the servers in the cluster. This should be greater than nasKesBroadcastInterval. The length of time (in seconds) between each update of server load information. A server load update applies to the server load data that has been sampled up until the moment when the update occurs. The length of time (in seconds) between each sampling of CPU usage. The length of time (in seconds) between each sampling of disk usage. The length of time (in seconds) between each sampling of memory thrashes. The length of time (in seconds) between each sampling of the number of requests. The maximum number of times a request can be loaded. The minimum number of threads reserved to process asynchronous requests. The maximum number of threads reserved to process asynchronous requests. The maximum number of connections opened between NAS and the database. The minimum number of cached connections established between NAS and the database. The time after which an idle connection is dropped. The interval (in seconds) at which the cache cleaner will try to disconnect connections already idle for longer than the specified timeout. The maximum amount of time the driver will try to connect to the database.
nasKesServerLoad UpdateInterval
nasKesCpuLoad UpdateInterval nasKesDiskLoad UpdateInterval nasKesMemLoad UpdateInterval nasKesTotalReqs UpdateInterval nasKesMaxHops nasKesODBCReq MinThread nasKesODBCReq MaxThread nasKesODBCCache MaxConns nasKesODBCCache FreeSlots nasKesODBCCache Timeout nasKesODBCCache Interval nasKesODBCConn GiveupTime
177
Measurement nasKesODBCCache Debug nasKesODBCResult SetInitRows nasKesODBCResult SetMaxRows nasKesODBCResult SetMaxSize nasKesODBCSql Debug nasKesODBCEnable Parser nasKesORCLReqMin Thread nasKesORCLReq MaxThread nasKesORCLCache MaxConns nasKesORCLCache FreeSlots nasKesORCLCache Timeout nasKesORCLCache Interval nasKesORCLConn GiveupTime nasKesORCLCache Debug nasKesORCLResult SetInitRows
Description Turns on the connection cache debug information. The number of rows fetched at once from the database. The maximum number of rows the cached result set can contain. The maximum size of result set the driver will cache. Turns on SQL debug information. Turns on SQL parsing. The minimum number of threads reserved to process asynchronous requests. The maximum number of threads reserved to process asynchronous requests. The maximum number of connections opened between NAS and the database. The minimum number of cached connections established between NAS and the database. The time after which an idle connection is dropped. The interval (in seconds) at which the cache cleaner will try to disconnect connections already idle for longer than the specified timeout. The maximum amount of time the driver will spend trying to obtain a connection to Oracle. Turns on the connection cache debug information. The number of rows fetched at once from the database.
178
Measurement nasKesORCLResult SetMaxRows nasKesORCLResult SetMaxSize nasKesORCLSql Debug nasKesSYBReqMin Thread nasKesSYBReqMax Thread nasKesSYBCache MaxConns nasKesSYBCache FreeSlots nasKesSYBCache Timeout nasKesSYBCache Interval nasKesSYBConn GiveupTime nasKesSYBCache Debug nasKesSYBResultSet InitRows nasKesSYBResultSet MaxRows nasKesSYBResultSet MaxSize
Description The maximum number of rows the cached result set can contain. The maximum size of result set the driver will cache. Turns on sql debug information. The minimum number of threads reserved to process asynchronous requests. The maximum number of threads reserved to process asynchronous request. The maximum number of connections opened between NAS and the database. The minimum number of cached connections established between NAS and the database. The time after which an idle connection is dropped. The interval (in seconds) at which the cache cleaner will try to disconnect connections already idle for longer than the specified timeout. The maximum time the driver will spend trying to obtain a connection to Sybase before giving up. Turns on the connection cache debug information. The number of rows fetched at once from the database. The maximum number of rows the cached result set can contain. The maximum size of result set the driver will cache.
179
nasEngPort
nasEngMinThread nasEngMaxThread nasEngReqRate nasEngTotalReq nasEngReqNow nasEngReqWait nasEngReqReady nasEngAvgReqTime nasEngThreadNow nasEngThreadWait
180
Measurement nasEngWebReq Queue nasEngFailedReq nasEngTotalConn nasEngTotalConn Now nasEngTotalAccept nasEngTotalAccept Now nasEngTotalSent nasEngTotalSentBytes nasEngTotalRecv nasEngTotalRecvBytes nasEngBindTotal nasEngBindTotal Cached nasEngTotalThreads nasEngCurrent Threads nasEngSleeping Threads nasEngDAETotal Query nasEngDAEQuery Now nasEngDAETotal Conn
Description The number of web requests that are queued. The number of requests that failed. The total number of connections opened. The total number of connections in use. The total number of connections listening to incoming requests. The total number of connections listening to incoming connections in use. The total number of packets sent. The total number of bytes sent. The total number of packets received. The total number of bytes received. The number of AppLogic bound since startup. The number of AppLogic cached since startup. Total number of threads created in this process. Total number of threads in use in this process. Number of threads sleeping in this process. Total number of queries executed since startup. The number of queries being processed. The number of logical connections created since startup.
181
Measurement nasEngDAEConn Now nasEngDAECache Count nasEngODBCQuery Total nasEngODBC PreparedQueryTotal nasEngODBCConn Total nasEngODBCConn Now nasEngORCLQuery Total nasEngORCL PreparedQueryTotal nasEngORCLConn Total nasEngORCLConn Now nasEngSYBQuery Total nasEngSYBPreparedQ ueryTotal nasEngSYBConnTotal nasEngSYBConnNow nasStatusTrapEntry nasTrapKesIpAddress nasTrapKesPort
Description The number of logical connections in use. The number of caches. Total number of queries executed since startup. Total number of ODBC prepared queries executed since startup. Total number of connections opened since startup. Number of connections currently opened. Total number of queries executed since startup. Total number of prepared queries executed since startup. Total number of connections established with Oracle since startup. Number of connections opened with Oracle now. Total number of queries the driver processed since startup. Total number of prepared queries processed since startup. Total number of connections opened since startup. Number of SYB connections opened now. The KES definition. The IP Address of KES host. The port of the main engine of this NAS.
182
Description The port of the engine generating this event. The port of the engine generating this event.
183
184
20
Microsoft Active Server Pages Monitoring
The Microsoft Active Server Pages (ASP) monitor displays statistics about the resource usage on the ASP server during the scenario run. To obtain data for this graph, you need to configure the Microsoft ASP online monitor (from the Controller) and select the measurements you want to display, before running the scenario. You select measurements to monitor the Microsoft ASP application server using the MS Active Server Pages dialog box.
Note: To monitor an ASP server through a firewall, use TCP, port 139.
Adding a Machine to Monitor on page 186 Configuring the Microsoft Active Server Pages Monitor on page 187 MS Active Server Pages Performance Counters on page 188
185
Note: To change the default counters for the Microsoft ASP monitor, see Changing a Monitors Default Counters on page 395.
5 To select additional measurements, click Add in the Resource Measurements section. 6 Continue with Configuring the Microsoft Active Server Pages Monitor below.
186
For each measurement, select an object, counter, and instance, and then click Add, as described in Understanding the Microsoft Active Server Pages Dialog Box on page 188. For a description of the available measurements, see MS Active Server Pages Performance Counters on page 188.
Note: To change the default counters for the Microsoft ASP monitor, see Changing a Monitors Default Counters on page 395.
2 Add all the desired resources to the list, and click Close. The counters that you selected appear in the Resource Measurements on: <machine> section of the MS Active Server Pages dialog box. 3 Click OK in the MS Active Server Pages dialog box to activate the monitor.
187
Object. Select the object being monitored on the specified machine. Counters. Select a resource counter to monitor. Select multiple counters using the CTRL key. For an explanation of each counter, click Explain. Instances. If multiple instances of the selected counter are running, select one or more instances to monitor for the selected counter. Explain. Displays a description of the selected counter.
188
Description The current number of sessions being serviced. The number of transactions started per second.
189
190
21
WebLogic (SNMP) Monitoring
The WebLogic (SNMP) monitor displays statistics about the resource usage on the WebLogic (SNMP) server (version 6.0 and earlier) during the scenario run. The WebLogic (SNMP) monitor uses SNMP to retrieve server statistics. This chapter includes:
Adding a Machine to Monitor on page 192 Configuring the WebLogic (SNMP) Monitor on page 193 WebLogic (SNMP) Performance Counters on page 195 To use this monitor, you must make sure that a version prior to WebLogic 6.0 is installed on your server, and that the SNMP agent is installed and activated on the server. For instructions on installing the SNMP agent, see http://edocs.bea.com/wls/docs51/admindocs/snmpagent.html. To obtain data for this graph, you need to configure the WebLogic (SNMP) online monitor (from the Controller) and select the measurements you want to display, before running the scenario.
Note: To monitor a WebLogic (SNMP) server, use port 161 or 162, depending on the configuration of the agent.
191
Note: If the WebLogic SNMP agent is running on a different port than the default SNMP port, you must define the port number. Enter the following information in the Add Machine dialog box: <server name:port number> For example: digi:8888 In addition, you can define the default port for your WebLogic server in the configuration file, snmp.cfg, located in <LoadRunner root folder>\dat\monitors. For example, if the port used by the SNMP agent on your WebLogic server is 8888, you should edit the snmp.cfg file as follows: ; WebLogic [cm_snmp_mon_isp] port=8888
4 In the Resource Measurements section of the WebLogic (SNMP) dialog box, click Add. 5 Continue with Configuring the WebLogic (SNMP) Monitor on page 193.
192
2 Browse the WebLogic SNMP Objects tree, and select performance counters, as described in Understanding the WebLogic (SNMP) Resources Dialog Box on page 194. For a description of the available measurements, see WebLogic (SNMP) Performance Counters on page 195.
193
3 After selecting and adding the required objects, click Close. 4 Click OK in the WebLogic (SNMP) dialog box to activate the monitor.
WebLogic SNMP Objects. Select each required object and click Add (you can select only one object at a time). Click Explain for a description of the selected object. Explain. Displays a description of the selected object.
194
Server Table
The Server Table lists all WebLogic (SNMP) servers that are being monitored by the agent. A server must be contacted or be reported as a member of a cluster at least once before it will appear in this table. Servers are only reported as a member of a cluster when they are actively participating in the cluster, or shortly thereafter.
Measurement ServerState Description The state of the WebLogic server, as inferred by the SNMP agent. Up implies that the agent can contact the server. Down implies that the agent cannot contact the server. This value is true if client logins are enabled on the server. The maximum heap size for this server, in KB The percentage of heap space currently in use on the server The current length of the server execute queue The current throughput of execute queue, expressed as the number of requests processed per second The total number of EJB deployment units known to the server The total number of EJB beans actively deployed on the server
ServerNumEJBDeployment ServerNumEJBBeansDeployed
195
Listen Table
The Listen Table is the set of protocols, IP addresses, and port combinations on which servers are listening. There will be multiple entries for each server: one for each protocol, ipAddr, port combination. If clustering is used, the clustering-related MIB objects will assume a higher priority.
Measurement ListenPort ListenAdminOK Description Port number. True if admin requests are allowed on this (protocol, ipAddr, port) combination; otherwise false. Listening if the (protocol, ipAddr, port) combination is enabled on the server; Not Listening if it is not. The server may be listening but not accepting new clients if its server Login Enable state is false. In this case, existing clients will continue to function, but new ones will not.
ListenState
196
ClassPath Table
The ClassPath Table is the table of classpath elements for Java, WebLogic (SNMP) servers, and servlets. There are multiple entries in this table for each server. There may also be multiple entries for each path on a server. If clustering is used, the clustering-related MIB objects will assume a higher priority.
Measurement CPType Description The type of CP element: Java, WebLogic, servlet. A Java CPType means the CP element is one of the elements in the normal Java classpath. A WebLogic CPType means the CP element is one of the elements in weblogic.class.path. A servlet CPType means the CP element is one of the elements in the dynamic servlet classpath. The position of an element within its path. The index starts at 1.
CPIndex
197
198
22
WebSphere Application Server Monitoring
The WebSphere Application Server Monitor allows you to monitor the availability and server statistics of a IBM WebSphere Application Server 3.5.x, 4.x, and 5.x. The error and warning thresholds for the monitor can be set on as many as ten WebSphere Application Server performance statistics. The WebSphere Application Server Monitor monitors the server performance statistics from IBM WebSphere servers using the performance monitoring interfaces provided with WebSphere. You can monitor multiple parameters or counters with a single monitor instance. This allows you to watch server loading for performance, availability, and capacity planning. Create a separate WebSphere Application Server Monitor instance for each WebSphere Application Server in your environment. To obtain data for this graph, you need to configure the WebSphere Application Server online monitor (from the Controller) and select the measurements you want to display before running the scenario. This chapter includes:
Setting up the Monitoring Environment on page 200 Adding a Machine to Monitor on page 203 Configuring the WebSphere Application Server Monitor on page 204 WebSphere Application Server Performance Counters on page 208
199
You must first install the IBM WebSphere Administrator's Console on the SiteScope server if you are monitoring WebSphere versions 3.5.x or 4.x. When installing the Administrator's Console:
Select the Custom installation option. In the Choose Application Server Components dialog box, select Administrator's Console and IBM JDK 1.2.2. You will need to specify the machine you want to monitor during the installation.
For WebSphere 3.5.x, enable EPM Counters on the WebSphere server. For WebSphere 4.x and 5.x, enable PMI Counters or enable the Performance Monitoring Service on the WebSphere server.
You enable the counters for the application you want to monitor via the WebSphere Administrator's Console. For WebSphere 4.x:
When you have selected resources to monitor, select the Performance option. In the dialog box that opens, expand the Performance Modules tree. In order to manage different levels of performance data, select the performance modules and choose a performance level, and click Set.
200
Alternatively, on WebSphere 3.5.x, you can set the EPM Specification to: epm=high:epm.beanMethodData=none through the WebSphere Administrator's Console.
If security has been enabled on the WebSphere server, the server security ring must be copied to the admin client.
Note: Certain trial versions of IBM WebSphere do not include the Performance Analysis option required by the Sitescope WebSphere Application Server monitor. The SiteScope monitor will only work when a complete WebSphere production installation is available.
201
2 Copy all of the files from the <WebSphere 5.x Application Server installation>\lib folder to the <client installation>\lib folder (see step 1 above). 3 The WebSphere 5.x server and client settings have to match. This means that the SiteScope WebSphere Application Server Monitor will not be able to monitor a WebSphere 5.1 application server if the client libraries are from a WebSphere 5.0 application server, and vice versa. Client libraries should be installed in separate folders with clearly distinct directory names, such as WebSphere50 and WebSphere51, to avoid confusion and SiteScope setup errors. 4 The sas.props file should be replaced with soap.props for WebSphere 5.x installations.
Note: The WebSphere 5.x SiteScope monitor uses the WebSphere JMX interface, so the port number used to communicate with the application server is the SOAP port number. By default, the SOAP port number is 8880.
5 If security has been enabled on the WebSphere server, the server security ring must be copied to the admin client.
General information
If security has been enabled on the WebSphere server, you must copy the security keyring from the WebSphere server to SiteScope. A keyring is a certification used by the server to identify the client.
202
203
204
3 The WebSphere Application Server Configuration dialog box opens. Browse the Measured Components tree and select the performance counters on the right, as described in Understanding the WebSphere Application Server Configuration Dialog Box on page 207. Click a component or counter to see its description in the Component/Counter Description section.
4 Click OK to close the WebSphere Application Server Configuration dialog box. The counters that you selected appear in the Resource Measurements on: <machine> section of the WebSphere Application Server dialog box. 5 Click OK in the WebSphere Application Server dialog box to activate the WebSphere Application Server monitor.
205
Client Properties File. Enter the custom client properties file. Select an appropriate soap.client.props file. By default, the <WebSphere>/properties/soap.client.props file is used. Version. Enter the version of the WebSphere server. WebSphere Directory. Enter the path to the WebSphere directory. This directory should contain at least an Admin Console installation. Port Number. Enter the port number of WebSphere server. This should be the SOAP port for WebSphere 5.x+. The default port number is 8880. Classpath. Enter any extra classpath elements needed for the monitor program. Password. Enter the password that SiteScope should use to log on to WebSphere server. Security Realm. Enter the security realm for the WebSphere server (3.5x only). User Name. Enter the user name that SiteScope should use to log on to WebSphere server. Server. Enter the name of the server where the WebSphere application is running. Do not enter backslashes (\\) that indicate a UNC path as part of the name of the server. Update every. The number entered here indicates the amount of time, in seconds, between one monitor check and the next. By default the monitor updates every 3 seconds.
206
Host. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
207
Run-Time Resources
These are resources related to the Java Virtual Machine run time, as well as the ORB.
Measurement MemoryFree MemoryTotal MemoryUse Description The amount of free memory remaining in the Java Virtual Machine. The total memory allocated for the Java Virtual Machine. The total memory in use on the Java Virtual Machine.
BeanData
Every home on the server provides performance data, depending on the type of bean deployed in the home. The top level bean data holds an aggregate of all the containers.
Measurement BeanDestroys Description The number of times an individual bean object was destroyed. This applies to any bean, regardless of its type. The number of times a stateless session bean object was destroyed. The number of times a stateful session bean object was destroyed.
StatelessBeanDestroys StatefulBeanDestroys
208
BeanObjectPool
The server holds a cache of bean objects. Each home has a cache and there is therefore one BeanObjectPoolContainer per container. The top level, BeanObjectPool, holds an aggregate of all the containers data.
Measurement NumGetFound NumPutsDiscarded Description The number of calls to the pool that resulted in finding an available bean. The number of times releasing a bean to the pool resulted in the bean being discarded because the pool was full.
OrbThreadPool
These are resources related to the ORB thread pool that is on the server.
Measurement ActiveThreads TotalThreads PercentTimeMaxed Description The average number of active threads in the pool. The average number of threads in the pool. The average percent of the time that the number of threads in the pool reached or exceeded the desired maximum number.
DBConnectionMgr
These are resources related to the database connection manager. The manager consists of a series of data sources, as well as a top-level aggregate of each of the performance metrics.
Measurement ConnectionWaitTime ConnectionTime ConnectionPercentUsed Description The average time (in seconds) of a connection grant. The average time (in seconds) that a connection is in use. The average percentage of the pool that is in use.
209
TransactionData
These are resources that pertain to transactions.
Measurement NumTransactions ActiveTransactions TransactionRT RolledBack Timeouts TransactionSuspended Description The number of transactions processed. The average number of active transactions. The average duration of each transaction. The number of transactions rolled back. The number of transactions that timed out due to inactivity timeouts. The average number of times that a transaction was suspended.
ServletEngine
These are resources that are related to servlets and JSPs.
Measurement ServletErrors Description The number of requests that resulted in an error or an exception.
Sessions
These are general metrics regarding the HTTP session pool.
Measurement SessionsInvalidated Description The number of invalidated sessions. May not be valid when using sessions in the database mode.
210
Part IX
Database Server Resource Monitoring
212
23
Introduction to Database Resource Monitoring
You monitor DB2, Oracle, SQL Server, or Sybase database resource usage during a scenario run using LoadRunners Database Server Resource monitors. The DB2, Oracle, SQL Server, or Sybase database server resource monitors measure statistics for DB2, Oracle, SQL Server, or Sybase database servers. During a scenario run, you use these monitors to isolate database server performance bottlenecks. For each database server, you configure the measurements you want to monitor before running your scenario. To run the DB2, Oracle, and Sybase monitors, you must also install the client libraries on the database server you want to monitor.
213
214
24
DB2 Monitoring
The DB2 monitor shows the resource usage on the DB2 database server machine. To monitor the DB2 database server machine, you must first set up the DB2 monitor environment. You then enable the DB2 monitor (from the Controller) by selecting the counters you want the monitor to measure. You select these counters using the DB2 Monitor Configuration dialog box.
Note: If there is no application working with a database, you can only monitor the database manager instance.
Setting Up the Monitoring Environment on page 216 Adding a Machine to Monitor on page 217 Configuring the DB2 Monitor on page 218 DB2 Performance Counters on page 221
215
System Name. <server name> Remote Instance. DB2 Host Name. <server name> Service Name. The DB2 server port. The default value is 50000.
Note: If you receive an error message after clicking Retrieve, repeat steps 3 and 4, and click OK.
6 Expand the <server name> node in the console tree. 7 Right-click Instance, and select Add. 8 Enter the following settings in the dialog box:
Remote Instance. DB2 Instance Name. the database instance to be called from the Controller Host Name. <server name> Service Name. The DB2 server port. The default value is 50000.
216
Note: You can only work with a single Database Manager instance during each monitoring session.
217
3 Enter the DB2 server machine name followed by the @ sign and the database instance you specified in the DB2 Control Center. In the Platform box, select N/A.
Click OK to save the information you entered and close the dialog box. 4 In the Resource Measurements section of the DB2 dialog box, click Add. 5 Continue with Configuring the DB2 Monitor below.
218
2 The DB2 Monitor Configuration dialog box opens, displaying the available measurements.
Browse the Measured Components tree, and select performance counters, as described in Understanding the DB2 Monitor Configuration Dialog Box on page 220, and then click OK. For a description of the available measurements, see DB2 Performance Counters on page 221. 3 Click OK. The measurements that you selected appear in the Resource Measurements on: <machine> section of the DB2 dialog box. 4 Click OK in the DB2 dialog box to activate the monitor.
219
Note: If there is no application working with a database, you can only monitor the database manager instance.
Host. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
220
DatabaseManager
The following table lists the DatabaseManager counters:
Measurement rem_cons_in Description The current number of connections initiated from remote clients to the instance of the database manager that is being monitored. The number of remote applications that are currently connected to a database and are currently processing a unit of work within the database manager instance being monitored. The number of local applications that are currently connected to a database within the database manager instance being monitored. The number of local applications that are currently connected to a database within the database manager instance being monitored and are currently processing a unit of work. The number of local databases that have applications connected. The number of agents registered in the database manager instance that is being monitored (coordinator agents and subagents). The number of agents waiting for a token so they can execute a transaction in the database manager. The number of agents in the agent pool that are currently unassigned to an application and are therefore "idle". The number of agents assigned from the agent pool.
rem_cons_in_exec
local_cons
local_cons_in_exec
con_local_dbases agents_registered
agents_waiting_on_token
idle_agents
agents_from_pool
221
Description The number of agents created because the agent pool was empty. The number of times that agents are stolen from an application. Agents are stolen when an idle agent associated with an application is reassigned to work on a different application. The amount of private memory that the instance of the database manager has currently committed at the time of the snapshot. The number of DRDA agents in the DRDA connections pool that are primed with a connection to a DRDA database, but are inactive. The number of times that an agent from the agents pool was primed with a connection and was stolen for use with a different DRDA database. The total number of allocated pages of sort heap space for all sorts at the level chosen and at the time the snapshot was taken. The number of sorts that have requested heaps after the sort heap threshold has been reached. The number of piped sorts that have been requested. The number of piped sorts that have been accepted.
comm_private_mem
inactive_gw_agents
num_gw_conn_switches
sort_heap_allocated
222
Database
The following table lists the Database counters:
Measurement appls_cur_cons appls_in_db2 Description Indicates the number of applications that are currently connected to the database. Indicates the number of applications that are currently connected to the database, and for which the database manager is currently processing a request. The number of connections made by a sub-agent to the database at the node. At the application level, this is the number of subagents associated with an application. At the database level, it is the number of sub-agents for all applications. The total number of allocated pages of sort heap space for all sorts at the level chosen and at the time the snapshot was taken. The total number of sorts that have been executed. The total elapsed time (in milliseconds) for all sorts that have been executed. The total number of sorts that ran out of sort heap and may have required disk space for temporary storage. The number of sorts in the database that currently have a sort heap allocated. The total number of hash joins executed. The total number of times that a single partition of a hash join was larger than the available sort heap space. The number of times that hash join data exceeded the available sort heap space.
total_sec_cons num_assoc_agents
sort_heap_allocated
hash_join_overflows
223
Description The number of times that hash join data exceeded the available sort heap space by less than 10%. Indicates the number of logical read requests for data pages that have gone through the buffer pool. The number of read requests that required I/O to get data pages into the buffer pool. Indicates the number of times a buffer pool data page was physically written to disk. Indicates the number of logical read requests for index pages that have gone through the buffer pool. Indicates the number of physical read requests to get index pages into the buffer pool. Indicates the number of times a buffer pool index page was physically written to disk. Provides the total amount of elapsed time spent processing read requests that caused data or index pages to be physically read from disk to buffer pool. Provides the total amount of time spent physically writing data or index pages from the buffer pool to disk. The total number of database files closed. The number of pages read asynchronously into the buffer pool. The number of times a buffer pool data page was physically written to disk by either an asynchronous page cleaner, or a pre-fetcher. A pre-fetcher may have written dirty pages to disk to make space for the pages being pre-fetched.
pool_write_time
224
Measurement pool_async_index_writes
Description The number of times a buffer pool index page was physically written to disk by either an asynchronous page cleaner, or a pre-fetcher. A pre-fetcher may have written dirty pages to disk to make space for the pages being pre-fetched. The number of index pages read asynchronously into the buffer pool by a pre-fetcher. The total elapsed time spent reading by database manager pre-fetchers. The total elapsed time spent writing data or index pages from the buffer pool to disk by database manager page cleaners. The number of asynchronous read requests. The number of times a page cleaner was invoked because the logging space used had reached a predefined criterion for the database. The number of times a page cleaner was invoked because a synchronous write was needed during the victim buffer replacement for the database. The number of times a page cleaner was invoked because a buffer pool had reached the dirty page threshold criterion for the database. The time an application spent waiting for an I/O server (pre-fetcher) to finish loading pages into the buffer pool. The number of buffer pool data pages copied to extended storage. The number of buffer pool index pages copied to extended storage. The number of buffer pool data pages copied from extended storage. The number of buffer pool index pages copied from extended storage.
pool_async_data_read_reqs pool_lsn_gap_clns
pool_drty_pg_steal_clns
pool_drty_pg_thrsh_clns
prefetch_wait_time
225
Description The number of read operations that do not use the buffer pool. The number of write operations that do not use the buffer pool. The number of requests to perform a direct read of one or more sectors of data. The number of requests to perform a direct write of one or more sectors of data. The elapsed time (in milliseconds) required to perform the direct reads. The elapsed time (in milliseconds) required to perform the direct writes. The number of times that the catalog cache was referenced to obtain table descriptor information. The number of times that the system tried to insert table descriptor information into the catalog cache. The number of times that an insert into the catalog cache failed due the catalog cache being full. The number of times that an insert into the catalog cache failed due to a heap-full condition in the database heap. The number of times that an application looked for a section or package in the package cache. At a database level, it indicates the overall number of references since the database was started, or monitor data was reset. The total number of times that a requested section was not available for use and had to be loaded into the package cache. This count includes any implicit prepares performed by the system.
cat_cache_overflows
cat_cache_heap_full
pkg_cache_lookups
pkg_cache_inserts
226
Measurement pkg_cache_num_overflows appl_section_lookups appl_section_inserts sec_logs_allocated log_reads log_writes total_log_used locks_held lock_list_in_use deadlocks lock_escals x_lock_escals
Description The number of times that the package cache overflowed the bounds of its allocated memory. Lookups of SQL sections by an application from its SQL work area. Inserts of SQL sections by an application from its SQL work area. The total number of secondary log files that are currently being used for the database. The number of log pages read from disk by the logger. The number of log pages written to disk by the logger. The total amount of active log space currently used (in bytes) in the database. The number of locks currently held. The total amount of lock list memory (in bytes) that is in use. The total number of deadlocks that have occurred. The number of times that locks have been escalated from several row locks to a table lock. The number of times that locks have been escalated from several row locks to one exclusive table lock, or the number of times an exclusive lock on a row caused the table lock to become an exclusive lock. The number of times that a request to lock an object timed-out instead of being granted. The total number of times that applications or connections waited for locks. The total elapsed time waited for a lock.
227
Measurement locks_waiting rows_deleted rows_inserted rows_updated rows_selected int_rows_deleted int_rows_updated int_rows_inserted static_sql_stmts dynamic_sql_stmts failed_sql_stmts commit_sql_stmts rollback_sql_stmts select_sql_stmts uid_sql_stmts ddl_sql_stmts int_auto_rebinds
Description Indicates the number of agents waiting on a lock. The number of row deletions attempted. The number of row insertions attempted. The number of row updates attempted. The number of rows that have been selected and returned to the application. The number of rows deleted from the database as a result of internal activity. The number of rows updated from the database as a result of internal activity. The number of rows inserted into the database as a result of internal activity caused by triggers. The number of static SQL statements that were attempted. The number of dynamic SQL statements that were attempted. The number of SQL statements that were attempted, but failed. The total number of SQL COMMIT statements that have been attempted. The total number of SQL ROLLBACK statements that have been attempted. The number of SQL SELECT statements that were executed. The number of SQL UPDATE, INSERT, and DELETE statements that were executed. The number of SQL Data Definition Language (DDL) statements that were executed. The number of automatic rebinds (or recompiles) that have been attempted.
228
Description The total number of commits initiated internally by the database manager. The total number of rollbacks initiated internally by the database manager. The total number of forced rollbacks initiated by the database manager due to a deadlock. A rollback is performed on the current unit of work in an application selected by the database manager to resolve the deadlock. The number of binds and pre-compiles attempted.
binds_precompiles
Application
The following table lists the Application counters:
Measurement agents_stolen Description The number of times that agents are stolen from an application. Agents are stolen when an idle agent associated with an application is reassigned to work on a different application. At the application level, this is the number of subagents associated with an application. At the database level, it is the number of sub-agents for all applications. The total number of sorts that have been executed. The total elapsed time (in milliseconds) for all sorts that have been executed. The total number of sorts that ran out of sort heap and may have required disk space for temporary storage. The total number of hash joins executed.
num_assoc_agents
total_hash_joins
229
Measurement total_hash_loops
Description The total number of times that a single partition of a hash join was larger than the available sort heap space. The number of times that hash join data exceeded the available sort heap space The number of times that hash join data exceeded the available sort heap space by less than 10%. The number of logical read requests for data pages that have gone through the buffer pool. The number of read requests that required I/O to get data pages into the buffer pool. The number of times a buffer pool data page was physically written to disk. The number of logical read requests for index pages that have gone through the buffer pool. The number of physical read requests to get index pages into the buffer pool. The number of times a buffer pool index page was physically written to disk. Provides the total amount of elapsed time spent processing read requests that caused data or index pages to be physically read from disk to buffer pool. The time an application spent waiting for an I/O server (pre-fetcher) to finish loading pages into the buffer pool. The number of buffer pool data pages copied to extended storage. The number of buffer pool index pages copied to extended storage. The number of buffer pool data pages copied from extended storage.
prefetch_wait_time
230
Measurement pool_index_from_estore direct_reads direct_writes direct_read_reqs direct_write_reqs direct_read_time direct_write_time cat_cache_lookups cat_cache_inserts
Description The number of buffer pool index pages copied from extended storage. The number of read operations that do not use the buffer pool. The number of write operations that do not use the buffer pool. The number of requests to perform a direct read of one or more sectors of data. The number of requests to perform a direct write of one or more sectors of data. The elapsed time (in milliseconds) required to perform the direct reads. The elapsed time (in milliseconds) required to perform the direct writes. The number of times that the catalog cache was referenced to obtain table descriptor information. The number of times that the system tried to insert table descriptor information into the catalog cache. The number of times that an insert into the catalog cache failed due to the catalog cache being full. The number of times that an insert into the catalog cache failed due to a heap-full condition in the database heap. The number of times that an application looked for a section or package in the package cache. At a database level, it indicates the overall number of references since the database was started, or monitor data was reset.
cat_cache_overflows
cat_cache_heap_full
pkg_cache_lookups
231
Measurement pkg_cache_inserts
Description The total number of times that a requested section was not available for use and had to be loaded into the package cache. This count includes any implicit prepares performed by the system. Lookups of SQL sections by an application from its SQL work area. Inserts of SQL sections by an application from its SQL work area. The amount of log space (in bytes) used in the current unit of work of the monitored application. The number of locks currently held. The total number of deadlocks that have occurred. The number of times that locks have been escalated from several row locks to a table lock. The number of times that locks have been escalated from several row locks to one exclusive table lock, or the number of times an exclusive lock on a row caused the table lock to become an exclusive lock. The number of times that a request to lock an object timed-out instead of being granted. The total number of times that applications or connections waited for locks. The total elapsed time waited for a lock. Indicates the number of agents waiting on a lock. The total amount of elapsed time this unit of work has spent waiting for locks. The number of row deletions attempted.
232
Measurement rows_inserted rows_updated rows_selected rows_written rows_read int_rows_deleted int_rows_updated int_rows_inserted open_rem_curs
Description The number of row insertions attempted. The number of row updates attempted. The number of rows that have been selected and returned to the application. The number of rows changed (inserted, deleted or updated) in the table. The number of rows read from the table. The number of rows deleted from the database as a result of internal activity. The number of rows updated from the database as a result of internal activity. The number of rows inserted into the database as a result of internal activity caused by triggers. The number of remote cursors currently open for this application, including those cursors counted by open_rem_curs_blk. The number of remote blocking cursors currently open for this application. The number of times that a request for an I/O block at server was rejected and the request was converted to non-blocked I/O. The number of times that a request for an I/O block was accepted. The number of local cursors currently open for this application, including those cursors counted by open_loc_curs_blk. The number of local blocking cursors currently open for this application. The number of static SQL statements that were attempted.
open_rem_curs_blk rej_curs_blk
acc_curs_blk open_loc_curs
open_loc_curs_blk static_sql_stmts
233
Measurement dynamic_sql_stmts failed_sql_stmts commit_sql_stmts rollback_sql_stmts select_sql_stmts uid_sql_stmts ddl_sql_stmts int_auto_rebinds int_commits int_rollbacks int_deadlock_rollbacks
Description The number of dynamic SQL statements that were attempted. The number of SQL statements that were attempted, but failed. The total number of SQL COMMIT statements that have been attempted. The total number of SQL ROLLBACK statements that have been attempted. The number of SQL SELECT statements that were executed. The number of SQL UPDATE, INSERT, and DELETE statements that were executed. The number of SQL Data Definition Language (DDL) statements that were executed. The number of automatic rebinds (or recompiles) that have been attempted. The total number of commits initiated internally by the database manager. The total number of rollbacks initiated internally by the database manager. The total number of forced rollbacks initiated by the database manager due to a deadlock. A rollback is performed on the current unit of work in an application selected by the database manager to resolve the deadlock. The number of binds and pre-compiles attempted.
binds_precompiles
234
25
Oracle Monitoring
The Oracle monitor displays information from Oracle V$ tables: Session statistics, V$SESSTAT, system statistics, V$SYSSTAT, and other table counters defined by the user in the custom query. The SiteScope Oracle JDBC Monitor monitors the server performance statistics from Oracle Database servers. You can monitor multiple parameters or counters with a single monitor instance. This allows you to watch server loading for performance, availability, and capacity planning. You can create a separate Oracle JDBC Monitor instance for each Oracle database server in your environment. To obtain data for this graph, you must first set up the monitoring environment. You then configure the Oracle online monitor (from the Controller) and select the measurements you want to display, before running the scenario. This chapter includes:
Setting Up the Monitoring Environment on page 236 Adding a Machine to Monitor on page 240 Configuring the Oracle Monitor on page 241 Oracle Performance Counters on page 247 Custom Queries on page 248
235
Note: The port you use to monitor an Oracle server through a firewall depends on the configuration of the Oracle server. Configuration information for the connection between the client and server is located in the Oracle client tnsnames.ora file.
If you are using the SiteScope monitor engine, ensure that SiteScope has been installed on a server. You can install SiteScope on the same machine as the Controller, or on a dedicated server. The Oracle server measures information from the V$SESSTAT and V$SYSSTAT Oracle V$ tables, and other table counters defined by the user in the custom query. In order to monitor the Oracle server, you must set up the monitoring environment as described below before you can configure the monitor. To set up the native LoadRunner Oracle monitor environment:
1 Ensure that the Oracle client libraries are installed on the Controller machine. 2 Verify that %OracleHome%\bin is included in the path environment variable. If it is not, add it. 3 Configure the tnsnames.ora file on the Controller machine so that the Oracle client can communicate with the Oracle server(s) you plan to monitor. You can configure connection parameters either manually, by editing the tnsnames.ora file in a text editor, or using the Oracle service configuration tool (for example, select Start > Programs > Oracle for Windows NT > Oracle Net8 Easy Config). You specify:
a new service name (TNS name) for the Oracle instance TCP protocol
236
the host name (name of monitored server machine) the port number (usually 1521) the database SID (the default SID is ORCL)
For example:
Note: Only the 32-bit Oracle client should be installed on the Controller machine running the Oracle monitor. If you have a 16-bit and a 32-bit Oracle client installation on the Controller machine, the 16-bit installation should be uninstalled.
4 Obtain a username and password for the service from your database administrator, and ensure that the Controller has database administrator privileges for the Oracle V$tables (V$SESSTAT, V$SYSSTAT, V$STATNAME, V$INSTANCE, V$SESSION). 5 Verify connection with the Oracle server by performing tns ping from the Controller machine.
Note: here may be a problem connecting if the Oracle server is behind a DMZ/firewall that limits its communication to application servers accessing it.
237
6 Ensure that the registries are updated for the version of Oracle that you are using and that they have the following key: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 7 Verify that the Oracle server you want to monitor is up and running.
8 Run SQL*Plus from the Controller and attempt to log in to the Oracle server(s) with the desired username/password/server combination. 9 Type SELECT * FROM V$SYSSTAT to verify that you can view the V$SYSSTAT table on the Oracle server. Use similar queries to verify that you can view the V$SESSTAT, V$SESSION, V$INSTANCE, V$STATNAME, and V$PROCESS tables on the server. Make sure that the Oracle bin directory is in the search path. 10 To change the length of each monitoring sample (in seconds), you need to edit the dat\monitors\vmon.cfg file in the LoadRunner root folder. The default rate is 10 seconds.
Note: The minimum sampling rate for the Oracle Monitor is 10 seconds. If you set the sampling rate at less than 10 seconds, the Oracle Monitor will continue to monitor at 10 second intervals. If a problem occurs in setting up the Oracle environment, view the error message issued by the Oracle server.
238
To set up the SiteScope Oracle JDBC monitor environment: 1 You must have a copy of the applicable Oracle JDBC database driver file (for example, classes12.zip) on the SiteScope server. Copy the downloaded driver file into the <SiteScope install path>\SiteScope\java\lib\ext subdirectory. DO NOT unzip the file. Stop and restart the SiteScope service after copying the driver file to the SiteScope machine.
Note: More than one driver file is available for download. Some drivers support more than one version of Oracle database (for example, the classes12.zip Oracle JDBC thin driver) while others only support a particular version. If you are monitoring a recent version of Oracle database, you should download the latest version of the database driver.
2 You must supply the correct Database Connection URL, a database username and password when setting up the monitor. The syntax of the Database Connection URL usually has the form of: jdbc:oracle:thin:@<tcp address>:<tcp port>:<database sid>. For example to connect to the ORCL database on a machine using port 1521 you would use: jdbc:oracle:thin:@206.168.191.19:1521:ORCL Note: The colon and @ symbols must be included as shown.
3 You must specify the Oracle Database Driver that was installed on the SiteScope server when setting up the monitor. The Database Driver for the Oracle thin JDBC driver is: oracle.jdbc.driver.OracleDriver
239
4 You should only have one Oracle client installed on the SiteScope machine. If there is more that one client installed, SiteScope may report an error and be unable to connect to the database. 5 You must have an Oracle user login that SiteScope will use to access the Oracle server. In order to retrieve the Oracle database counters, the user that SiteScope will use for the Oracle JDBC Monitor should be able to execute all the SQL statements as found in the file SiteScope\templates.applications\commands.oraclejdbc.
240
4 In the Monitored Server Machines section, click Add. The Add Machine dialog box opens.
In the Monitored Machine Information section, enter the server name or IP address of the machine you want to monitor. Select the platform on which the machine runs. In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information. Note: If you are adding a native LoadRunner monitor, the SiteScope Server Information section does not appear.
Click OK to close the Add Machine dialog box. 5 In the Resource Measurements on: <machine> section of the Oracle dialog box, click Add. 6 Continue with Configuring the Oracle Monitor below.
Configuring the Native LoadRunner Oracle Database Monitor Configuring the SiteScope Oracle JDBC Monitor
241
Login Name. Enter your login name. Password. Enter your password. Server Name. Enter the name of the server.
242
2 The Add Oracle Measurements dialog box opens, displaying the available measurements.
3 For each measurement, select an object, measurement, and instance, and then click Add, as described in Understanding the Add Oracle Measurements Dialog Box below. For a description of the available measurements, see Oracle Performance Counters on page 247. 4 Click Close. The measurements that you selected appear in the Resource Measurements on: <machine> section of the Oracle dialog box. 5 Click OK in the Oracle dialog box to activate the monitor.
Note: By default, the database returns the absolute value of a counter. However, by changing the IsRate setting in the dat\monitors\vmon.cfg file to 1, you can instruct the database to report a counters rate valuethe change in the counter per unit time.
Measurements. Select a resource measurement to monitor. Select multiple measurements using the CTRL key. For an explanation of each measurement, click Explain. Instances. If multiple instances of the selected measurement are running, select one or more instances to monitor for the selected measurement. Explain. Displays a description of the selected measurement.
244
2 The Oracle Configuration dialog box opens. Browse the Measured Components tree and select the performance counters on the right, as described in Understanding the Oracle Configuration Dialog Box on page 247. Click a component or counter to see its description in the Component/Counter Description section.
3 Click OK to close the Oracle Configuration dialog box. The components that you selected appear in the Resource Measurements on: <machine> section of the Oracle dialog box. 4 Click OK in the Oracle dialog box to activate the monitor.
245
Instance. Enter the database SID. For example, ORCL. Database Connection URL. Enter the connection URL to the database you want to monitor. For example, jdbc:oracle:thin:@206.168.191.19:1521:ORCL Database User Name. Enter the user name that SiteScope should use to connect to the database. Database Password. Enter the password for the user name that SiteScope should use to connect to the database. Database Driver. Enter the driver used to connect to the database. For example, oracle.jdbc.driver.OracleDriver. Connection Timeout. Enter an optional the time out value, in seconds, that SiteScope should to wait for a database connection to respond. Query Timeout. Enter an optional the time out value, in seconds, that SiteScope should to wait for a response from the database query. If the database does not respond within the period specified, SiteScope will report an error. Update every. Select how often the monitor should read the server statistics. The default interval is to run or update the monitor once every 10 seconds.
Notes:
The sum of the Connection Timeout value and Query Timeout value should always be less than the Update every value for the monitor. Some commonly used databases and database drivers do not support the Query Timeout feature. In these cases the Query Timeout value should be set to zero.
246
Host. The name of the host machine. Measured Components. Displays a tree containing all the available measured components. Performance Counters. Displays the performance counters for a selected measured component. Component/Counter Description. Displays a description of the selected measured component or performance counter.
Bytes received via SQL*Net from client Logons current Opens of replaced files
247
Description Oracle allocates resources (Call State Objects) to keep track of relevant user call data structures every time you log in, parse, or execute. When determining activity, the ratio of user calls to RPI calls gives you an indication of how much internal work is generated as a result of the type of requests the user is sending to Oracle. The total number of Net8 messages sent to, and received from, the client. The total number of bytes sent to the client from the foreground process(es). The total number of current open cursors. Closely related to consistent changes, this statistic counts the total number of changes that were made to all blocks in the SGA that were part of an update or delete operation. These are changes that generate redo log entries and hence will cause permanent changes to the database if the transaction is committed. This statistic is a rough indication of total database work and indicates (possibly on a pertransaction level) the rate at which buffers are being dirtied. The total number of file opens being performed by the instance. Each process needs a number of files (control file, log file, database file) to work against the database.
SQL*Net roundtrips to/from client Bytes sent via SQL*Net to client Opened cursors current DB block changes
Custom Queries
Using the custom query feature, you can define your own query to the Oracle database and view the result of this querya single numerical valuein the Oracle online monitor graph. By defining your own query, you can monitor not only the V$SYSSTAT and V$SESSTAT table counters that are currently provided by the Oracle monitor, but other tables that contain useful performance information as well.
248
To create a custom query: 1 In the third line of the vmon.cfg file, CustomCounters=, indicate the number of custom counters you want to create. 2 Create a new section in the vmon.cfg file for the new counter. Each section has the following format: [Custom2] Name=Number of sessions Description=This counter returns the number of sessions active. Query=SELECT COUNT(*) FROM V$SESSION IsRate=1 3 In the [Custom#] line, assign the next number in the sequence of counters to the new custom counter. The custom counters must be in consecutive order, beginning with the number 0. 4 In the Name line, enter the name of the new counter. 5 In the Description line, enter the description of the counter that you want the help message to contain. 6 In the Query line, enter the text of the SQL query (on one line of the vmon.cfg file) that returns exactly one row from the database. This row must contain one column, a numerical value. Custom queries should not exceed 512 characters. 7 In the IsRate line, enter 0 if you want the database to report the counter as an absolute number. If you want the database to report the change in the counter per unit time, enter 1. Custom queries cannot return negative values.
249
250
26
SQL Server Monitoring
The SQL Server monitor shows the standard Windows resources on the SQL server machine.
Note: To monitor an SQL server through a firewall, use TCP, port 139.
Setting up the Monitoring Environment on page 251 Adding a Machine to Monitor on page 252 Configuring the SQL Server Monitor on page 253 SQL Server Performance Counters on page 256
If you are using the SiteScope monitor engine, ensure that SiteScope has been installed on a server. You can install SiteScope on the same machine as the Controller, or on a dedicated server. To obtain data for this graph, you enable the SQL Server online monitor (from the Controller) and select the measurements you want to display, before running the scenario.
251
In the Monitored Machine Information section, enter the server name or IP address of the machine you want to monitor. Select the platform on which the machine runs. In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information. Note: If you are adding a native LoadRunner monitor, the SiteScope Server Information section does not appear.
Click OK to close the Add Machine dialog box. 5 Click Add in the Resource Measurements on: <machine> section of the SQL Server dialog box 6 Continue with Configuring the SQL Server Monitor below.
252
Note: To change the default counters for the SQL Server monitor, see Changing a Monitors Default Counters on page 395.
To delete a measurement from the default list, select the measurement and click Delete. To select additional measurements, click Add.
2 The MS SQL Server dialog box opens displaying the SQL Server resources.
For each measurement select an object, counter, and instance, as described in Understanding the Add MS SQL Server Measurements Dialog Box on page 254, and then click Add.
253
For a description of the available measurements, see SQL Server Performance Counters on page 256. 3 When you have finished selecting the measurements to monitor, click Close. The counters that you selected appear in the Resource Measurements on: <machine> section of the SQL Server dialog box. 4 Click OK in the SQL Server dialog box to activate the monitor.
Note: Certain measurements or counters are especially useful for determining server performance and isolating the cause of a bottleneck during an initial stress test on the SQL Server. For more information about these counters, see Useful Counters for Stress Testing on page 396.
Object. Select the object being monitored on the specified machine. Counters/Measurements. Select a resource counter/measurement to monitor. Select multiple counters using the CTRL key. For an explanation of each counter/measurement, click Explain. Instances. If multiple instances of the selected counter/measurement are running, select one or more instances to monitor for the selected counter/measurement. Explain/Collapse. Displays/Collapses the Measurement Description box that describes the selected counter/measurement.
254
If you are monitoring a machine on a UNIX platform, the Configuring UNIX Remote Machine dialog box opens. If you are monitoring a machine on a Windows platform, the Configuring NT Remote Machine dialog box opens.
Enter the remote machines configuration information, as described in Configuring the Remote Machine for SiteScope Monitors on page 25, and click OK. 2 The Configuring SQL Server Monitor dialog box opens. Verify the Server and Update every properties, and click OK. 3 The Add MS SQL Server Measurements dialog box opens displaying the available measurements and server properties.
For each measurement select an object, measurement, and instance, as described in Understanding the Add MS SQL Server Measurements Dialog Box on page 254, and then click Add. For a description of the available measurements, see SQL Server Performance Counters on page 256.
255
4 When you have finished selecting the measurements to monitor, click Close. The measurements that you selected appear in the Resource Measurements on: <machine> section of the SQL Server dialog box. 5 Click OK in the SQL Server dialog box to activate the monitor.
% Processor Time
256
Measurement I/O - Batch Writes/sec I/O - Lazy Writes/sec I/O - Outstanding Reads I/O - Outstanding Writes I/O - Page Reads/sec I/O Transactions/sec User Connections
Description The number of 2K pages written to disk per second, using Batch I/O. The checkpoint thread is the primary user of Batch I/O. The number of 2K pages flushed to disk per second by the Lazy Writer. The number of physical reads pending. The number of physical writes pending. The number of physical page reads per second. The number of Transact-SQL command batches executed per second. The number of open user connections.
257
258
Part X
Streaming Media Monitoring
260
27
Introduction to Streaming Media Monitoring
To isolate server and client performance bottlenecks during a scenario run, you monitor the Windows Media Server and RealPlayer audio/video servers, as well as the RealPlayer and Media Player clients.
Note: For instructions on recording a script containing streaming media functions, see the HP Virtual User Generator.
The streaming media monitors provide you with performance information for the Windows Media Server and RealPlayer audio/video servers, as well as the RealPlayer and Media Player clients. To obtain data for the Windows Media Server and RealPlayer Server, you need to activate the streaming media monitor before executing the scenario, and indicate which statistics and measurements you want to monitor. The RealPlayer Client and Media Player Client do not require pre-session or scenario activation or configuration.
261
262
28
RealPlayer Client Monitoring
The Real Client monitor shows statistics on the RealPlayer client machine as a function of the elapsed scenario time. The x-axis represents the time that has elapsed since the start of the scenario run. The y-axis represents the resource usage. This chapter includes:
Configuring the Real Client Monitor on page 264 RealPlayer Client Performance Counters on page 264
263
264
Measurement Number of Buffering Live Pause Events Buffering Live Pause Time
Description The average number of buffering events resulting from live pause The average time spent on buffering events resulting from live pause
265
266
29
Media Player Client Monitoring
The Media Player Client monitor graph shows statistics on the Windows Media Player client machine as a function of the elapsed scenario time. The x-axis represents the time that has elapsed since the start of the scenario run. The y-axis represents the resource usage. This chapter includes:
Configuring the Windows Media Player Client Monitor on page 267 Media Player Client Performance Counters on page 268
267
Stream Quality (Packetlevel) Stream Quality (Sampling-level) Total number of recovered packets Total number of lost packets
268
Part XI
ERP/CRM Server Resource Monitoring
270
30
Introduction to ERP/CRM Server Resource Monitoring
You use LoadRunners ERP/CRM server resource monitors to monitor ERP/CRM servers during a scenario run and isolate server performance bottlenecks. This chapter includes:
About ERP/CRM Server Resource Monitoring on page 272 Choosing Between Different SAP Monitors on page 272
271
Support Matrix
SAP Application
R/3 3.1-4.6D BW 2.x
Server Release SAP R/3 Kernel 3.1-4.6D (based on the SAP Application Server) SAP R/3 Kernel WAS 6.20 (based on the SAP Web Application Server)
LoadRunner Monitor
SAP CCMS
Monitor
R/3 4.7
SAPGUI 6.20
Enterprise
BW 3.1 CRM 4.0 APO 3.x
Monitor
272
Server Release No SAP System integration SAP 3.1-4.6 kernel based SAP System integration
LoadRunner Monitor
SAP Portal
Required SAPGUI
Monitor
SAP CCMS
Monitor
SAP Portal
Monitor
LoadRunner Controller machine: SAPGUI 3.16.20 (see note below) LoadRunner Controller machine: SAPGUI 6.20 (see note below) LoadRunner Controller machine: SAPGUI 3.16.20 (see note below) LoadRunner Controller machine: SAPGUI 6.20 (see note below)
Monitor
SAP Portal
Monitor SAPGUI for HTML SAP 3.1-4.6 kernel based SAP System integration
SAP CCMS
Monitor
Monitor
Note: A connection from the Controller to the SAP System using SAPGUI is only required for monitoring purposes. SAPGUI is not required on the load generator machines.
273
274
31
SAP Portal Server Resource Monitoring
The SAP Portal monitor displays statistics about the resource usage of an SAP Enterprise Portal environment during the scenario run. To obtain data on the SAP R/3 system server, you need to configure the SAP online monitor (from the Controller) before executing the scenario, and indicate which statistics and measurements you want to monitor. You select these counters using the SAP Portal dialog box. This chapter includes:
Setting up the Monitoring Environment on page 276 Adding a Machine to Monitor on page 276 Configuring the SAP Portal Monitor on page 277 SAP Portal Performance Counters on page 280
275
Ensure that SiteScope has been installed on a server. You can install it on the same machine as the Controller, or on a dedicated server.
In the Monitored Machine Information section, enter the server name or IP address of the machine you want to monitor, and select the platform on which the machine runs. In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information.
Click OK. The SAP Portal dialog box is redisplayed. 3 In the Resource Measurements section, click Add. 4 Continue with Configuring the SAP Portal Monitor below.
276
277
2 Click OK. The SAP Portal Configuration dialog box opens, displaying the available measurements.
3 Browse the Measured Components tree, and select performance counters, as described in Understanding the SAP Portal Configuration Dialog Box on page 279. For a description of the available measurements, see SAP Portal Performance Counters on page 280. 4 Click OK. The measurements that you selected appear in the Resource Measurements on: <machine> section of the SAP Portal dialog box.
278
Note: The minimum recommended SiteScope monitor refresh rate is 30 seconds. If you choose a lower refresh rate, the Controller may not get all the data in time.
Application URL. Enter the URL of the administrator server for the application. Username. Enter the user name for the server administrator page. Password. Enter the password for the server administrator page. HTTP Proxy. Enter a proxy server to use, including the port (optional). Proxy Server User Name. If the proxy server requires authorization, enter the user name. Proxy Server Password. If the proxy server requires authorization, enter the password. Update every. Enter the amount of time lapse between the SiteScope check of the monitor.
Host. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box.
279
Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
280
32
SAP CCMS Resource Monitoring
The SAP CCMS (Computer Center Management System) monitor displays statistics about the resource usage of all servers, components, and resources in any SAP R/3 landscape during the scenario run. You can also use the SAP CCMS monitor for SAP Portal and SAP GUI environments, but the amount of measurements provided by the SAP CCMS monitor is much greater. To obtain data on the SAP R/3 landscape resources, you need to configure the SAP CCMS online monitor (from the Controller) before executing the scenario, and select the statistics and measurements you want to monitor. You select these counters using the SAP CCMS dialog box. This chapter includes:
Setting up the Monitoring Environment on page 282 Adding a Machine to Monitor on page 283 Configuring the SAP CCMS Monitor on page 284
281
Ensure that SiteScope has been installed on a server. You can install it on the same machine as the Controller, or on a dedicated server. Ensure that the SAP Java Connector (SAP JCo 2.0.6 and above) component is installed on the same server where SiteScope is running (or at least is accessible on a shared or remote location). To install the SAP Java Connector, perform the following:
Download the SAP Java Connector from the SAP Software Distribution Center at http://www.service.sap.com/connectors. Click SAP Java Connector and Tools and Services. You will need a valid Service Marketplace login (username and password) to access this site. Follow the installation instructions that come with the SAP JCo download for your appropriate platform. On Windows, add the JCo installation location in the System Environment PATH variable. This change usually requires you to reboot Windows for the system PATH to be updated. Once completed, make the SAP JCo library file available to SiteScope by copying sapjco.jar (which comes with the JCo install) to /SiteScope/java/lib/ext before starting SiteScope.
Consult your SAP documentation to determine if your R/3 landscape components may need additional software installed to run or work with CCMS.
Note: The BC-XAL 1.0 interface is supported on SAP R/3 systems 4.5B and above only.
282
In the Monitored Machine Information section, enter the server name or IP address of the machine you want to monitor, and select the platform on which the machine runs. In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information.
Click OK. The SAP CCMS dialog box is redisplayed. 4 In the Resource Measurements section, click Add. 5 Continue with Configuring the SAP CCMS Monitor on page 284.
283
Enter the SAP CCMS configuration values, as described in Understanding the Configuring SAP CCMS Monitor Dialog Box on page 286.
284
2 Click OK. The SAP CCMS Monitor Configuration dialog box opens, displaying the available measurements.
Note: Due to the large amount of metrics that are retrieved, it may take several minutes to display the performance counters tree. However, once the tree has been successfully retrieved, it will be cached to a file, so that the next time you retrieve metrics from the same server and username, the wait time will be greatly reduced.
285
3 Browse the Measured Components tree, and select performance counters, as described in Understanding the SAP CCMS Monitor Configuration Dialog Box on page 287. For more information on the available measurements, refer to the SAP CCMS documentation. 4 Click OK. The measurements that you selected appear in the Resource Measurements on: <machine> section of the SAP CCMS dialog box. 5 Click OK in the SAP CCMS Monitor Configuration dialog box, and in the SAP CCMS dialog box, to activate the monitor.
Note: The minimum recommended SiteScope monitor refresh rate is 30 seconds. If you choose a lower refresh rate, the Controller may not get all the data in time.
Application Server. Enter the address of the SAP server you want to monitor. SAP Client. Enter the Client to use for connecting to SAP. A default client of 800 is typically used. System Number. Enter the System number for the SAP server. A default system number of 00 is typically used. Authorization User Name. Enter the Username required to connect to the SAP server. Authorization Password. Enter the Password required to connect to the SAP server. SAP Router String. If your connection is being made through a router, enter a router address string. You can find the router address using the SAP Logon tool from the SAP Client software. Open the Logon console, select the server you want to monitor and then select Properties to view the router address.
286
Update every. Enter how frequently (in seconds) the monitor should check the SAP server. SAP CCMS metrics are generally updated once every five minutes.
Host. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
287
288
33
SAPGUI Server Resource Monitoring
The SAPGUI monitor displays statistics about the resource usage of an SAP R/3 system during the scenario run. You can use the SAPGUI monitor to view:
the number of configured instances for each SAP system data for all application instances (not just the one you logged on to) transactions used and the users that call them number of users working on the different instances performance history for recent periods of all instances response time distribution resource consumption for any application server application server workload for the current day or for a recent period
To obtain data on the SAP R/3 system server, you need to configure the SAPGUI online monitor (from the Controller) before executing the scenario, and indicate which statistics and measurements you want to monitor. You select these counters using the Add SAPGUI Monitor Measurements dialog box.
Note: The SAPGUI monitor supports SAP server versions 3.1 to 4.6, regardless of the SAP R/3 servers operating system and the platform on which it is installed.
289
Setting Up the Monitoring Environment on page 290 Adding a Machine to Monitor on page 291 Configuring the SAPGUI Monitor on page 292 SAPGUI Performance Counters on page 296
Install the SAPGUI for Windows 6.20 client on the Controller machine. Install the latest patch for the SAPGUI for Windows 6.20 client. The lowest supported level is patch 36. (SAPGUI patches can be downloaded from https://websmp104.sap-ag.de/patches. You will need a valid Service Marketplace username and password to access this site.) From the SAPGUI client application, press F6 to determine whether you can access the st03 transaction and query for last minute load information. If this functionality is not already enabled, enable it from the SAP R/3 client on the Controller machine, using the username and password defined in the Controller.
290
Limitation: Once the SAPGUI monitor is activated on the Controller machine, you cannot record a SAPGUI protocol script on that machine.
To add a machine to the Controller: 1 Click the SAPGUI graph in the graph tree, and drag it into the right pane of the Run view. 2 Right-click the graph and select Add Measurements, or click anywhere on the graph and choose Monitors > Add Measurements. The SAPGUI dialog box opens. 3 In the Monitored Server Machines section, click Add. The Add Machine dialog box opens. 4 Enter the logical name of the server you want to monitor, select the platform on which the machine runs, and click OK. To determine the logical name, see the status bar of the SAP user interface when you are connected to a server, as displayed in the figure above. The SAPGUI dialog box is redisplayed. 5 In the Resource Measurements section of the SAPGUI dialog box, click Add. 6 Continue with Configuring the SAPGUI Monitor below.
291
Login Name. Login name used to access the SAPGUI server. Password. Password for the login name. Server Name. Name of the SAPGUI server. Client. Number used in the Client field of the SAP logon details
292
The server description, as displayed in the SAP Logon application (for example BW 3.0 in the SAP Logon dialog box displayed below).
A string, in the format: server_network_name[:system_number] where server_network_name is the name or IP address of the application server as it is displayed in the Server Name field of the LoadRunner SAPGUI Logon dialog box (for example: pipeline.HP.com), and system_number (preceded by ":") is the system number as it is displayed in the Properties dialog box. If the system number is omitted, "00" is used by default.
293
If an SAP router string is also specified in the Properties dialog box, the server_network_name should be the concatenation of the router string and the application server (for example, /H/199.35.107.9/H/204.79.199.5/H/cpce801 in the Properties dialog box displayed below).
2 To change the default language, click Advanced in the LoadRunner SAPGUI Logon dialog box, and enter a 2-letter string in the Language field. 3 Click OK. The Add SAPGUI Measurements dialog box opens.
294
4 For each measurement, select an object, measurement, and instance, and then click Add, as described in Understanding the Add SAPGUI Measurements Dialog Box on page 295. For a description of the available measurements, see SAPGUI Performance Counters on page 296. 5 Click Add to place the selected measurement on the resource list. Add all the desired resources to the list, and click Close. The measurements that you selected appear in the Resource Measurements on: <machine> section of the SAPGUI dialog box. 6 Click OK in the SAPGUI dialog box to activate the monitor.
Object. Select the object being monitored on the specified machine. Measurements. Select resource measurements to monitor. You can select multiple measurements using the CTRL key. Instances. If multiple instances of the selected measurement are running, select one or more instances to monitor for the selected measurement. Add. Click to add the selected object, measurement, and instance to the monitored measurement list. Explain. Displays a description of the selected measurement.
295
296
Measurement Roll ins Roll outs Roll in time Roll out time Roll wait time
Description The number of rolled-in user contexts. The number of rolled-out user contexts. The processing time for roll ins. The processing time for roll outs. The queue time in the roll area. When synchronous RFCs are called, the work process executes a roll out and may have to wait for the end of the RFC in the roll area, even if the dialog step is not yet completed. In the roll area, RFC server programs can also wait for other RFCs sent to them. The average response time for all commands sent to the database system (in milliseconds). The time depends on the CPU capacity of the database server, the network, the buffering, and on the input/output capabilities of the database server. Access times for buffered tables are many magnitudes faster and are not considered in the measurement.
297
298
34
Siebel Web Server Resource Monitoring
The Siebel Web Server monitor displays statistics about the resource usage of a Siebel Web Server during the scenario run. To obtain data on the Siebel Web Server, you need to configure the Siebel Web Server online monitor (from the Controller) before executing the scenario, and indicate which statistics and measurements you want to monitor. You select these counters using the Siebel Web Server dialog box. This chapter includes:
Setting up the Monitoring Environment on page 299 Adding a Machine to Monitor on page 300 Configuring the Siebel Web Server Monitor on page 301 Siebel Web Server Performance Counters on page 305
Ensure that the Siebel Web server plug-in is installed and configured to enable the display of the statistics you want to monitor. This may require that stats page sections be enabled by editing the eapps.cfg file for the Siebel server. For more information, refer to the Siebel documentation. Ensure that SiteScope has been installed on a server. You can install SiteScope on the same machine as the Controller, or on a dedicated server.
299
In the Monitored Machine Information section, enter the server name or IP address of the machine you want to monitor, and select the platform on which the machine runs. In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information.
Click OK. The Siebel Web Server dialog box is redisplayed. 4 In the Resource Measurements section of the Siebel Web Server dialog box, click Add. 5 Continue with Configuring the Siebel Web Server Monitor on page 301.
300
Enter the Siebel Web Server information, as described in Understanding the Configuring Siebel Web Server Monitor Dialog Box on page 303.
301
2 Click OK. The Siebel Web Server Configuration dialog box opens, displaying the available measurements.
3 Browse the Measured Components tree, and select performance counters, as described in Understanding the Siebel Web Server Configuration Dialog Box on page 304. For a description of the available measurements, see Siebel Web Server Performance Counters on page 305. 4 Click OK. The measurements that you selected appear in the Resource Measurements on: <machine> section of the Siebel Web Server dialog box. 5 Click OK in the Siebel Web Server dialog box, to activate the monitor.
302
Note: The minimum recommended SiteScope monitor refresh rate is 30 seconds. If you choose a lower refresh rate, the Controller may not get all the data in time.
Service. Enter the name of a valid Siebel virtual directory (for example, callcenter or sales), one whose URL is an entry point defined in the Siebel SWSE configuration file (eapps.cfg). Application URL. Displays the default URL of the web plug-in server stats page for the application you want to monitor. For example, http://siebelsrv/<service>/_stats.swe. If the Siebel web server is configured to support verbose mode, and you want to include information on "Locks" and "Current Operations Processing," you can add verbose=high. For example: http://siebelsrv/<service>/_stats.swe?verbose=high.
Username. Enter the user name to access the web server stats page. Password. Enter the password to accessing the web server stats page. HTTP Proxy. If you are using a proxy to access the Siebel server, enter the proxy server to use including the port (for example, proxy.sitescope.com:8080). Proxy Server User Name. If the proxy server requires authorization, enter the proxy user name. Proxy Server Password. If the proxy server requires authorization, enter the proxy password. Update every. Enter how frequently the monitor should check the Database server.
303
Host. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
304
System Statistics
Measurement Anonymous sessions requested from the pool Open Session Time Anon Session Available Close Session Time Request Time Anon Session Removed Response Time Anonymous sessions returns to the pool Description The number of anonymous sessions requested from the pool. The time taken for users to log on to the system. The number of anonymous sessions available in the pool. The time taken for users to log off the system. The time taken to process the user request. The number of anonymous sessions removed from the pool. The time taken to respond to a user request. The number of anonymous sessions returned to the pool.
Application Statistics
Measurement Session Lifespan Description The duration during which a client session ran in the Siebel system.
305
306
35
Siebel Server Manager Resource Monitoring
The Siebel Server Manager monitor displays statistics about the resource usage of a Siebel Server Manager during the scenario run. To monitor Siebel Server Manager performance, you first install the Siebel Server Manager client on the SiteScope machine. You must then enable the Siebel Server Manager online monitor (from the Controller) before executing the scenario, and indicate which statistics and measurements you want to monitor. You select these counters using the Siebel Server Manager dialog box. This chapter includes:
Setting up the Monitoring Environment on page 308 Adding a Machine to Monitor on page 310 Configuring the Siebel Server Manager Monitor on page 311 Siebel Server Manager Performance Counters on page 313
307
Ensure that SiteScope has been installed on a server. You can install it on the Controller, or on a dedicated server. If SiteScope is installed on a machine other than the Controller, verify that the SiteScope machine is accessible from the Controller machine. On the machine where SiteScope is installed, configure SiteScope to monitor the required Siebel Server Manager machine. For more information, see Configuring the Siebel Server Manager Client on the SiteScope Machine on page 308. Verify that SiteScope is collecting the required data from the servers it is monitoring. From the SiteScope Panel, select the monitor group polling the Siebel Server Manager machine, and check that the monitor displays a list of server measurements in the Status column.
308
Note: When you assign a name to a monitor, include the server name in the monitor name. This avoids any confusion as to which host the monitor belongs. For example, SiebelManager on sieb07. Do not use "\" in the Title field.
Note: On a Windows 2000 Advanced Server platform this command must be changed to: CONNECT_COMMAND:$PATH$\srvrmgr.exe /g $GATEWAY$ /e $ENTERPRISE$ /s $SERVERS$ /u $USERNAME$ /p $PASSWORD$
309
310
311
2 Browse the Measured Components tree, select the required performance counters, as described in Understanding the Siebel Server Manager Configuration Dialog Box on page 312. For a description of the available measurements, see Siebel Server Manager Performance Counters on page 313. 3 Click OK. The measurements that you selected appear in the Resource Measurements on: <machine> section of the Siebel Server Manager dialog box. 4 Click OK in the Siebel Server Manager dialog box to activate the monitor.
Note: The minimum recommended SiteScope monitor refresh rate is 30 seconds. If you choose a lower refresh rate, the Controller may not get all the data in time.
Limitations
The SiteScope monitor has the following limitations when it retrieves information from a Siebel Server Manager:
The component counters (for example, Average SQL Time for <component>) are updated with the aggregated Siebel data only at the end of a user session. The SiteScope monitor consumes very high CPU resources (approximately 40%).
312
Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Select performance counters. Component/Counter Description. Displays a description of the selected component or counter.
313
Measurement Num of Exhausted Retries Number of SQL Executes Number of SQL Fetches Number of SQL Parses Number of Sleeps Object Manager Errors Reply Messages Request Messages SQL Execute Time SQL Fetch Time SQL Parse Time Sleep Time Tests Attempted Tests Failed Tests Successful Total Reply Size Total Request Size Total Response Time Total Tasks Total Think Time
Description The total number of retries that expired. The total number of SQL executes. The total number of SQL fetches. The total number of SQL parses. The number of sleeps. The total number of object manager errors. The total number of reply messages. The total number of request messages. The total SQL execute time. The total SQL fetch time. The total SQL parse time. The total sleep time. The number of tests attempted. The number of tests that failed. The number of tests that were successful. The total reply size, measured in bytes. The total request size, measured in bytes. The total response time. The total number of tasks. The total think time.
314
36
PeopleSoft (Tuxedo) Resource Monitoring
The PeopleSoft (Tuxedo) monitor displays statistics about the resource usage of a PeopleSoft (Tuxedo) server during the scenario run. To obtain data for this graph, you need to configure the PeopleSoft (Tuxedo) online monitor (from the Controller) and select the measurements you want to display, before running the scenario. You select these counters using the PeopleSoft (Tuxedo) dialog box. This chapter includes:
Setting up the Monitoring Environment on page 315 Adding a Machine to Monitor on page 316 Configuring the PeopleSoft (Tuxedo) Monitor on page 317 PeopleSoft (Tuxedo) Performance Counters on page 320
Ensure that a Tuxedo workstation client (not a native client), version 6.3 or later, is installed on the Controller machine. Use a Tuxedo 6.x client if a Tuxedo 6.x server is used, and Tuxedo 7.1 or later client if a Tuxedo 7.1 or later server is used. If you use a Tuxedo 6.5 or earlier server, you can still use a Tuxedo 7.1 or later client in order to monitor it, provided that you set the WSINTOPPRE71 environment variable to yes.
315
Note: A Tuxedo workstation client communicates with the application server over the network, and is not required to run the Tuxedo application server on the same machine. A native client can only communicate with the Tuxedo application server if it is part of the relevant Tuxedo domain.
Define the Tuxedo environment variables on the Controller machineset the TUXDIR variable to the Tuxedo installation directory (for example, V:\environ\32\Tuxedo 8.0), and add the Tuxedo bin directory to the PATH variable. Ensure that the workstation listener (WSL) process is running. This enables the application server to accept requests from workstation clients. The address and port number used to connect to the application server must match those dedicated to the WSL process.
Note: For information on configuring the WSL, refer to the BEA Tuxedo Web site (http://edocs.beasys.com/tuxedo/tux81/rf5/rf5101.htm#1534543).
4 Enter the server name or IP address of the Tuxedo machine you want to monitor.
Note: If you are using multiple instances of the PeopleSoft (Tuxedo) monitor on the same machine, then enter the port number of PeopleSoft (Tuxedo) monitor in order to distinguish one instance from another. The entry should have the following format: <machine name>:<port number>
Select the platform on which the machine runs, and click OK. 5 In the Resource Measurements section of the PeopleSoft (Tuxedo) dialog box, click Add. 6 Continue with Configuring the PeopleSoft (Tuxedo) Monitor below.
317
Login Name. Enter the login name used to access the PeopleSoft (Tuxedo) server. The default is PS. Password. Enter the password for the login name. The default is PS. Server Name. Enter the name of the PeopleSoft (Tuxedo) server in the format of //<machine name>:<port number>. The default port is 7000. Alternatively, you can specify the IP address or the hexadecimal format used by old versions of Tuxedo. Note: You cannot use quotation marks.
Note: If you are using PeopleSoft 7.x, you can determine the logon information from the Logon section of the tpinit.ini file in the recorded scripts directory.
2 To authenticate the PeopleSoft (Tuxedo) monitor, click Advanced, and enter the authentication data as a hexadecimal string (beginning with 0x) in the Data field. The authentication data value can be obtained from the tpinit.ini file of an existing Tuxedo script.
Note: If you are using Tuxedo 6.5 or below, the monitor can only connect to one application server during a Controller scenario. Once it connects to an application server, that server is the only one used by the monitor until the Controller is closed. This applies even when all of the counters are deleted from the monitor.
318
3 Click OK. The Add PeopleSoft (Tuxedo) Measurements dialog box opens.
4 For each measurement, select an object, measurement, and instance, and then click Add, as described in Understanding the Add PeopleSoft (Tuxedo) Measurements Dialog Box on page 320. For a description of the available measurements, see PeopleSoft (Tuxedo) Performance Counters on page 320. 5 When you have finished adding measurements, click Close. The measurements that you selected appear in the Resource Measurements on: <machine> section of the PeopleSoft (Tuxedo) dialog box. 6 Click OK in the PeopleSoft (Tuxedo) dialog box to activate the monitor.
319
Object. Select the object being monitored on the specified machine. Measurements. Select a resource measurement to monitor. Select multiple measurements using the CTRL key. For an explanation of each measurement, click Explain. Instances. If multiple instances of the selected measurement are running, select one or more instances to monitor for the selected measurement. Explain. Displays a description of the selected measurement.
320
Monitor Machine
Measurements % Busy Clients - The percent of active clients currently logged in to the Tuxedo application server that are waiting for a response from the application server. Active Clients - The total number of active clients currently logged in to the Tuxedo application server. Busy Clients - The total number of active clients currently logged in to the Tuxedo application server that are waiting for a response from the application server. Current Accessers - The number of clients and servers currently accessing the application either directly on this machine or through a workstation handler on this machine. Current Transactions - The number of in use transaction table entries on this machine. Idle Clients - The total number of active clients currently logged in to the Tuxedo application server that are not waiting for a response from the application server. Workload Completed/second - The total workload on all the servers for the machine that was completed, per unit time. Workload Initiated/second - The total workload on all the servers for the machine that was initiated, per unit time.
321
Monitor Queue
Measurements % Busy Servers - The percent of active servers currently handling Tuxedo requests. Active Servers - The total number of active servers either handling or waiting to handle Tuxedo requests. Busy Servers - The total number of active servers currently busy handling Tuxedo requests. Idle Servers - The total number of active servers currently waiting to handle Tuxedo requests. Number Queued - The total number of messages which have been placed on the queue.
Server
Requests/second - The number of server requests handled per second. Workload/second -The workload is a weighted measure of the server requests. Some requests could have a different weight than others. By default, the workload is always 50 times the number of requests.
Bytes Received/sec - The total number of bytes received by the workstation handler, per second. Bytes Sent/sec - The total number of bytes sent back to the clients by the workstation handler, per second. Messages Received/sec - The number of messages received by the workstation handler, per second. Messages Sent/sec - The number of messages sent back to the clients by the workstation handler, per second. Number of Queue Blocks/sec - The number of times the queue for the workstation handler blocked, per second. This gives an idea of how often the workstation handler was overloaded.
322
Part XII
Application Component Monitoring
324
37
Introduction to Application Component Monitoring
Using LoadRunners Application Component monitors, you can monitor the Microsoft COM+ server during a scenario run in order to isolate server performance bottlenecks. Application Component monitors provide you with information about the resource usage of the Microsoft COM+ server during scenario execution. In order to obtain this data, you need to activate the online monitor for the server and specify which resources you want to measure before executing the scenario.
325
326
38
Microsoft COM+ Server Monitoring
The Microsoft COM+ monitor is an Application Component monitor that provides performance information for the Microsoft COM+ server. Before monitoring a Microsoft COM+ server, you install the Microsoft COM+ Server Monitor Probe on the server machine. You can then specify which measurements and resources you want the Microsoft COM+ monitor to measure. You select these counters using the Controllers monitor configuration dialog box. This chapter includes:
Setting up the Monitoring Environment on page 327 Adding and Configuring a Machine to Monitor on page 328 Configuring the Microsoft COM+ Monitor Over a Firewall on page 331 Microsoft COM+ Performance Counters on page 331
327
328
To configure the MS-COM+ monitor: 1 In the Resource Measurements section of the Microsoft COM+ dialog box, click Add to select the measurements that you want to monitor. The Microsoft COM+ Monitors Configuration dialog box opens displaying the available measurements.
2 Browse the Measured Components tree, and check the required performance counters, as described in Understanding the COM+ Monitor Configuration Dialog Box on page 330. For a description of the available measurements, see Microsoft COM+ Performance Counters on page 331.
329
3 Click OK. The measurements that you selected appear in the Resource Measurements on: <machine> section of the Microsoft COM+ dialog box. 4 Click OK in the Microsoft COM+ dialog box to activate the Microsoft COM+ monitor.
Note: The data sampling rate for the COM+ monitor is fixed and cannot be modified using the Controller Tools > Options> Monitors dialog.
Hostname. Displays the name of the monitored machine. Measured Components. Displays the available components. Browse the tree and select the component you want to monitor. A description of the highlighted component appears in the Component/Counter Description box. Performance Counters. Check the required performance counters. A description of the selected counter appears in the Component/Counter Description box. Component/Counter Description. Displays a description of the selected component or counter.
330
Make sure that the MI Listener is installed on any machine (including the Controller machine) outside of the firewall. Refer to the HP LoadRunner Installation Guide for installation instructions. Configure the firewall agent on the server machine. For more information, refer to the chapter called Working with Firewalls in LoadRunner, in the HP LoadRunner Controller User Guide. Specify the correct connection string on the client machine, as described in step 3 of Adding and Configuring a Machine to Monitor on page 328.
Authentication Metrics
Measurement Authenticate Description Frequency of successful method call level authentication. When you set an authentication level for an application, you determine what degree of authentication is performed when clients call into the application. Frequency of failed method call level authentication.
Authenticate Failed
Application Events
Measurement Activation Shutdown Description Frequency of application activation or startup. Frequency of application shutdown or termination.
331
Thread Events
Measurement Thread Start Thread Terminate Work Enque Description Rate at which single-threaded apartment (STA) thread for application have been started. Rate at which single-threaded apartment (STA) thread for application have been terminated. Event sent if a work is queued in single thread apartment object (STA). Note: These events are not signaled/sent in Windows Server 2003 and later. Event sent if a work is rejected from single thread apartment object (STA). Note: These events are not signaled/sent in Windows Server 2003 and later.
Work Reject
Transaction Events
Measurement Transaction Duration Transaction Start Transaction Prepared Transaction Aborted Transaction Commit Description Duration of COM+ transactions for selected application. Rate at which transactions have started. Rate at which transactions have completed the prepare phase of the two-phase protocol. Rate at which transactions have been aborted. Rate at which transactions have completed the commit protocol.
332
Object Events
Measurement Object Life Time Object Create Object Destroy Object Activate Object Deactivation Disable Commit Description Duration of object existence (from instantiation to destruction). Rate at which new instances of this object are created. Rate at which instances of the object are destroyed. Rate of retrieving instances of a new JIT-activated object. Rate of freeing JIT-activated object via SetComplete or SetAbort. Rate of client calls to DisableCommit on a context. DisableCommit declares that the objects transactional updates are inconsistent and cant be committed in their present state. Rate of client calls to EnableCommit on a context. EnableCommit declares that the current objects work is not necessarily finished, but that its transactional updates are consistent and could be committed in their present form. Rate of client calls to SetComplete on a context. SetComplete declares that the transaction in which the object is executing can be committed, and that the object should be deactivated on returning from the currently executing method call. Rate of client calls to SetAbort on a context. SetAbort declares that the transaction in which the object is executing must be aborted, and that the object should be deactivated on returning from the currently executing method call.
Enable Commit
Set Complete
Set Abort
333
Method Events
Measurement Method Duration Method Frequency Method Failed Method Exceptions Description Average duration of method. Frequency of method invocation. Frequency of failed methods (i.e. methods that return error HRESULT codes). Frequency of exceptions thrown by selected method.
334
Part XIII
Application Deployment Monitoring
336
39
Introduction to Application Deployment Solution Monitoring
Using LoadRunners Application Deployment Solution monitor, you can isolate server performance bottlenecks by monitoring the Citrix MetaFrame XP server during a scenario run. LoadRunners Citrix MetaFrame XP monitor provides you with information about the application deployment usage of the Citrix MetaFrame XP server during a scenario execution. The Citrix Monitor allows you to monitor the server performance statistics from Citrix MetaFrame Servers. You can monitor multiple parameters (counters) with a single monitor instance. This allows you to watch server loading for performance, availability, and capacity planning. To obtain performance data, you need to activate the online monitor for the server and specify which resources you want to measure before executing the scenario.
337
338
40
Citrix MetaFrame XP Monitoring
The Citrix MetaFrame XP monitor displays statistics about the resource usage on the Citrix MetaFrame XP server machine during the scenario run. This chapter includes:
Setting up the Monitoring Environment on page 339 Adding a Machine to Monitor on page 341 Configuring the Citrix MetaFrame XP Monitor on page 342 Citrix MetaFrame Performance Counters on page 346
If you are using the SiteScope monitor engine, ensure that SiteScope has been installed on a server. You can install SiteScope on the same machine as the Controller, or on a dedicated server. To obtain data for this graph, you need to activate the Citrix MetaFrame XP monitor on the application server machine before executing the scenario, enable the counters you want to monitor on the Citrix server, and specify which measurements and resources you want the Citrix monitor to measure.
Note: The port you use to monitor a Citrix MetaFrame server through a firewall depends on the configuration of your server.
339
Before setting up the Citrix MetaFrame Server monitor: 1 Make sure that Citrix MetaFrame Server has been installed and is running on a computer. If the computer running Citrix MetaFrame Server is running Windows 2000, make sure that the Remote Registry service is running on it. 2 Make sure that the computer on which you are running LoadRunner has administrator privileges on the machine running Citrix. 3 From the Controller machine, map a network drive to the Citrix server machine. This ensures that the required authentication is provided to the Controller to access the resource counters. 4 Launch PerfMon from the Controller machine to enable the counters on the Citrix server. This allows you to monitor the same counters for the ICA Session object on the Citrix monitor. 5 You can configure the Citrix monitor to view ICA Session object counters only if at least one session is being run on the Citrix server. If no real user has opened a connection with the Citrix server, you need to first initialize or run a Citrix Vuser against the server, and only then configure the Citrix Monitor and add the ICA Session counters. If you configure the Citrix monitor without first initializing or running a Citrix Vuser (or connecting to the Citrix server as a real user), you will not be able to view the ICA Session object.
Note: Measurements that monitor instances are valid for the currently running Citrix session only. If you run this scenario again, you will need to reconfigure the measurements that are instance-oriented. To monitor the different instances, ensure that the server login and logout procedures are recorded in the Vuser_init and Vuser_end sections respectively, and not in the Action section of the script. For more information, see the HP Virtual User Generator User Guide.
340
In the Monitored Machine Information section, enter the server name or IP address of the machine you want to monitor. Select the platform on which the machine runs. In the SiteScope Server Information section, enter the SiteScope machine name, and port (default: 8888), and specify whether you are using a Secure HTTP connection. If you are using a SiteScope account, fill in the relevant account information. Note: If you are adding a native LoadRunner monitor, the SiteScope Server Information section does not appear.
Click OK to close the Add Machine dialog box. 5 Click Add in the Resource Measurements on: <machine> section of the Citrix MetaFrame XP dialog box 6 Continue with Configuring the Citrix MetaFrame XP Monitor below.
341
Configuring the Native LoadRunner Citrix MetaFrame XP Monitor Configuring the SiteScope Citrix MetaFrame XP Monitor
Note: To change the default counters for the Citrix monitor, see Changing a Monitors Default Counters on page 395.
To delete a measurement from the default list, select the measurement and click Delete. To select additional measurements, click Add.
342
2 When you click Add, the Citrix MetaFrame XP dialog box opens displaying the Citrix resources.
For each measurement, select an object, counter, and instance, and then click Add, as described in Understanding the Citrix MetaFrame XP Dialog Box on page 344. For a description of the available measurements, see Citrix MetaFrame Performance Counters on page 346.
Note: If the dialog box freezes after clicking Add, you may need to rebuild the localhost cache on the Citrix server machine. For more information, refer to Document IDs CTX003648 and CTX759510 in the Citrix Knowledge Base (http://knowledgebase.citrix.com/ cgi-bin/webcgi.exe?New,KB=CitrixKB).
3 When you have finished selecting the measurements to monitor, click Close. The counters that you selected appear in the Resource Measurements on: <machine> section of the Citrix MetaFrame XP dialog box. 4 Click OK in the Citrix MetaFrame XP dialog box to activate the monitor.
343
Object. Select the object being monitored on the specified machine. Counters. Select a resource counter to monitor. Select multiple counters using the CTRL key. For a definition of each counter, click Explain. Instances. If multiple instances of the selected counter are running, select one or more instances to monitor for the selected counter. Add. Click Add to add the measurement that you selected. The measurement is added to the list of measurements in the Resource Measurements on. <machine> section of the Citrix MetaFrame XP dialog box. Explain. Displays a definition of the selected counter.
If you are monitoring a machine on a UNIX platform, the Configuring UNIX Remote Machine dialog box opens. If you are monitoring a machine on a Windows platform, the Configuring NT Remote Machine dialog box opens.
Enter the remote machines configuration information, as described in Configuring the Remote Machine for SiteScope Monitors on page 25, and click OK. 2 The Configuring Citrix Server dialog box opens. Verify the Server and Update every properties, and click OK.
344
3 The Citrix Configuration dialog box opens, displaying the Measured Components list.
For each measured component select the performance counters you want to monitor, as described in Understanding the Citrix Configuration Dialog Box on page 346. For a description of the available measurements, see Citrix MetaFrame Performance Counters on page 346. 4 When you have finished selecting the measurements to monitor, click OK. The counters that you selected appear in the Resource Measurements on: <machine> section of the Citrix MetaFrame XP dialog box. 5 Click OK to activate the monitor.
345
Host. The name of the host machine. Measured Components. Displays a tree containing all the available measured components. Performance Counters. Displays the performance counters for a selected measured component. Component/Counter Description. Displays a description of the selected measured component or performance counter.
Non-Virtual Counters
The following table describes non-virtual counters:
Measurement % Disk Time % Processor Time Description The percentage of elapsed time that the selected disk drive services read or write requests. The percentage of time that the processor executes a non-Idle thread. This counter is a primary indicator of processor activity. It is calculated by measuring the time that the processor spends executing the thread of the Idle process in each sample interval, and subtracting that value from 100%. (Each processor has an Idle thread which consumes cycles when no other threads are ready to run.) It can be viewed as the percentage of the sample interval spent doing useful work. This counter displays the average percentage of busy time observed during the sample interval. It is calculated by monitoring the time the service was inactive, and then subtracting that value from 100%.
346
Description The rate that the computer issues Read and Write operations to file system devices. This does not include File Control Operations. The average number of hardware interrupts the processor receives and services per second. It does not include DPCs, which are counted separately. This value is an indirect indicator of the activity of devices that generate interrupts, such as the system clock, the mouse, disk drivers, data communication lines, network interface cards and other peripheral devices. These devices normally interrupt the processor when they have completed a task or require attention. Normal thread execution is suspended during interrupts. Most system clocks interrupt the processor every 10 milliseconds, creating a background of interrupt activity. This counter displays the difference between the values observed in the last two samples, divided by the duration of the sample interval. This value represents the line speed from server to client for a session in bps. This value represents the line speed from client to server for a session in bps. A count of the Page Faults in the processor. A page fault occurs when a process refers to a virtual memory page that is not in its Working Set in main memory. A Page Fault will not cause the page to be fetched from disk if that page is on the standby list, and hence already in main memory, or if it is in use by another process with whom the page is shared.
Interrupts/sec
Output Session Line Speed Input Session Line Speed Page Faults/sec
347
Measurement Pages/sec
Description The number of pages read from the disk or written to the disk to resolve memory references to pages that were not in memory at the time of the reference. This is the sum of Pages Input/sec and Pages Output/sec. This counter includes paging traffic on behalf of the system Cache to access file data for applications. This value also includes the pages to/from non-cached mapped memory files. This is the primary counter to observe if you are concerned about excessive memory pressure (that is, thrashing), and the excessive paging that may result. The number of bytes in the Nonpaged Pool, a system memory area where space is acquired by operating system components as they accomplish their appointed tasks. Nonpaged Pool pages cannot be paged out to the paging file, but instead remain in main memory as long as they are allocated. The current number of bytes this process has allocated that cannot be shared with other processes. The instantaneous length of the processor queue in units of threads. This counter is always 0 unless you are also monitoring a thread counter. All processors use a single queue in which threads wait for processor cycles. This length does not include the threads that are currently executing. A sustained processor queue length greater than two generally indicates processor congestion. This is an instantaneous count, not an average over the time interval. The number of threads in the computer at the time of data collection. Notice that this is an instantaneous count, not an average over the time interval. A thread is the basic executable entity that can execute instructions in a processor.
Private Bytes
Threads
348
Measurement Latency Session Average Latency Last Recorded Latency Session Deviation Input Session Bandwidth Input Session Compression Output Session Bandwidth Output Session Compression Output Session Linespeed
Description This value represents the average client latency over the life of a session. This value represents the last recorded latency measurement for this session. This value represents the difference between the minimum and maximum measured values for a session. This value represents the bandwidth from client to server traffic for a session in bps. This value represents the compression ratio for client to server traffic for a session. This value represents the bandwidth from server to client traffic for a session in bps. This value represents the compression ratio for server to client traffic for a session. This value represents the line speed from server to client for a session in bps.
349
Input Font Data Bandwidth Input Licensing Bandwidth Input LPT1 Bandwidth
350
Description This value represents the bandwidth from client to server traffic on the LPT2 channel. This is measured in bps. This value represents the bandwidth from client to server traffic on the client management channel. This is measured in bps. This value represents the bandwidth from client to server traffic on the Program Neighborhood channel. This is measured in bps. This value represents the bandwidth from client to server traffic on the printer spooler channel. This is measured in bps. This value represents the bandwidth from client to server traffic on the Seamless channel. This is measured in bps. This value represents the bandwidth from client to server traffic on the local text echo data channel. This is measured in bps. This value represents the bandwidth from client to server traffic on the Thinwire (graphics) channel. This is measured in bps. This value represents the bandwidth from client to server traffic on the VideoFrame channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the audio mapping channel. This is measured in bps. This value represents the bandwidth from server to client traffic on he clipboard mapping channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the COM1 channel. This is measured in bps.
351
Description This value represents the bandwidth from server to client traffic on the COM2 channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the COM channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the ICA control channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the client drive channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the local text echo font and keyboard layout channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the licensing channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the LPT1 channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the LPT2 channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the client management channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the Program Neighborhood channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the printer spooler channel. This is measured in bps.
Output Font Data Bandwidth Output Licensing Bandwidth Output LPT1 Bandwidth
352
Measurement Output Seamless Bandwidth Output Text Echo Bandwidth Output Thinwire Bandwidth Output VideoFrame Bandwidth
Description This value represents the bandwidth from server to client traffic on the Seamless channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the local text echo data channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the Thinwire (graphics) channel. This is measured in bps. This value represents the bandwidth from server to client traffic on the VideoFrame channel. This is measured in bps.
353
354
Part XIV
Middleware Performance Monitoring
356
41
Introduction to Middleware Performance Monitoring
Using LoadRunners Middleware Performance monitors, you can monitor the Tuxedo and the IBM WebSphere MQ servers during a scenario run and isolate server performance bottlenecks. A primary factor in a transactions response time is the Middleware performance usage. LoadRunners Middleware Performance monitors provide you with information about the Middleware performance usage of the Tuxedo and IBM WebSphere MQ servers during a scenario execution. To obtain performance data, you need to activate the online monitor for the server and specify which resources you want to measure before executing the scenario. The Tuxedo monitor can monitor the server, load generator machine, workstation handler, and queue in a Tuxedo system. To run the Tuxedo monitor, you must install the Tuxedo client libraries on the machine you want to monitor. The IBM WebSphere MQ monitor is used to monitor channel and queue performance counters on an IBM WebSphere MQ (version 5.x) Server. The procedures for selecting monitor measurements and configuring the monitors vary according to server type. The following sections contain specific configuration instructions for each server type.
357
358
42
Tuxedo Monitoring
The Tuxedo monitor allows you to measure and view your Tuxedo server performance. It provides information about the host machine, workstation handler, and queue in a Tuxedo system. To obtain data for this graph, you need to configure the Tuxedo monitor (from the Controller) and select the measurements you want to display, before running the scenario.
Note: If Tuxedo 7.1 or higher is installed on the Controller machine, more than one Tuxedo application server can be monitored at a time. However, if Tuxedo 6.5 or below is installed on the Controller machine, only one Tuxedo application server can be monitored at a time.
Setting up the Tuxedo Monitor on page 360 Adding a Machine to Monitor on page 361 Configuring the Tuxedo Monitor on page 362 Tuxedo Performance Counters on page 365
359
Ensure that a Tuxedo workstation client (not a native client) is installed on the Controller machine. Use a Tuxedo 6.x client if a Tuxedo 6.x server is used, and Tuxedo 7.1 or above client if a Tuxedo 7.1 or above server is used. If you use a Tuxedo 6.5 or earlier server, you can still use a Tuxedo 7.1 or later client to monitor it, provided that you set the WSINTOPPRE71 environment variable to yes.
Note: A Tuxedo workstation client communicates with the application server over the network, and is not required to run the Tuxedo application server on the same machine. A native client can only communicate with the Tuxedo application server if it is part of the relevant Tuxedo domain.
Define the Tuxedo environment variables on the Controller machineset the TUXDIR variable to the Tuxedo installation directory (for example, V:\environ\32\Tuxedo8.0), and add the Tuxedo bin directory to the PATH variable. Ensure that the workstation listener (WSL) process is running. This enables the application server to accept requests from workstation clients.
Note: The address and port number used to connect to the application server must match those dedicated to the WSL process.
Note: For information on configuring the WSL, refer to the BEA Tuxedo Web site (http://edocs.beasys.com/tuxedo/tux81/rf5/rf5101.htm#1534543).
360
Note: If you are using multiple instances of the Tuxedo monitor on the same machine, then enter the port number of each Tuxedo monitor in order to distinguish one instance from another. The entry should have the following format: <machine name>:<port number>
Select the platform on which the machine runs, and click OK. 5 In the Resource Measurements section of the Tuxedo dialog box, click Add. 6 Continue with Configuring the Tuxedo Monitor on page 362.
361
Login Name: Enter your login name. Password: Enter your password. Server Name: Enter the name of the server. The format of the server name is //<machine name>:<port number>. Alternatively, you can specify the IP address or the hexadecimal format used by old versions of Tuxedo. Note: You cannot use quotation marks.
Client Name: Enter the name of the client machine. If a Tuxedo server was previously monitored, its name is displayed in the Server Name box. Browse: Enables you to navigate to the tpinit.ini file of a recorded Tuxedo script. Note: Logon information is located in the Logon section of the tpinit.ini file in the recorded scripts directory. It is recommended that you use the Browse button and select the tpinit.ini file from a recorded script, rather than enter the values manually. You can also determine the client name from the lrt_tpinitialize statement in the recorded script.
362
In the following example of a tpinit.ini file, the Tuxedo monitor was configured for a server named psft1 using port 7000, and a client named bankapp. The logon user name was PS and the password was PS.
[Logon] LogonServername=//psft1:7000 LogonUsrName=PS LogonCltName=bankapp LogonGrpName= LogonPasswd=PS LogonData=
2 To authenticate the Tuxedo monitor, click Advanced, and enter the authentication data as a hexadecimal string (beginning with 0x) in the data box. The authentication data value can be obtained from the tpinit.ini file of an existing Tuxedo script.
Note: If you are using Tuxedo 6.5 or below, the monitor can only connect to one application server during a scenario. Once it connects to an application server, the server is the only one used by the monitor until the Controller is closed. This applies even when all of the counters are deleted from the monitor.
363
4 For each measurement, select an object, counter, and instance, and then click Add, as described in Understanding the Add Tuxedo Measurements Dialog Box on page 364. For a description of the available measurements, see Tuxedo Performance Counters on page 365. 5 Add all the desired objects to the list, and click Close. The measurements that you selected appear in the Resource Measurements on: <machine> section of the Tuxedo dialog box. 6 Click OK in the Tuxedo dialog box to activate the monitor.
Object. Select the object being monitored on the specified machine. Counters. Select a resource counter to monitor. Select multiple counters using the CTRL key. For an explanation of each counter, click Explain. Instances. If multiple instances of the selected counter are running, select one or more instances to monitor for the selected counter. Explain. Displays a description of the selected counter.
364
365
Monitor Queue
Measurements % Busy Servers - The percent of active servers currently handling Tuxedo requests. Active Servers - The total number of active servers either handling or waiting to handle Tuxedo requests. Busy Servers - The total number of active servers currently busy handling Tuxedo requests. Idle Servers - The total number of active servers currently waiting to handle Tuxedo requests. Number Queued - The total number of messages which have been placed on the queue.
Server
Requests/second -The number of server requests handled per second Workload/second - Workload is a weighted measure of the server requests. Some requests could have a different weight than others. By default, the workload is always 50 times the number of requests.
Bytes Received/sec - The total number of bytes received by the workstation handler, per second. Bytes Sent/sec - The total number of bytes sent back to the clients by the workstation handler, per second. Messages Received/sec - The number of messages received by the workstation handler, per second. Messages Sent/sec - The number of messages sent back to the clients by the workstation handler, per second. Number of Queue Blocks/sec - The number of times the queue for the workstation handler blocked, per second. This gives an idea of how often the workstation handler was overloaded.
366
43
IBM WebSphere MQ Monitoring
The IBM WebSphere MQ monitor displays statistics about the resource usage on the IBM WebSphere MQ server during the scenario run. To use the IBM WebSphere MQ monitor you must first install the IBM WebSphere MQ client on the Controller machine and configure the server environment to monitor events. The IBM WebSphere MQ monitor connects to the IBM WebSphere MQ server (via the MQ Client Connection installed on the Controller machine). In MQ Client environments, the client machine connects to an MQ Server instance, and uses the Servers resources as if they were local to the client machine. You can then enable the MQ online monitor (from the Controller) and select the measurements you want to display, before running the scenario.
Note: The LoadRunner IBM WebSphere MQ monitor supports machines running the IBM MQ Server (version 5.2) on Windows platforms only. To monitor the IBM WebSphere MQ server, the Windows user must be part of the Administration Group of the IBM WebSphere MQ server.
Setting up the Monitoring Environment on page 368 Adding a Machine to Monitor on page 371 Configuring the IBM WebSphere MQ Monitor on page 372 IBM WebSphere MQ Performance Counters on page 376
367
Ensure that an IBM WebSphere MQ Client Connection (version 5.21 only) is installed on the Controller machine. For additional information on installing the IBM WebSphere MQ Server/Client, refer to the IBM Web site (http://www.ibm.com/).
Configure the IBM WebSphere server to monitor events. The LoadRunner MQ Monitor retrieves event messages from two standard MQSeries queues only:
SYSTEM.ADMIN.PERFM.EVENT performance events, such as queue depth high SYSTEM.ADMIN.CHANNEL.EVENT channel events, such as channel stopped
Events must be enabled for the queue manager (and in many cases, on the applicable object, as well). Performance events are enabled by setting attributes for the queue on the MQ Server. Channel events are enabled by default, and cannot be disabled.
Note: The IBM WebSphere MQ monitor does not retrieve data from a queue manager after the queue manager has been restarted.
368
To enable performance events for the Queue Manager: 1 Use the following MQSC command: ALTER QMGR PERFMEV(ENABLED). 2 Set the following attributes for the queue:
Measurement Event - Queue Depth High Set Event Attributes
QDEPTHHI(integer) where integer is a value expressed as
or DISABLED, enabling or disabling the generation of the event, respectively. Event - Queue Depth Low To enable the event for a queue, the following attributes of the queue must be set:
QDEPTHLO(integer) where integer is a value expressed
or DISABLED, enabling or disabling the generation of the event, respectively. Event - Queue Full
QDEPTHHI(integer) where integer is a value expressed as
369
milliseconds, in the range of 0 and 999,999,999, inclusive. Note: this value is shared with Queue Service Interval OK.
QSVCIEV(type) where type is the word HIGH, OK,
or NONE, enabling service interval high events, enabling service interval ok events, or disabling the generation of the event, respectively. Event - Queue Service Interval OK
QSVCINT(integer) where integer is a value expressed as
milliseconds, in the range of 0 and 999,999,999, inclusive. Note: this value is shared with Queue Service Interval High.
QSVCIEV(type) where type is the word HIGH, OK,
or NONE, enabling service interval high events, enabling service interval ok events, or disabling the generation of the event, respectively.
Note: If you encounter an MQ Server error message (starting with the characters MQRC_), refer to the WebSphere MQ family support Web site (http://www-306.ibm.com/software/integration/mqfamily/support/).
After you have installed the MQ Client on the Controller, and configured the server environment to monitor events, you can specify which resources you want to measure.
370
371
In the Connections Information section, enter the name of the channel through which a client connection is made to an MQ Server, and the name of the queue manager to be monitored.
372
Note: A queue manager can only be accessed by one Controller or monitoring application at any one time. User entries for any text box are limited to 48 characters.
2 In the Available Measurements section, select an object type. A list of previously added objects of the selected object type appear in the Object name list. A list of attributes or events applicable to the selected object type appear in the Events/Attributes list. The names of monitored objects, event/attribute selected, and alternate queue managers, are listed in the monitored objects pane. 3 By default, only user-defined objects are displayed in the Object name list. To show all objects, clear the Filter System Objects check box. You can modify the filter settings, in the <LoadRunner_installation>\dat\monitors\ mqseries.cfg file. 4 Select an object or add a new object to the Object name list. To add a new object name, click Add Object. In the Add Object Name dialog box, enter the name of an object to be monitored and click OK. The dialog box closes and the name of the object appears in the Object name list. 5 Select the attributes or events to be measured from the Attribute/Event box. The list of attributes or events is applicable to the selected object type. For a description of the available measurements, see IBM WebSphere MQ Performance Counters on page 376.
Note: To enable the event for a queue, ensure that the attributes for the queue have been set. For more information, refer to Setting up the Monitoring Environment on page 368.
373
6 If the event configured for monitoring is from a remote queue manager (other than the one identified in the queue manager field of the IBM WebSphere MQ Add Measurements dialog box), click Alternate Queue. Enter the name of an alternate queue manager in the Alternate Queue dialog box, and click OK.
Note: When you add an alternate queue manager, this becomes the default queue manager for any events that you subsequently add. To return to the queue manager to which you are connected, enter that name in the Alternate Queue Manager dialog box.
7 To add the object measurements to the monitored objects list, click Add. The name of the object, its events and attributes, and any alternate queue managers, are listed in the monitored objects pane. 8 To remove a monitored object event or attribute, select the object measurement in the monitored objects pane, and click Remove. The entry is deleted from the monitored objects list. 9 Add all the desired counters to the monitored objects list, and click OK. The measurements that you selected appear in the Resource Measurements on: <machine> section of the IBS WebSphere MQ dialog box. 10 Click OK in the IBM WebSphere MQ dialog box to activate the monitor.
374
Connection Information
Server. The name of the server you are monitoring. Client Channel. Enter the name of the channel through which a client connection is made to an MQ Server.
Note: You can set up a specific channel on an MQ Server instance, or use the default SYSTEM.DEF.SVRCONN channel. If the client channel is undefined, the MQ Server will be inaccessible via client connections (the MQ Monitor will not work, as it will not be able to connect to the queue manager which it is supposed to monitor).
Note: The monitor is not restricted to monitoring only the queue manager to which it is connected. You can configure multiple queue managers to write to the event queue of a central queue manager for centralized monitoring (this applies to Events only, not polled object attributes). All events contain a queue manager attribute identifying their source.
Available Measurements
Object Type. Select an object type from either Channel or Queue. Object Name. Enter a name for object you want to monitor. Event/Attribute. Select the events and attributes you want to monitor. Filter System Objects. Select to enable the system objects filter. Add Object. Enables you to add a new object name to the Object name list.
375
Add. Enables you to add an Event or Attribute to an object. Remove. Enables you to remove a monitored object event or attribute from the Object name list. Alternate Queue. Enter the name of an alternate queue manager if the event is from a remote queue manager.
376
Description Current count of messages on a local queue. This measurement applies only to local queues of the monitored queue manager. Current count of open input handles. Input handles are opened so that an application may "put" messages to a queue. Current count of open output handles. Output handles are opened so that an application may "get" messages from a queue.
Event - Channel Not Activated (events per second) Event - Channel Started (events per second) Event - Channel Stopped (events per second) Event - Channel Stopped by User (events per second) Status - Channel State
377
Description The count of messages that have been sent over the channel. If no traffic is occurring over the channel, this measurement will be zero. If the channel has not been started since the queue manager was started, no measurement will be available. The count of buffers that have been received over the channel. If no traffic is occurring over the channel, this measurement will be zero. If the channel has not been started since the queue manager was started, no measurement will be available. The count of buffers that have been sent over the channel. If no traffic is occurring over the channel, this measurement will be zero. If the channel has not been started since the queue manager was started, no measurement will be available. The count of bytes that have been received over the channel. If no traffic is occurring over the channel, this measurement will appear as zero. If the channel has not been started since the queue manager was started, no measurement will be available. The count of bytes that have been sent over the channel. If no traffic is occurring over the channel, this measurement will appear as zero. If the channel has not been started since the queue manager was started, no measurement will be available.
378
Part XV
Infrastructure Resource Monitoring
380
44
Infrastructure Resources Monitoring
Using LoadRunners Network Client monitor, you can monitor network client resources for FTP, POP3, SMTP, IMAP, and DNS Vusers during a scenario run and isolate client performance bottlenecks. This chapter includes:
Configuring the Network Client Monitor on page 381 Network Client Performance Counters on page 381
381
Measurement Data receive bytes per sec Connections per sec Accept connections per sec SSL Connections per sec SSL Data transfer bytes per sec SSL Data receive bytes per sec SSL Accept connections per sec
Description Number of data bytes received per second Number of connections per second Number of connections accepted per seconds Number of SSL connections per second Number of SSL data bytes transferred per second Number of SSL data bytes received per second Number of SSL connections accepted per seconds
382
Part XVI
Appendixes
384
A
Troubleshooting Online Monitors
LoadRunner monitors allow you to view the performance of the scenario during execution. The following sections describe several tips and known issues relating to the online monitors. This appendix includes:
Troubleshooting Server Resource Monitors on page 386 Troubleshooting the Network Delay Monitor on page 389 Network Considerations on page 390
385
Cannot monitor a Windows machine (An error message is issued: computer_name not found or Cannot connect to the host)
386
Problem Some Windows default counters are generating errors You cannot get performance counters for the SQL server (version 6.5) on the monitored machine. The selected measurements are not displayed in the graph. When monitoring a Windows machine, no measurements appear in the graph. When monitoring a UNIX machine, no measurements appear in the graph. Cannot monitor one of the following Web servers: MS IIS, MS ASP, or ColdFusion
Solution Remove the problematic counters and add the appropriate ones using the Add Measurement dialog box.
There is a bug in SQL server version 6.5. As a workaround, give read permission to the following registry key at the monitored machine (use regedt32): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServ er\MSSQLServer (Microsoft tech-note number Q170394) Ensure that the display file and online.exe are registered. To register the monitor dll's, without performing a full installation, run the set_mon.bat batch file located in LoadRunner\bin. Check the built-in Windows Performance Monitor. If it is not functional, there may be a problem with the communication setup.
Ensure that an rstatd is running on the UNIX machine (Refer to Part IV, System Resource Monitoring.)
387
Solution Open the <LoadRunner root folder>\dat\monitors\WebLogicMon.ini file, and search for: [WebLogicMonitor] JVM=javaw.exe Change javaw.exe to java.exe. A window containing trace information opens.
388
To check the entire network path, use the trace route utility to verify that the path is valid. For Windows, type tracert <server_name>. For UNIX, type traceroute <server_name>. If the monitoring problem persists once you verify that the machines are accessible and that the network path is valid, perform the following procedures: 1 If you are using the TCP protocol, run <LoadRunner root folder>\bin\webtrace.exe from the source machine to determine whether the problem is related to the Controller, or the WebTrace technology on which the Network Delay monitor is based. If you are using the UDP or ICMP protocols, the problem must be related to the Controller and not WebTrace, since these protocols are not WebTrace technology-based. 2 If you receive results by running webtrace.exe, the problem is related to the Controller. Verify that the source machine is not a UNIX machine, and contact the Customer Support Web site with the following information:
the Controller log file, drv_log.txt, located in the temp directory of the Controller machine. the traceroute_server log file, located on the source machine. the debug information located in the TRS_debug.txt and WT_debug.txt files in the path directory. These files are generated by adding the following line to the [monitors_server] section of the <LoadRunner root
389
folder>\dat\mdrv.dat file, and rerunning the Network monitor: ExtCmdLine=-traceroute_debug path 3 If you do not receive results by running webtrace.exe, the problem is related to the WebTrace technology, on which the Network Delay monitor is based. Perform the following procedures on the source machine:
Verify that the packet.sys file (the Webtrace driver) exists in the WINNT\system32\drivers directory. Check whether a driver (such as Cloud or Sniffer) is installed on top of the network card driver. If so, remove it and run WebTrace again. Verify that there are administrator permissions on the machine. Using ipconfig /all, check that only one IP address is assigned to the network card. WebTrace does not know how to handle multiple IP addresses assigned to the same card (IP spoofing). Check the number of network cards installed. Run webtrace devlist to receive a list of the available network cards. If there is more than one card on the list, run webtrace -dev <dev_name> <destination>, where <dev_name> is one of the network card names shown in the list. If you discover that WebTrace is binding to the wrong card, you can use webtrace set_device <dev_name> to set a registry key that instructs WebTrace to use a specified card instead of the default one. Verify that the network card is of the Ethernet type. Contact the Customer Support Web site with the output of webtrace.exe debug (for example, webtrace.exe debug www.merc-int.com) and ipconfig /all on the machine.
Network Considerations
If you notice extraordinary delays on the network, refer to one of the following sections to increase the performance:
390
391
If you send a message that is larger than one of the MTUs, it will be broken up into fragments, slowing transmission speeds. If the MTU is too high, it may cause unintended degradation. Trial and error is the only sure way of finding the optimal MTU, but there are some guidelines that can help. For example, most Ethernet networks have an MTU of 1500. If the desired MTU reduces performance, upgrade the network or reduce the MTU to improve performance.
Click the Run-Time Settings button and select the General: Log node. Clear the Enable logging check box. Initialize all users before running them. Run them only after initialization is completed.
392
B
Security Monitoring
When you run certain security scripts, you can use LoadRunners security graphs to view information about the simulated attacks on the server.
393
Note: To obtain data for this graph, you need to execute one of the following canned security scripts: SYN FLOOD DDOS Attack or UDP Echo DDOS Attack.
394
C
Working with Server Monitor Counters
When you configure the System Resource, Microsoft IIS, Microsoft ASP, ColdFusion, and SQL Server monitors, you are presented with a list of default counters that you can measure on the server you are monitoring. Using the procedure described below, you can create a new list of default counters by including additional counters, or deleting existing counters. In addition, there are specific counters that are especially useful for determining server performance and isolating the cause of a bottleneck during an initial stress test on a server. This appendix includes:
Changing a Monitors Default Counters on page 395 Useful Counters for Stress Testing on page 396
395
4 Copy the MonItemPlus section of the each counter you selected into the res_mon.dft file. 5 Count the number of new counters in the file and update the ListCount parameter with this number.
396
The following is a list of counters that are useful for monitoring SQL Server performance:
Object SQLServer SQLServer SQLServer SQLServer SQLServer-Locks PhysicalDisk Counter User Connections Cache Hit Ratio Net-Network Reads/sec I/O-Lazy Writes/sec Total Blocking Locks Disk Queue Length
The following is a list of counters that are useful for monitoring both Web and SQL server performance:
Object Processor PhysicalDisk Memory Memory Memory Memory System Object Process Counter % Total Processor Time % Disk Time Available Bytes Pool Nonpaged Bytes Pages/sec Committed Bytes Total Interrupts/sec Threads Private Bytes:_Total
Note: The % Disk Time counter requires that you run the diskperf -y utility at the command prompt and reboot your machine.
397
398
Index
A
activating rstatd 74 Add Destination Machines for Network Delay Monitoring dialog box 108 Add Machine dialog box DB2 monitor 218 Add Oracle Measurements dialog box 242 Add SAPGUI Monitor Measurements dialog box 292 Add TUXEDO Measurements dialog box 363 Adobe Reader 16 Application Component monitors 325 Microsoft COM+ monitor 327 Application Deployment Solutions monitors 337 Citrix MetaFrame XP monitor 339 Ariba monitor 157 Monitor Configuration dialog box 159 ASP monitor 185
D
Data Points graph (online) 53 Database Server Resource monitors 213 DB2 monitor 215 Oracle monitor 235 SQL Server monitor 251 DB2 monitor 215 Monitor Configuration dialog box 218 default counter, changing 395 Deployment 335 Distributed Denial of Service graph 393
E
ERP/CRM Server Resource monitors 271 choosing an SAP monitor 272 PeopleSoft (Tuxedo) monitor 315 SAP CCMS monitor 281 SAPGUI monitor 289 Siebel Server Manager monitor 307 Siebel Web Server monitor 299 Error - Vuser state Running Vusers graph 52 Error Statistics graph 53 Ethernet-bus based network 392
C
Check Point FireWall-1 monitor 119 SNMP Resources dialog box 121 Citrix MetaFrame XP dialog box 343 monitor 339 COM+ monitor 327 Connections graph 47 Connections per Second graph 47 counters, for stress testing 396 custom queries Oracle monitor 248
F
Finished - Vuser state Running Vusers graph 52 Firewall Server monitors 119 Check Point FireWall-1 119 firewalls, network monitoring 114
399
Index
H
Hits per Second graph 42 HP Software Support Web site 18 HP Software Web site 19 HTTP Response per Second graph 43
I
IBM WebSphere MQ monitor 367 Monitor Configuration dialog box 372 IIS monitor 147 Infrastructure Resources monitors Network Client 381 iPlanet (NAS) dialog box 172 monitor 165 iPlanet (SNMP) dialog box 139 monitor 137 iPlanet/Netscape Add Measurements dialog box 132 monitor 129
monitors Application Component 325 application deployment solutions 337 database server resources 213 ERP/CRM server resources 271 firewall server 119 infrastructure resources 381 middleware performance 357 network delay 103 run-time 52 streaming media 261 system resources 61 transaction 54 Web resources 41 Web server resources 127 MS Active Server Pages dialog box 187 MS IIS dialog box 149 monitor 147 MS SQL Server monitor 251
N
Network Breakdown dialog box 116 Delay Time dialog box 108 Delay Time graph 115 Monitor Settings for Defined Path dialog box 108 Network Client monitor 381 Network monitor 103 determining bottlenecks 101 monitoring over a firewall 114 packets 101 viewing network segment delay 116
K
Knowledge Base 18
L
LoadRunner Analysis Users Guide 17 LoadRunner Controller Users Guide 17 LoadRunner Installation Guide 17 LoadRunner Monitor Reference 17 lr_user_data_point 53
M
Microsoft ASP monitor 185 IIS monitor 147 Microsoft COM+ dialog box 329 monitor 327 Middleware Performance monitors 357 IBM WebSphere MQ monitor 367 Tuxedo monitor 359 400
O
online graphs data point 53 online monitors changing default counters 395 online transaction monitoring adding transactions 56 graphs 54 setup 55
Index online Web server resource monitoring using a proxy server 128 Oracle custom queries 248 Logon dialog box 242 monitor 235 Add Measurements dialog box 294 monitor 272, 289 Monitor Logon dialog box 292 security monitoring 393 Services.UserDataPoint(Value,Name) 53 Siebel Server Manager add measurements dialog box 311 monitor 307 Siebel Web Server add measurements dialog box 302 Configuring Siebel Web Server Monitor dialog box 301 monitor 299 SiteScope monitor 95 Monitor Configuration dialog box 97 SNMP Resources monitor 85 SQL Server monitor 251 SSLs per Second graph 48 Streaming Media monitors 261 RealPlayer Client monitor 263 System Resource monitors 61 SiteScope monitor 95 SNMP Resources monitor 85 UNIX Resources monitor 73
P
packets 101 Pages Downloaded per Second graph 45 PeopleSoft (Tuxedo) add measurements dialog box 319 Logon dialog box 317 monitor 315 Performance 355 Proxy Server 128
R
Ready - Vuser state Running Vusers graph 52 RealPlayer Client monitor 263 Retries per Second graph 47 rsh connection, for UNIX network monitor 106 rstatd process activating 74 resource monitors 74 Running - Vuser state Running Vusers graph 52 Run-Time graphs 51
T
Throughput graph 42 Transaction monitors 51 transactions Total Transactions per Second (Passed) graph 54 Transaction Response Time graph 54 Transactions per Second (Failed, Stopped) graph 54 Transactions per Second (Passed) graph 54 troubleshooting monitors 385 network considerations 390 Troubleshooting and Knowledge Base 18 Tuxedo monitor 359 Monitor Configuration dialog box 363
S
SAP CCMS add measurements dialog box 285 Configuring SAP CCMS Monitor dialog box 284 monitor 281 SAP Portal add measurements dialog box 278 Configuring SAP Portal Monitor dialog box 277 monitor 275 SAPGUI
401
Index
U
UNIX activating rstatd 74 Resources monitor 73 UNIX Kernel Statistics dialog box 76 User-Defined Data Points graph 53
V
Vuser states Run-Time graphs 52 Vusers with Errors graph 53
W
Web Application Server Resource monitors Ariba monitor 157 iPlanet (NAS) 165 Microsoft ASP 185 WebLogic monitor 191 WebSphere Application Server monitor 199 Web Resource monitors 41 Connections graph 47 Connections per Second graph 47 Hits per Second graph 42 HTTP Response per Second graph 43 Pages Downloaded per Second graph 45 Retries per Second graph 47 SSLs per Second graph 48 Throughput graph 42 Web Server Resource monitors 127 iPlanet (SNMP) monitor 137 iPlanet/Netscape monitor 129 Microsoft IIS monitor 147 WebLogic (SNMP) Resources dialog box 193 monitor 191 WebSphere Application Server monitor 199 monitor configuration 204 Windows Resources dialog box 67, 255, 345
402