prokni
asked on
too many processes running on the server
Our server limits out the number of processes it can handle.
By default it was 100 and I changed it to the Max 256.(I am not considering to recompile apache and increase the max 256. 256 is hard coded in the kernel)
The thing is I am not sure if all the processes are real. Ther are not zomby for sure. Base on log analyzer report, I am guessing that we have 60 or 70 users on the site in the same time. but number of http processes can reach to 259 and apache web server stops responding to any new request at the moment.
If I run apachctl graceful in this time, generaly 10 processes remain and rest of them will be gone.
Any idea how I can handle this problem. How can i know if those processes are real.
Any solution?
Thanks in advance
By default it was 100 and I changed it to the Max 256.(I am not considering to recompile apache and increase the max 256. 256 is hard coded in the kernel)
The thing is I am not sure if all the processes are real. Ther are not zomby for sure. Base on log analyzer report, I am guessing that we have 60 or 70 users on the site in the same time. but number of http processes can reach to 259 and apache web server stops responding to any new request at the moment.
If I run apachctl graceful in this time, generaly 10 processes remain and rest of them will be gone.
Any idea how I can handle this problem. How can i know if those processes are real.
Any solution?
Thanks in advance
I ran into this problem before, the way I solved it was by disabling some of my cgi's and restarting apache until the processes matched the number of users. Check your /var/log/http/error.log and access.log for any strange activities.
ASKER
I'll check it out. Please do not lock the question by proposing the answer. i accpet
your comment if it wokrs. Let other expert put their comment in the same time.
Please give me more detail how do you know that the processes match the number of
users.
What do you mean by disabling your cgi? Just rmove it fomr the server?
your comment if it wokrs. Let other expert put their comment in the same time.
Please give me more detail how do you know that the processes match the number of
users.
What do you mean by disabling your cgi? Just rmove it fomr the server?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How long does the connections saty active? How can i reduce the tiem out?
I have looked at http.conf already. Can you tel me which option is the best choice to change?Timeout 300 or MaxKeepAliveRequests 100 or KeepAliveTimeout 15 without killing the performance.
I have looked at http.conf already. Can you tel me which option is the best choice to change?Timeout 300 or MaxKeepAliveRequests 100 or KeepAliveTimeout 15 without killing the performance.
prokni,
Personally I would say that there is not "exact" figure to use. The default setting is considered to be the "comfortable" setting to be used.
You might want to experiment by lowering KeepAliveTimeOut, and MaxKeepAliveRequest, and Timeout.
Bottom line is we are looking way to reduce the possibilities of Apache hitting it's MaxConnection limit (256).
Other than that, I would belive changing the maxconnection limit and recompile apache (which is the last option that you already said).
Personally I would say that there is not "exact" figure to use. The default setting is considered to be the "comfortable" setting to be used.
You might want to experiment by lowering KeepAliveTimeOut, and MaxKeepAliveRequest, and Timeout.
Bottom line is we are looking way to reduce the possibilities of Apache hitting it's MaxConnection limit (256).
Other than that, I would belive changing the maxconnection limit and recompile apache (which is the last option that you already said).
Prokni,
thanks for the grade :)
cheers.
thanks for the grade :)
cheers.