DB2 UDB V8 and Websphere V5 Performance Tuning and Operation Guide
Total Page:16
File Type:pdf, Size:1020Kb
Front cover DB2 UDB V8 and WebSphere V5 Performance Tuning and Operation Guide Best performance tuning practices for DB2 UDB and WAS integrated environment Gets you smoothly up and running DB2 UDB and WAS together Problem determination scenarios Whei-Jen Chen Peter Z. He Kang Yong Ying Sunminder S Saini Andreas Paulsen ibm.com/redbooks International Technical Support Organization DB2 UDB V8 and WebSphere V5 Performance Tuning and Operation Guide March 2004 SG24-7068-00 Note: Before using this information and the product it supports, read the information in “Notices” on page ix. First Edition (March 2004) This edition applies to IBM DB2 Universal Database Version 8.1 and IBM WebSphere Server V5.0.2, for use with IBM AIX 5.1 and Windows 2000 operating systems. © Copyright International Business Machines Corporation 2004. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . ix Trademarks . x Preface . xi The team that wrote this redbook. xii Become a published author . xiv Comments welcome. xv Chapter 1. Introduction. 1 1.1 IBM On Demand era . 2 1.1.1 The IBM On Demand operating environment . 2 1.2 Why DB2 UDB and WebSphere . 9 1.3 Key areas of performance . 10 1.3.1 Hardware. 11 1.3.2 Operating system . 11 1.3.3 Application Server and WebServer . 12 1.3.4 Database manager . 13 1.3.5 Application programs . 13 1.4 Performance tuning guidelines . 14 1.4.1 Initial efforts always pay . 14 1.4.2 Tune the identified constraints . 14 1.4.3 Change one parameter at a time . 14 1.4.4 Consider the entire system . 15 1.4.5 Hardware upgradation. 15 1.4.6 Follow performance tuning process and proper documentation . 15 1.5 Process of performance tuning . 16 1.5.1 Developing a performance-improvement process . 16 1.5.2 Performance-tuning limits . 18 Chapter 2. Overview of WebSphere Application Server V5. 19 2.1 Java 2 Enterprise Edition (J2EE) overview . 20 2.1.1 J2EE platform roles. 21 2.1.2 J2EE benefits . 22 2.1.3 Application components and their containers . 23 2.1.4 Standard services . 23 2.1.5 J2EE packaging . 24 2.2 WebSphere Application Server V5 product family . 24 2.3 WebSphere Application Server runtime architecture . 27 2.3.1 WAS Version 5 base runtime architecture . 29 © Copyright IBM Corp. 2004. All rights reserved. iii 2.3.2 WAS Version 5 Network Deployment runtime architecture. 30 2.3.3 Architectural features . 33 2.4 WebSphere Application Server V5 tools . 37 2.4.1 Tools for installing, upgrading, and migrating . 37 2.4.2 Tools for assembling applications . 38 2.4.3 Tools for deploying and administering . 39 2.4.4 Tools for monitoring and tuning. 40 2.4.5 Tools for troubleshooting. 40 2.5 WAS V5.0.2 and Supported J2EE APIs . 41 2.5.1 What is new in WebSphere Application Server V5.0.2 . 41 2.5.2 Supported J2EE APIs in WAS 5.0.2 . 45 Chapter 3. Overview of DB2 UDB V8 . 47 3.1 DB2 UDB product family . 48 3.1.1 DB2 Everyplace® . 48 3.1.2 DB2 Express . 49 3.1.3 DB2 UDB Personal Edition (PE) . 49 3.1.4 DB2 UDB Workgroup Server Edition (WSE). 49 3.1.5 DB2 UDB Enterprise Server Edition (ESE) . 49 3.2 DB2 architecture overview . 49 3.2.1 Process model . 51 3.2.2 Memory model . 54 3.2.3 Storage model. 56 3.2.4 Key performance-related areas. 58 3.3 Tools . 72 3.3.1 IBM DB2 UDB Performance Expert for Multiplatforms . 72 3.3.2 IBM DB2 UDB Recovery Expert for Multiplatforms . 73 3.3.3 IBM DB2 High Performance Unload for Multiplatforms. 73 3.3.4 IBM DB2 UDB Table Editor for Multiplatforms . 73 3.3.5 IBM DB2 UDB Web Query Tool for Multiplatforms . 73 Chapter 4. DB2 UDB V8 and WAS V5 integrated environment . 75 4.1 WebSphere session manager . 76 4.1.1 HttpSession interface . 76 4.2 Enterprise JavaBeans . 76 4.2.1 EJB overview . 77 4.3 Typical application flow . 87 4.4 Topology selection . 89 4.4.1 Selection criteria . 89 4.4.2 Performance and scalability . 89 4.4.3 Single machine topology . 90 4.4.4 Separating the HTTP server . 91 4.4.5 Separating the DB2 UDB server . 92 iv DB2 UDB V8 and WebSphere V5 Performance Tuning and Operations Guide 4.4.6 Separating the Web container and the EJB container . 94 4.4.7 Vertical scaling . 95 4.4.8 Horizontal scaling with clusters . 96 4.4.9 Session persistence considerations . 98 4.4.10 Topology selection summary . 99 4.5 How WebSphere Application Server works with DB2 UDB Server . 101 4.5.1 J2EE Connector architecture . 101 4.5.2 JDBC resources . 102 4.5.3 DB2 JDBC providers . 107 4.6 DB2 connectivity to z/OS and S/390®. 112 4.6.1 Type 2 connectivity from a non-z/OS platform . 113 4.6.2 Type 4 connectivity from a non-z/OS platform . 113 4.6.3 DB2 UDB for z/OS and OS/390 as a DRDA application requester. 115 4.6.4 Application on z/OS connecting DB2 UDB for Multiplatforms . 116 Chapter 5. Operational setup . 117 5.1 Environment setup . 118 5.1.1 Installation planning . 118 5.1.2 Products’ installation briefing . 119 5.1.3 Using DB2 for z/OS and OS/390 as the Data Source for WAS . 127 5.1.4 Installation troubleshooting . ..