How to optimize Apache and PHP for performance
Tuning LAMP systems, Part 1: Understanding the LAMP
Tuning LAMP systems, Part 2: Optimizing Apache and PHP
Tuning LAMP systems, Part 3: Tuning your MySQL server
Apache Performance Tuning
Configuring Apache for Maximum Performance
ApacheBench (ab) is a very handy webserver benchmarking tool which can be run from command line. The usage is:
Usage: ab [options] [http[s]://]hostname[:port]/path
Handy flags
The following example will run the test for 500 requests in total with 10 current requests to the server.
ab -n 500 -c 10 http://yourdomain.com/
An alternative to Apache Benchmark is httperf. Httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance.
/usr/bin/httperf --server=example.com --port=80 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=10 --num-calls=20