Skip to Content
Web Performance Tuning, 2nd Edition
book

Web Performance Tuning, 2nd Edition

by Patrick Killelea
March 2002
Intermediate to advanced
482 pages
16h 11m
English
O'Reilly Media, Inc.
Content preview from Web Performance Tuning, 2nd Edition

Chapter 5. Load Testing

Load testing your web site is useful for figuring out how much capacity it can handle, but it is more important for shaking out bugs that occur only under heavy load, especially subtle threading issues that can cause deadlock and crash the site. Once the bugs are mostly gone, you should be able to get a nice logarithmic curve that shows throughput level off with increasing load, or, a nice exponential curve that shows that latency goes through the roof as load goes beyond your site’s limits.

Load Test Preparation

A good load test requires a lot of difficult preparation:

  • Test user accounts need to be set up

  • Database tables and content need to be comparable to your production system

  • System parameters between the test machines and production machines have to be synchronized

  • A realistic set of URLs should be collected for testing

  • Client connection speeds should be emulated

Log files give you a good idea of what URLs you are being asked for, but it is usually too much work to create a comprehensive and realistic test starting from log files. In fact, there is not enough data in the log files to reproduce requests because the HTTP POST input data is not recorded in log files, nor is any HTTP header information. Also, note that log file entries record the time that responses were finished, rather than the time requests arrived. This means that log files do not reflect the time distribution of requests to your site.

Emulating the distribution of client connection speeds ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Web Performance Tuning

Web Performance Tuning

Patrick Killelea
Web performance basics

Web performance basics

Maximiliano Firtman
Special Edition Using® Crystal Reports® 10

Special Edition Using® Crystal Reports® 10

Neil FitzGerald, Ryan Marples, Naisan Geula, Bob Coates, James Edkins, Michael Voloshko, Joe Estes, Kathryn Hunt, Steve Lucas, Roger Sanborn

Publisher Resources

ISBN: 059600172XErrata Page