Download SuSE Linux Integration Guide for IBM for xSeries and Netfinity

Transcript
• Tune KeepAliveTimeout starting with 3 ranging to 30 per content and
connection types.
• Apache (and the IBM HTTP Server as well) use multiple processes to
handle individual requests. Tune StartServers starting with 64 increasing
in steps of 32 until performance drops off. Tune MaxClients starting with
the value of StartServers. Note: Scaling performance can fall off
dramatically if Max Clients is too large!
• For SMP systems listening on a single socket, try recompiling after
defining SINGLE_LISTEN_UNSERIALIZED_ACCEPT.
A helpful utility to benchmark your Apache server is ab. In its simplest form,
you can call it like this:
ab http://www.your-server.com/index.html
The following are ab options:
Usage: ab [options]
Options are:
-n requests
-c concurrency
-t timelimit
-p postfile
-T content-type
-v verbosity
-w
-i
-x attributes
-y attributes
-z attributes
-C attribute
-H attribute
-A attribute
-p attribute
-V
-k
-h
[http://]hostname[:port]/path
Number of requests to perform
Number of multiple requests to make
Seconds to max. wait for responses
File containg data to POST
Content-type header for POSTing
How much troubleshooting info to print
Print out results in HTML tables
Use HEAD instead of GET
String to insert as table attributes
String to insert as tr attributes
String to insert as td or th attributes
Add cookie, eg. 'Apache=1234. (repeatable)
Add Arbitrary header line, eg. 'Accept-Encoding: zop'
Inserted after all normal header lines. (repeatable)
Add Basic WWW Authentication, the attributes
are a colon separated username and password.
Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
Print version number and exit
Use HTTP KeepAlive feature
Display usage information (this message)
Figure 184. ab options
Chapter 7. Apache and IBM HTTP Servers
209