Posted by maketop, 10-15-2009, 04:01 PM | I setup 2 vpses from sliceshost for my customer. both are 2G memory. one is for magento on apache2 and another is for mysql. MySQL works great, but apache have big problem.
my customer started his google adwords, after 5 min, the memory and swap had almost been used over. I have to let them stop google adwords, then restart apache. everything is back again.
here is my apache configure
Timeout 60
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 5
ServerLimit 500
StartServers 8
MinSpareServers 15
MaxSpareServers 20
MaxClients 300
MaxRequestsPerChild 4000
error log say
[Thu Oct 15 19:00:17 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Thu Oct 15 19:01:10 2009] [warn] child process 8302 still did not exit, sending a SIGTERM
[Thu Oct 15 19:01:10 2009] [warn] child process 8156 still did not exit, sending a SIGTERM
...
[Thu Oct 15 19:01:16 2009] [error] child process 8783 still did not exit, sending a SIGKILL
[Thu Oct 15 19:01:16 2009] [error] child process 8784 still did not exit, sending a SIGKILL
[Thu Oct 15 19:01:16 2009] [error] child process 8785 still did not exit, sending a SIGKILL
....
[Thu Oct 15 19:01:17 2009] [error] could not make child process 8302 exit, attempting to continue anyway
[Thu Oct 15 19:01:17 2009] [error] could not make child process 8156 exit, attempting to continue anyway
[Thu Oct 15 19:01:17 2009] [error] could not make child process 8338 exit, attempting to continue anyway
it is about 200-300 visit one time.
I'd like to know if I need upgrade more memory or my apache configure have problem.
I am looking forward to your advise. thanks!
|
Posted by jijo, 10-15-2009, 04:46 PM | Hello,
As per the error log it looks like you have reached the MaxClients value set. Try increasing it in apache configuration file.
Last edited by Mike V; 10-15-2009 at 05:53 PM.
|
Posted by Gary Brahmi, 10-16-2009, 10:17 PM | I don't see a reason for apache to exceed the maxclient limit of 300 unless the server is hosting a fairly or super busy site.
Before you consider to raise the MaxClient limit, consider verifying the connections for apache.
|
Posted by UNIXy, 10-16-2009, 10:52 PM | Interesting. Perhaps it's reaching the MaxClients limit because Apache isn't somehow able to reap/recycle the children per the message. Did you build apache yourself?
Regards
Joe
|
Posted by maketop, 10-17-2009, 12:46 AM | My server was back. I read this article http://virtualthreads.blogspot.com/2...he-part-1.html and closed KeepAlive.
for a busy server, I think keepalive should be off or set KeepAliveTimeout to a low value(1 or 2) when keepalive is on.
|
|
Add to Favourites
Print this Article |