38
Copyright © 2003 Global NetWatch, Inc. Global NetWatch Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Embed Size (px)

Citation preview

Page 1: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Factors Affecting Web Performance

Getting Maximum Performance Out Of Your Web Server

Page 2: Global NetWatch Copyright © 2003 Global NetWatch, Inc. 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

Page 3: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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.

Page 4: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Key Aspects of Web Performance

Network Web Server / Software Online Applications

Page 5: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Key Aspects of Web Performance

Page 6: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Checking Network Performance

Network Latency TCP/IP Response Times Overall Throughput

Page 7: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Checking Network Performance

Common Network Problems– Poor Bandwidth– Network Infrastructure Problems– Hardware Failures– Circuit Failure

Page 8: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Checking Network Performance

Page 9: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 10: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Checking Network Performance

CSS LoadBalancer

WWW2

WWW1

APP2

APP1

StrongFirewall

WeakFirewall

Page 11: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 12: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Checking Network Latency

Page 13: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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)

Page 14: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 15: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 16: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 17: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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…)

Page 18: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 19: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 20: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 21: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Web Server / Software

Operating Systems and Software

– UNIX vs. Windows

– DDOS Attacks and Vulnerabilities

Page 22: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 23: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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.

Page 24: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 25: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 26: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 27: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Online Applications

Content Impact– Lots of Little Images– Offsite Content– Akamaized Content

Page 28: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 29: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Measuring Round Trip Times

Round Trip Times– Forms Tactical Analysis

Remote User

Page 30: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Measuring Round Trip Times

Step Time Analysis– Looking at each step for latencies.

Page 31: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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.

Page 32: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 33: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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/

Page 34: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Case Study: Google

http://www.google.com/press/query.html

Page 35: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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.

Page 36: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

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

Page 37: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Conclusion

Comprehensive Data Collection Is Critical For Detecting and Removing

Bottlenecks

Page 38: Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server

Copyright © 2003 Global NetWatch, Inc.

Global NetWatch

Questions?

Please Feel Free To Ask Questions