less13 3 e_loadmodule_3

19
Copyright © 2008, Oracle. All rights reserved. ServerStats Introduction to Oracle Application Testing Suite: e-Load

Upload: suresh-mishra

Post on 13-Jun-2015

267 views

Category:

Documents


0 download

DESCRIPTION

This is part of R12 Testing Suite for Oracle Applications or E-Business suite.

TRANSCRIPT

Page 1: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.

ServerStats

Introduction to Oracle Application Testing Suite: e-Load

Page 2: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 2

ServerStats

Server performance monitoring tool

Collects data from various tiers

Real-time displays

Charting capabilities and alarm setup

Server data saved to e-Reporter

Correlated with load test results from e-Load for bottleneck analysis

Add new ServerStats monitors to a running load test session.

A URL Data Source is available for collecting performance metrics that are accessible via a Web page (that is, Apache performance statistics).

The Metrics interface allows you to enable multiple metrics to be created at once.

Page 3: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 3

Back-End System Monitoring

System Architecture Map

The Internet

External Provider

Data

Web Server 1

Load Balancer

Web Server 2

Application Server 1

Application Server 2

Application Server 3

DataBase Server 1

DataBase Server 2

Firewall

Data

Data

Legacy System

T1 Line1.44 Mb/sec

Local LAN is 100Mb/sec full duplex switched

Page 4: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 4

What Systems to Monitor

Look at a system architecture map, determine what systems are contained within the web application.

Talk to developers or system architects to learn about the various pieces of the system and how they interact.

Also, determine who will monitor and setup these counters. Individuals responsible for monitoring might be a system admin, DBA or QA engineer for example.

Page 5: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 5

Useful Counters on Web Server

CPU Usage

Memory Usage

Hits/pages per second

Web process system utilization

Current connections

Disk swapping

Disk utilization

Page 6: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 6

Useful Counters on Application Servers

CPU Usage

Memory Usage

Hits/pages per second

Request queue

Application Server process system utilization

Queue wait time

Disk swapping

Disk utilization

Page 7: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 7

Useful Counters on Database Servers

CPU Usage

Memory Usage

Database process system utilization

Table scans

Query wait times

Selects/inserts/deletes/updates per second

SQL recompilations

Table locks

Index hits (%)

Page 8: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 8

Run-Time ServerStats Configuration

ServerStats configuration is located under the “Set up autopilot” tab

To Create new or edit existing ServerStats Monitors click “Edit Configurations” or select from the ServerStats menu.

Page 9: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 9

Add New ServerStats Configuration

ServerStats > Configurations

Page 10: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 10

ServerStats Configurations

Click the “New” button to add a new configuration

Use the Edit button to modify an existing configuration

Use the Delete button to delete and existing configuration

Click the “New” button under monitors after you create a configuration

Page 11: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 11

Add New Monitor

Click on “Add a New Monitor”

Select monitor to add

• Data Sources

• Metrics

• Metric Profiles

Page 12: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 12

Configure Data Sources

Page 13: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 13

Configure Data SourcesClick edit and enter a user who has appropriate access to the system.

Page 14: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 14

Configure Data Sources

Click next to discover.

Select the desired monitor as shown. In this example, we choose memory and CPU objects.

Page 15: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 15

Configure Data Sources

After clicking finish, the following screen is shown

Page 16: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 16

Metrics

The process for configuring a metric (individual monitor) is the similar to that of the data source.

Metric is done one by one and automatically selects an appropriate data source.

Page 17: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 17

Metric Profiles

Metric Profiles are used to configure several monitors in one step.

Commonly used metrics are preconfigured in the profiles

Data sources are automatically selected when creating metric profiles.

Page 18: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 18

Select ServerStats Configuration

Before starting a test, select the appropriate ServerStats configuration to use.

Monitors for that configuration will be displayed in the monitors window

Page 19: Less13 3 e_loadmodule_3

Copyright © 2008, Oracle. All rights reserved.13 - 19

Exercise 3

Set up server stats to collect the following information.

If possible, set this up to monitor the web server, otherwise just setup to monitor the e-Load client machine executing the VU’s

Percent CPU and Percent Memory Utilization

Web Server Total Requests/Sec (if available)

Application Server Queued Requests (if available)

Database Server User Connections (if available)

Rerun the load test that you setup in Workshop 1 but this time collect the ServerStats data