Yet another question on httpd processes
Posted: Wed Nov 30, 2005 1:39 am
Hi,
I have an apache 2 server that's being hammered with traffic.
I have increased hard_server_limit from 256 and 1024 and recompiled apache.
MaxClients is set to 512.
However, when I do this:
ps -elf | grep httpd | wc -l
I always get 261 processes.
The server is loaded with 4 GB ram and due to heavy traffic, doesn't seem responsive enough.
I have several questions:
1. Will it be beneficial to have more httpd processes to serve more users concurrently, or will it suffice to just increase MaxClients and remain with 261 http processes
2. If above answer is affirmative, how can I increase number of processes beyond 261 (which, I assume, is 256 + elbow of 5)
3. If my server gets 30,000+ unique sessions a day (note that these are not concurrent sesssion), each on average being 10 minutes, what values should I assign to MinSpareServers and MaxSpareServers for optimal performance?
I am, of course, getting more servers soon.
Any learned advice would be appreciated - thanks!
I have an apache 2 server that's being hammered with traffic.
I have increased hard_server_limit from 256 and 1024 and recompiled apache.
MaxClients is set to 512.
However, when I do this:
ps -elf | grep httpd | wc -l
I always get 261 processes.
The server is loaded with 4 GB ram and due to heavy traffic, doesn't seem responsive enough.
I have several questions:
1. Will it be beneficial to have more httpd processes to serve more users concurrently, or will it suffice to just increase MaxClients and remain with 261 http processes
2. If above answer is affirmative, how can I increase number of processes beyond 261 (which, I assume, is 256 + elbow of 5)
3. If my server gets 30,000+ unique sessions a day (note that these are not concurrent sesssion), each on average being 10 minutes, what values should I assign to MinSpareServers and MaxSpareServers for optimal performance?
I am, of course, getting more servers soon.
Any learned advice would be appreciated - thanks!