CICS Performance Analyzer

Transcription

Front coverCICS PerformanceAnalyzerGain insight to the IBM WebSphere MQreporting capabilitiesExplore enhanced CICS Monitoring Facility(CMF) resource class reportingLearn how to work withhistorical performance dataChris RaynsShirley CollinsEugene DeborinPeter KleinGreg TodaroMark ToddNorbert Verbestelibm.com/redbooks

International Technical Support OrganizationCICS Performance AnalyzerSeptember 2003SG24-6063-00

Note: Before using this information and the product it supports, read the information in “Notices” onpage xi.First Edition (September 2003)This edition applies to Version 1 Release 3 of IBM CICS Performance Analyzer for z/OS (product number5655-F38), Version 1 Release 3 of CICS Transaction Server (product number 5655-147), and Version 2Release 2 of CICS Transaction Server (product number 5697-E93). Copyright International Business Machines Corporation 2003. All rights reserved.Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP ScheduleContract with IBM Corp.

ContentsNotices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiTrademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiiPreface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiiiThe team who wrote this book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiiiBecome a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xivComments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvPart 1. CICS Performance Analyzer overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Chapter 1. CICS performance management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.1 How to approach CICS performance monitoring and tuning. . . . . . . . . . . . . . . . . . . . . . 41.2 CICS tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41.2.1 CICS Performance Analyzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.2.2 CICS Performance Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.2.3 Benefits of CICS Performance Analyzer and CICS Performance Monitor . . . . . . . 71.2.4 CICS Online Transmission Time Optimizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.2.5 CICS Interdependency Analyzer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.2.6 CICS Business Event Publisher for MQSeries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.2.7 IBM Session Manager for z/OS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.2.8 CICS VSAM Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.3 Data used by CICS Performance Analyzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101.3.1 CICS Monitoring Facility data (SMF 110 records). . . . . . . . . . . . . . . . . . . . . . . . . 101.3.2 DB2 accounting data (SMF 101 records) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141.3.3 WebSphere MQ accounting data (SMF 116 records) . . . . . . . . . . . . . . . . . . . . . . 151.3.4 MVS System Logger data (SMF 88 records) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161.4 Other relevant CICS data and utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171.4.1 CICS statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181.4.2 The sample statistics program: DFH0STAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191.4.3 Statistics utility program: DFHSTUP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191.4.4 Monitoring dictionary utility program: DFHMNDUP. . . . . . . . . . . . . . . . . . . . . . . . 201.4.5 Sample monitoring data print program: DFH MOLS . . . . . . . . . . . . . . . . . . . . . . 201.4.6 Journal utility program: DFHJUP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211.5 Other relevant information sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211.5.1 System Management Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211.5.2 Resource Management Facility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221.5.3 Generalized Trace Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221.5.4 Tivoli Decision Support for OS/390 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Chapter 2. A quick start to CICS Performance Analyzer . . . . . . . . . . . . . . . . . . . . . . . .2.1 What CICS PA is . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.2 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.3 Recommended ISPF setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.4 Preparing the SMF data for CICS PA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.5 Starting CICS PA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.5.1 CICS PA Primary Option Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.6 System definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.6.1 System Definitions Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.6.2 Take-Up from SMF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copyright IBM Corp. 2003. All rights reserved.23242526282929293030iii

iv2.6.3 Maintain system definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.6.4 MVS image definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.6.5 CICS System definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.6.6 Other system definitions: DB2, WebSphere MQ, System Logger. . . . . . . . . . . . .2.7 Requesting reports and extracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.7.1 Creating the Report Sets data set. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.7.2 Report Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.7.3 Editing the Report Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.7.4 Global Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.7.5 Specifying report options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.7.6 Reports list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.8 Running your reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.8.1 Active status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.8.2 Run Report Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.8.3 JCL generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.9 Viewing the report output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10 Tailoring report formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.1 Creating the Report Forms data set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.2 Report Form types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.3 Report Forms list. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.4 Sample Report Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.5 Edit Report Form. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.6 New Report Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.7 Using the Report Form in your report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.11 Filtering the report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.11.1 Selection criteria . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.11.2 Run Report Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.11.3 JCL generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.12 Maintaining Object Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.12.1 Creating the Object Lists data set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.12.2 Object Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.12.3 Edit Object List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.12.4 Using the Object List in your selection criteria . . . . . . . . . . . . . . . . . . . . . . . . . 15254555656565657Chapter 3. Reports and extracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.1 CICS PA Report Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.2 CICS PA commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.2.1 Commands for reports and extracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.2.2 Commands for HDB processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3 Performance reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.1 Performance List report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.2 Performance List Extended report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.3 Performance Summary report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.4 Performance Totals report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.5 Wait Analysis report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.6 Cross-System Work report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.7 Transaction Group report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.8 BTS report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.3.9 Workload Activity report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.4 Exception reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.4.1 Exception List report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.4.2 Exception Summary report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3.5 Transaction Resource Usage reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59606464646565677072757780818284848585CICS Performance Analyzer

3.5.1 File Usage Summary report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863.5.2 Temporary Storage Usage Summary report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 873.5.3 Transaction Resource Usage List report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 883.6 Subsystem reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893.6.1 DB2 report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893.6.2 WebSphere MQ report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 913.7 System reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943.7.1 System Logger report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943.8 Performance Graph reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 973.8.1 Transaction Rate Graph report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 973.8.2 Transaction Response Time Graph report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 983.9 Performance extracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993.9.1 Cross-System Work extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993.9.2 Export extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1013.9.3 Record Selection extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1043.10 Popular mix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105Chapter 4. Processing extracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.1 Processing extracts with DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.2 Processing extracts with Lotus 1-2-3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.2.1 Exporting performance extracts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.2.2 Importing extracted data to Lotus 1-2-3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.3 Processing extracts with Microsoft Excel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.3.1 Exporting a performance extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.3.2 Importing extracted data into Microsoft Excel . . . . . . . . . . . . . . . . . . . . . . . . . . .4.4 Processing extracts with Microsoft Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.4.1 Exporting performance extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4.4.2 Importing extracted data into Microsoft Access . . . . . . . . . . . . . . . . . . . . . . . . .107108108108110112112113118118118Part 2. CICS Performance Analyzer in action. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127Chapter 5. System setup and scenario overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.1 CICS region setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.1.1 Configuration for traditional workloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.1.2 Configuration for Enterprise JavaBean workloads . . . . . . . . . . . . . . . . . . . . . . .5.1.3 CICS Web Support and 3270 Bridge setup . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.1.4 CICS Transaction Gateway setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2 Scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.1 VSAM application performance analysis and Transaction Resource Monitoringsupport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.2 Tuning the CICS-DB2 attachment facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.3 WebSphere MQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.4 CICS use of MVS System Logger. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.5 CICS access through CICS Transaction Gateway . . . . . . . . . . . . . . . . . . . . . . .5.2.6 CICS Web Support and 3270 Bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.7 Java applications in CICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.8 Enterprise JavaBeans in CICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.9 Application Naming support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.10 CALL and LINK performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.11 Exception reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.12 Analyzing overall CICS system performance . . . . . . . . . . . . . . . . . . . . . . . . . .5.2.13 Using CICS Performance Analyzer reports for problem determination. . . . . . .5.2.14 Historical Database (HDB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36136136136137Contentsv

viChapter 6. VSAM application performance analysis and Transaction ResourceMonitoring support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.1 CICS VSAM interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.2 CICS VSAM RLS scenario description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.2.1 RLS workload generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.2.2 Performance objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.3 Running the VSAM RLS scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.3.1 Updating system definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.3.2 Creating a Summary Report Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.3.3 Creating an Object List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.3.4 Creating a Report Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.4 CICS VSAM LSR scenario description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.5 Running the VSAM LSR scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.5.1 LSR workload generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.5.2 LSR application performance objectives. . .

International Technical Support Organizat