Help - Search - Members - Calendar
Full Version: Optimizing Apache for performance on FreeBSd !!
The Planet Forums > Operating Systems > BSD
atulard
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
cperciva
What sort of hardware is this? What version of FreeBSD are you running? What sort of traffic are you serving? How much traffic are you serving?

I'd start by increasing MinSpareServers and MaxSpareServers to 20 and 60 respectively, with your current numbers you're wasting cycles on forking. Beyond that, I'd need to know some details (see questions above).
art
show
apachectl status

and attach full httpd.conf
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.