O'Reilly logo

Web Performance Tuning, 2nd Edition by Patrick Killelea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Questions to Ask

The first step in capacity planning is to clarify your requirements and get them down on paper. Here are some questions that will help you pin down what you need.

How Many HTTP Operations per Unit Time Do You Expect?

Unlike the client/server paradigm in which the most important sizing parameter is the number of concurrent users, the relevant parameter for web servers is HTTP operations per second, also referred to as hits per second. Few web sites receive more than 25 hits per second.

Web servers do not maintain a dedicated connection to the browser because HTTP 1.0 is a connectionless protocol. The user connects, requests a document, receives it, and disconnects. HTTP was implemented in this way to keep the protocol simple, to conserve bandwidth, and to allow a web page to consist of components from multiple servers. Even though the user has the impression that he or she has been connected during an entire session of reading pages from a web site, from the server’s point of view, the user disappears after each request and reappears only when requesting a new page and associated content (such as images).

This loading characteristic of web servers is changing because HTTP 1.1 does allow the user to remain connected for more than one request. Although most hits are very short in duration, the use of HTTP 1.1 persistent connections can make the number of simultaneous connections relevant to your site. Also, Java applets sometimes open a connection back to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required