Upload
brett-lynch
View
216
Download
0
Embed Size (px)
Citation preview
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Factors Affecting Web Performance
Getting Maximum Performance Out Of Your Web Server
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Outline
Introduction Key Aspects of Web Performance Checking Network Performance Configuring Web Server Infrastructure for
Performance Online Application Performance
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Introduction
Most web servers are not performing as fast as they could. The factors affecting this performance can be complex, but they fall into a limited number of categories.
Measuring performance is critical in determining where, and how, bottlenecks can be lessened or removed.
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Key Aspects of Web Performance
Network Web Server / Software Online Applications
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Key Aspects of Web Performance
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking Network Performance
Network Latency TCP/IP Response Times Overall Throughput
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking Network Performance
Common Network Problems– Poor Bandwidth– Network Infrastructure Problems– Hardware Failures– Circuit Failure
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking Network Performance
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking Network Performance
Response Time Histogram
0
200
400
600
800
1000
1200
1400
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55
Time (Microseconds)
Ins
tan
ce
s
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking Network Performance
CSS LoadBalancer
WWW2
WWW1
APP2
APP1
StrongFirewall
WeakFirewall
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking Network Latency
ICMP Ping Packets– Sending Data At Variable Sizes– Standard ICMP PING is 64 Bytes
Reveals Differentials in Network Performance
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking Network Latency
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking TCP/IP Response Times
How many hits can different sizes of bandwidth take?
Using a simple load testing program, how many times can a page be downloaded?– 40K Page Size– Originating From Multiple Internet Locations– Sampling From Other High Speed Sites (DS3 and
Above)
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking TCP/IP Response Times
Bandwidth Time Per Hit Hits Per Hour
DSL 5.072 seconds 710
Cable Modem 0.945 seconds 5900
High Speed DS3 0.232 seconds 15500
Geo Redundant 0.083 seconds 61000
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking TCP/IP Response Times
Hits Per Hour
0
10000
20000
30000
40000
50000
60000
70000
DSL Cable Modem High SpeedDS3
Geo Redundant
Hit
s P
er
Ho
ur
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Checking Network Throughput
Rank AliasServer
Response Success %Total Page
SizeServer
ThroughputServerRating
1 Apple Computer 0.868 99.82% 17.4785 KB 200.040 KB/sec 1.7634
2 DELL 0.931 99.63% 28.6699 KB 301.788 KB/sec 1.8852
3 Sun Microsystems 0.946 99.08% 12.3281 KB 124.526 KB/sec 2.0834
4 Microsoft 1.196 99.91% 40.3291 KB 313.845 KB/sec 2.4596
5 Hewlett Packard 1.346 99.91% 40.4297 KB 268.412 KB/sec 2.762
6 IBM Corporation 1.672 99.72% 25.6836 KB 137.437 KB/sec 3.6235
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Improving Network Performance
Multiple Redundant Datacenters Can Deliver Significantly More Pages
High Speed Burstable Bandwidth Can Keep More Pages In Flight
Local Network Settings Can Impact Performance (More to come on this…)
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Web Server / Software
Factors Affecting Web Server Performance– Web Server Configuration– Server Hardware– Operating Systems and Software
DDOS and Other Internet Attacks
– Content Accelerators
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Web Server / Software
Web Server Software Configuration– High Cost Settings
Reverse DNS Lookup
– Available Processes / Threads More Threads Allow The Server To Take More
Simultaneous Hits Increasing Threads Will Require More Processor Power
And Memory
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Web Server Hardware
Web Server Hardware Configuration– Disk Drives– Memory– Processor Speed
With the abundance of Cheap Hardware Available Today, Maxing Out Web Servers Is Pretty Easy
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Web Server / Software
Operating Systems and Software
– UNIX vs. Windows
– DDOS Attacks and Vulnerabilities
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Web Server / Software
Cumulative Web PerformanceUNIX vs. Windows
0
0.5
1
1.5
2
2.5
3
Date
Res
po
nse
Tim
e (S
eco
nd
s)
UNIX
Window s
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Web Server / Software
Content Accelerators– Content Accelerators Handle the Inbound TCP/IP
Request for the Web Server– Content is Also Cached For Faster Delivery– Usually Only Affects Static Content
In some cases, content accelerators can actually slow down access to web content.
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Online Applications
Modern Web Servers Can Serve Data Very Effectively
Online Applications Can Create The Most Significant Bottlenecks
Data Flow Can Be Impacted By– Internal Server Speed– Internal (Enterprise) Network– External Impacts
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Online Applications
Two Biggest Factors in Online Applications:– Response From Internal Data Sources– The Size of the Content Being Produced
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Online Applications
Content Sizes– Standard HTML (Home Pages)
Average Page is 20 K in Size
– Online Applications Average Page is 27K in Size Average Image is 2.9K in Size The Average Page References Over 22 Objects
– Total Size (Per Page) Is Over 90K Of Data
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Online Applications
Content Impact– Lots of Little Images– Offsite Content– Akamaized Content
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Online Application Dynamic Impact
Bandwidth Time Per Hit Hits Per Hour
Geo Redundant 0.083 seconds 61000
Geo Redundant w/ Dynamic Data
0.254 seconds 19700
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Measuring Round Trip Times
Round Trip Times– Forms Tactical Analysis
Remote User
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Measuring Round Trip Times
Step Time Analysis– Looking at each step for latencies.
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Measuring Round Trip Times
Hidden Costs of Online Applications– Header Data Increases Data Transfer– Sizes Can Be 200 Bytes Per Request– This can add significant bandwidth overhead for
high traffic web sites.
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
External Impacts
Online Application Latency and Error Rate
0
0.5
1
1.5
2
2.5
3
Date
Res
po
nse
Tim
e (S
eco
nd
s)
0.000%
1.000%
2.000%
3.000%
4.000%
5.000%
6.000%
7.000%
Err
or
Rat
e (%
)
Error Rate
Online Application Response Time
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Network Revisited
Internal Networks Seriously Affect Online Application Performance– Consider Your BDP– Consider Your Internal MTU
Some Useful Web Sites:– http://www.web100.org– http://www.psc.edu/networking/perf_tune.html– http://www.psc.edu/~mathis/MTU/
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Case Study: Google
http://www.google.com/press/query.html
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Case Study: Google
Massive Redundancy Large Scale Distributed Database System Simple Hardware With High Speed Internal Network
Management Nightmare!– But they have solved that, too.
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Conclusion
Performance Can Be Derived From Every Layer of the Web Infrastructure
Time Spent Collecting and Analyzing Data Can Pay Large Dividends
Ultimately Web Customers Experience a Better Online Service
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Conclusion
Comprehensive Data Collection Is Critical For Detecting and Removing
Bottlenecks
Copyright © 2003 Global NetWatch, Inc.
Global NetWatch
Questions?
Please Feel Free To Ask Questions