Apache performance server reached MaxClients setting
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apache performance server reached MaxClients setting
I have a plesk (7.5.2 box) running with Redhat 9. This machine (Pentium 4 1024 mhz) was running fine for quite a long time. This week one of my sites became very populair and this gives me some troubles. The apache server stops to work and I need to restart it within every 10 minutes. Then apache is up and after 10 minutes its down again. The server log said this:
[error] server reached MaxClients setting, consider raising the MaxClients setting
So I changed the MaxClients from 100 to 256.
This will increase the dying time from 10 minutes till 20 minutes but does not solve the problem. When I check the apache status I see this:
I have The same problem:
My server is FILE server only (Xeon, RAM 2G, 200GB HDD, Apache/2.0.52), with many internet client DOWNLOAD files (not upload, have not Database).
The number of httpd process is incresed very quickly, and reached MaxClients quickly, each 3 minute, i count httpd process, as folowing:
2008-06-22 10:15:02-RESTART HTTPD service:
2008-06-22 10:18:02-COUNT=63
2008-06-22 10:21:01-COUNT=140
2008-06-22 10:24:02-COUNT=173
2008-06-22 10:27:02-COUNT=328
2008-06-22 10:30:02-COUNT=434
2008-06-22 10:33:01-COUNT=561
2008-06-22 10:36:02-COUNT=630
2008-06-22 10:39:01-COUNT=751
2008-06-22 10:42:01-COUNT=877
2008-06-22 10:45:01-COUNT=999
...
And this problem repeats and repeats...
My server installed Apache/2.0.52, with settings:
-----
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 16
MinSpareServers 3
MaxSpareServers 5
ServerLimit 1000
MaxClients 1000
MaxRequestsPerChild 1000
</IfModule>
------
I've change some parameter, ex, decrease MaxRequestsPerChild (2000-1000->100...), KeepAlive Off ->On... and other changes... But problem still happens!
Have you got experience in this problem?
Thanks very much!
Before you try to troubleshoot the issue at apache level, I suggest you to go with another NIC of good make and make apache listen on both NICs for providing availability.I assume that this will solve the problem to 35-50% .
Before you try to troubleshoot the issue at apache level, I suggest you to go with another NIC of good make and make apache listen on both NICs for providing availability.I assume that this will solve the problem to 35-50% .
mahen
Thanks!
And I wonder if this solution can resolve problem : ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.