Apache performance tuning
Here is my httpd.conf setting for Linux Dual CPU 1000 MHz RAM 512 MHz
MinSpareServers 100
MaxSpareServers 200
StartServers 100
MaxClients 512
MaxRequestsPerChild 15
=== top result ===
9:50am up 11 days, 21:51, 1 user, load average: 0.19, 0.24, 0.26
256 processes: 252 sleeping, 1 running, 3 zombie, 0 stopped
CPU0 states: 0.0% user, 7.0% system, 0.0% nice, 92.0% idle
CPU1 states: 2.0% user, 0.0% system, 0.0% nice, 97.0% idle
Mem: 512372K av, 487948K used, 24424K free, 712K shrd, 7480K buff
Swap: 787144K av, 211512K used, 575632K free 93640K cached
=== server-status ===
Server uptime: 4 hours 51 minutes 28 seconds
Total accesses: 96905 - Total Traffic: 419.2 MB
CPU Usage: u14.83 s5.75 cu11.96 cs4.16 - .21% CPU load
5.54 requests/sec - 24.5 kB/second - 4535 B/request
52 requests currently being processed, 101 idle servers
Everything is looking good but I don't know what is the best value of MaxRequestsPerChild since before I changed from 150 to 15. The value of requests/sec is ~20 requests/sec and kB/second is ~140 kB/second but CPU load decrease from ~30% to ~0.5%
I want to know if small value of requests/sec and requests/sec will effect performance of server or not.
How much of MaxRequestsPerChild on your Apache?
I would like to read your opinion
Jimmy