Beruflich Dokumente
Kultur Dokumente
06_PeformanceAnalysis.ppt Page 1 of 29
Web Site Performance
Start-to-Finish Approach
• Performance Validation
06_PeformanceAnalysis.ppt Page 2 of 29
Why Invest in Performance?
What’s the Worst That Could Happen?
06_PeformanceAnalysis.ppt Page 3 of 29
Web Site Performance
The Virtual City
• Web applications
• Support hundreds or thousands of concurrent users
• Virtual cities of people sharing resources simultaneously
• Yet unaware of each other
06_PeformanceAnalysis.ppt Page 4 of 29
Web Site Performance
What does the Web site need to do well?
06_PeformanceAnalysis.ppt Page 5 of 29
Web Site Performance
Mythical “One Size Fits All” Test
• Throughput Test
• Drive the system to 100% CPU utilization
• Measure maximum throughput achieved
• Pros
• Requires few virtual user licenses
• Models maximum throughput well (page rate)
• Cons
• Does not model logged in user memory pressure well
• HttpSessions, LTPA tokens, etc.
• Difficult to determine potential “real users” supported
• Results
• Over-estimates capacity requirements
• Inappropriate system tuning
06_PeformanceAnalysis.ppt Page 6 of 29
Performance Test Planning
What are the Priorities?
• Brokerage Sites
• High throughput
• Competitive response time requirements
• Many logged-in users
• B2B
• Low throughput
• Generous response times
• Many logged-in users
06_PeformanceAnalysis.ppt Page 7 of 29
Performance Test Planning
Portals behave differently too…
• B2E Portal
• Employees logged in all day
• Login burst in the mornings
• B2C Portal
• User visits usually last < 30 minutes
• Traffic bursts during morning and lunchtime
• Users task-oriented
06_PeformanceAnalysis.ppt Page 8 of 29
Web Site Performance
Defining “users”
Potential users
Active users
Current requestors
No impact
Memory only
06_PeformanceAnalysis.ppt Page 9 of 29
Web Site Performance
Plan for Peak
100
80
Requests/Second
60
40
Peak
20
0
Time
Average
10
06_PeformanceAnalysis.ppt Page 10 of 29
Web Site Performance
Request bursts
11
06_PeformanceAnalysis.ppt Page 11 of 29
Web Site Key Metrics
Consistent Terminology
12
06_PeformanceAnalysis.ppt Page 12 of 29
Web Site Key Metrics
Network Capacity
13
06_PeformanceAnalysis.ppt Page 13 of 29
Web Site Performance
Start-to-Finish Approach
• Performance Validation
14
06_PeformanceAnalysis.ppt Page 14 of 29
Performance Validation
Develop Realistic Test Scenarios
15
06_PeformanceAnalysis.ppt Page 15 of 29
Performance Validation
Develop a Realistic Test Mix
16
06_PeformanceAnalysis.ppt Page 16 of 29
Performance Validation
Selecting a test tool
17
06_PeformanceAnalysis.ppt Page 17 of 29
Performance Validation
Some criteria…
18
06_PeformanceAnalysis.ppt Page 18 of 29
Performance Validation
Writing the Test Scripts
19
06_PeformanceAnalysis.ppt Page 19 of 29
Performance Validation
Think Time
• Think time
• Adding think time better simulates actual users
• May require more virtual users/client hardware
20
06_PeformanceAnalysis.ppt Page 20 of 29
Performance Validation
Resources
21
06_PeformanceAnalysis.ppt Page 21 of 29
Performance Validation
Isolating the Test Subnet
% Network Busy
6:30 am
• Don’t share networks
• No repeatability
• Difficult diagnosis
• Difficult monitoring
% Network Busy
• Actual network uses
• System back-ups
• On-line game servers
• After-hours trading
22
06_PeformanceAnalysis.ppt Page 22 of 29
Performance Validation
Test Topology
DMZ
Database
HTTP Other
Application Systems
Server
Server
Router/
Load
Balancer
Legacy System
HTTP
Server Application
Server
23
06_PeformanceAnalysis.ppt Page 23 of 29
Performance Validation
Building the Performance Team
• Discuss test plans with all members early in the process Host Admin
Network Admin
System Admin DBA
24
06_PeformanceAnalysis.ppt Page 24 of 29
Web Site Performance
Start-to-Finish Approach
25
06_PeformanceAnalysis.ppt Page 25 of 29
Analyzing Performance Data
Capture the Right Data
26
06_PeformanceAnalysis.ppt Page 26 of 29
Analyzing Performance Data
Good Capture Practices
Users
• Don’t rely on data from a single run
• Repeat tests
• Investigate large variances between runs Time
27
06_PeformanceAnalysis.ppt Page 27 of 29
Data Analysis
Where’s the Bottleneck?
28
06_PeformanceAnalysis.ppt Page 28 of 29
Final Notes
29
06_PeformanceAnalysis.ppt Page 29 of 29