Optimizing Apache for performance on FreeBSd !!
Hello,
My clients are complaing for slow servers .There is no network speed problem or mysql problem as I already optimizade mysql .. But still server is running slow.. Here are some of my parameters: Check this: server# ps -aux | grep -c http 231 server# ps -aux | grep -c mysql 2 server# top d 1 last pid: 61284; load averages: 0.41, 0.45, 0.39 up 50+16:19:21 08:03:55 309 processes: 1 running, 308 sleeping CPU states: 18.8% user, 0.0% nice, 11.5% system, 1.0% interrupt, 68.8% idle Mem: 319M Active, 165M Inact, 451M Wired, 35M Cache, 111M Buf, 16M Free Swap: 2048M Total, 12M Used, 2036M Free And in httpd.conf file I have: Keepalive on MaxKeepAliveRequest 500 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 230 MaxRequestsPerChild 0 How should I tune this? Thank you |
Try to adjust the MinSpareServers and MaxSpareServers to appropriate values that minimizing the process forking and existing. You'll need to watch the number of similtaneous request to get these values. Have you investigated why Apache is slow? It could be something like slow hostname looks or disk reads for static content.
|
All times are GMT -5. The time now is 09:58 PM. |