WebSphere software- Copyright IBM Corporation 2005. All rights reserved. wEbsPhere Application Server v6: Proof-of-Technology Lab 07- performance tools What this exercise is about This lab will familiarize you with the Tivoli Performance Viewer that is integrated as part of the b Sphere Application Administrative Console. You will gain hands on experience navigating the Tivoli Performance Viewer (TPv interface and working with the performance data that is being collected from your running WebSphere Application Server Lab requirements This lab requires the following software to be installed on the systems Web Sphere Application Server Base v6 Windows 2000 with Service Pack 4 Trade 6 application (installed as part of this exercise · OpenSTA V142 or greate Adobe SVG (Scalable Vector Graphics)3.0X What you should be able to do You should be able to use Tivoli Performance viewer to perform the basic following tasks Collect and monitor performance data collected from a running application server Modify PMI collection settings Introduction This lab will introduce you to WebSphere's integrated performance monitoring client-Tivoli Performance Viewer. The Tivoli Performance Viewer allows you to visualize performance data collected through Web Sphere's Performance Monitoring Infrastructure(PMI).The Tivoli Performance Viewer provides basic functionality that allows an administrator to closely monitor and analyze the performance of the Web Sphere environment from within Web Sphere's Administrative Console Proof of Technology Lab o7-Performance tools Product Introduction+ Exploration(PI+E Page 1 of 29
© Copyright IBM Corporation 2005. All rights reserved. Proof of Technology Lab 07 – Performance Tools Product Introduction + Exploration (PI+E) Page 1 of 29 eWebSphere Application Server v6: Proof-of-Technology Lab 07 – Performance Tools What this exercise is about This lab will familiarize you with the Tivoli Performance Viewer that is integrated as part of the WebSphere Application Administrative Console. You will gain hands on experience navigating the Tivoli Performance Viewer (TPV) interface and working with the performance data that is being collected from your running WebSphere Application Server. Lab Requirements This lab requires the following software to be installed on the systems: • WebSphere Application Server Base v6 • Windows 2000 with Service Pack 4 • Trade 6 application (installed as part of this exercise) • OpenSTA v1.4.2 or greater • Adobe SVG (Scalable Vector Graphics) 3.0x What you should be able to do You should be able to use Tivoli Performance Viewer to perform the basic following tasks: • Collect and monitor performance data collected from a running application server. • Modify PMI collection settings. Introduction This lab will introduce you to WebSphere’s integrated performance monitoring client – Tivoli Performance Viewer. The Tivoli Performance Viewer allows you to visualize performance data collected through WebSphere’s Performance Monitoring Infrastructure (PMI). The Tivoli Performance Viewer provides basic functionality that allows an administrator to closely monitor and analyze the performance of the WebSphere environment from within WebSphere’s Administrative Console
Copyright IBM Corporation 2005. All rights reserved. All parts of this lab will need to be completed individually. Also be sure to complete the Environment Setup and Environment Cleanup portions. They are important because they provide a clean starting point for completion of any subsequent exercises Exercise Instructions Instructions in this lab are Windows operating-system specific. When directory locations are passed as parameters to a Java program such as EJBdeploy or wsadmin, it is necessary to replace the backslashes with forward slashes to follow the Java convention For example C: \ LabFiles60\ would be replaced by C: LabFiles60/
© Copyright IBM Corporation 2005. All rights reserved. Lab 07 – Performance Tools Page 2 of 29 All parts of this lab will need to be completed individually. Also be sure to complete the Environment Setup and Environment Cleanup portions. They are important because they provide a clean starting point for completion of any subsequent exercises. Exercise Instructions Instructions in this lab are Windows operating-system specific. When directory locations are passed as parameters to a Java program such as EJBdeploy or wsadmin, it is necessary to replace the backslashes with forward slashes to follow the Java convention. For example, C:\LabFiles60\ would be replaced by C:/LabFiles60/
WebSphere software- Copyright IBM Corporation 2005. All rights reserved. Part 1: Environment Setup In this part you will setup the lab environment by creating a Cloudscape database, then by the Trade benchmark and sap.2 starting the Web Sphere managed server processes. The Cloudscape database will be used erformance application Create and load the Trade data Base 1. Create the trade 3 database Open a Windows command prompt Navigate to directory c: \LabFiles60\TivoliPerfViewer c: Command Prompt Microsoft Windows 2000 [Version 5.20.21951 <C)Copyright 1985-2000 Microsoft Corp C:\>cd labfiles60 C: \LabFiles6o>cd t C:\LabFiles68\TivoliPerfUiewer>- Run the setup TradeDB command. setupTradeDB is a bat file that will create DB2 tables and populate the tables with data s Command Prompt C: \LabFiles60\TivoliPerfUiewer>setupTradedb Press the Enter key when prompted to press any key to continue Wait for completion of the setup Trade DB command Proof of Technology Lab o7-Performance tools Product Introduction+ Exploration(PI+E Page 3 of 29
© Copyright IBM Corporation 2005. All rights reserved. Proof of Technology Lab 07 – Performance Tools Product Introduction + Exploration (PI+E) Page 3 of 29 Part 1: Environment Setup In this part you will setup the lab environment by creating a Cloudscape database, then starting the WebSphere managed server processes. The Cloudscape database will be used by the Trade benchmark and sample performance application. Create and Load the Trade Data Base ____ 1. Create the Trade3 database. Open a Windows command prompt. Navigate to directory c:\LabFiles60\TivoliPerfViewer. Run the setupTradeDB command. setupTradeDB is a .bat file that will create DB2 tables and populate the tables with data. Press the Enter key when prompted to “press any key to continue . . .”. Wait for completion of the setupTradeDB command
Copyright IBM Corporation 2005. All rights reserved. Command Prompt 兴关 CREATING TRADEDB DATABASE at file creates Traded database erfUiewer\databases\TR do not wish for thi Press any key to continue Creating the TRADEDB database Database does not exist nd initializing TRADEDB database dedb database created C:\LabFiles6gtivoliPerfUiewer> Establish the Web Sphere Environment 2. Ensure that all managed processes(dmgr, node agent, and server 1)are started Open a command prompt and navigate to c: WebSphere App Server\profiles\dmgr bin c:Command Prompt C:\WebSphere \AppServerprofiles\dmgr\bin>- 3. Check the status of the Deployment Manager(dmgr) process ab 07-Performance tools Page 4 of 29
© Copyright IBM Corporation 2005. All rights reserved. Lab 07 – Performance Tools Page 4 of 29 Establish the WebSphere Environment ____ 2. Ensure that all managed processes (dmgr, node agent, and server1) are started. Open a command prompt and navigate to c:\WebSphere\AppServer\profiles\dmgr\bin ____ 3. Check the status of the Deployment Manager (dmgr) process
WebSphere software- Copyright IBM Corporation 2005. All rights reserved. Issue the command server -al Command Prompt 回 C: \WebSphere\AppServer\profiles\dmgr\bin >ser atus -all ADMU01161: Tool information is being logged in filc ADMU01281: Starting tool wide=\ gr\logs\serverStatus lo DMU0503I: Retrieving server status for all servers ADMU9505I: Servers for n configuration ADMU05 0I name ADMU0509I: The Deplo yment Manager " dmgr"cannot be reached. It appears c:、 We sPhere \AppServer、 profiles \dmgr\bin 4. Start the Deployment Manager if it has a stopped status. Otherwise, skip this step Issue the command startManager c Command Prompl x ADMU0506I: Server name: dmgr ADMU0509I: The Deplo yment Manager "dmgr"cannot be reached. It appears C: \WebSphere \Ap er\ files \dmgr\bin>startmanager eing logged in file rofiles\dmgr、 logs \dmgr、 start Server ADMU01281: Startin dmgr profile ADMU31001 ADMU32001: Server launched. Waiting for initialization status ADMU3000I: Server dmgr business: process id is 2060 C: \We bSphere \AppServer\profiles \dmgr\bin> 5. Navigate to the profile 1 \bin directory. Issue the command cd WWebSpherelAppServerlprofileslprofile1\bin Command Prompt C: \WebSphere\AppServer\profiles\profile\bin). 6. Check the status of managed processes for profile 1 Proof of Technology Lab o7-Performance tools Product Introduction+ Exploration(PI+E Page 5 of 29
© Copyright IBM Corporation 2005. All rights reserved. Proof of Technology Lab 07 – Performance Tools Product Introduction + Exploration (PI+E) Page 5 of 29 Issue the command serverStatus –all. ____ 4. Start the Deployment Manager if it has a stopped status. Otherwise, skip this step. Issue the command startManager. ____ 5. Navigate to the profile1\bin directory. Issue the command cd \WebSphere\AppServer\profiles\profile1\bin ____ 6. Check the status of managed processes for profile1