468,483 Members | 2,562 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,483 developers. It's quick & easy.

Is there any limitation for mac clients in apache server?

I want to know is there any limit for maxclients? We have set
maxClient to 6000 but when the number of threads goes beyond 2000, even though the server has 4 GB free RAM and cpu usage is below 50%, the apache server slows considerably. I want to know the reason of this behavior, Can any one help me? Is this relates to OS?our server os is Suse 11.
Nov 18 '12 #1
3 6371
1,043 Expert 1GB
There is also bandwith to consider

How did find out this?:
"the apache server slows considerably"

Do you serve simple HTML-pages? or are there also PHP-pages?

Why does the threads go to 2000? Is it because requests take so long? or because you have that many simulatanous requests?
Dec 30 '12 #2
Apache comes with 40-100 max threads. It can be increased to allow more threads to be handled at the same time.

The application should be monitored before making any changes to it. Based on the response, try to change "ThreadsPerChild" and "AcceptThreads" accordingly.

The default amount of "maximum" number of threads is usually enough; however, there can be conditions where this number may have to be increased. The threads usage can be monitored. To monitor, start the Administrative instance, select the HTTP server in question, and select Real Time Server Statistics at the bottom left.

If Idle Threads is close to or at zero, this is a problem. As long as Idle Threads is zero, no new client connections can be established. New clients will be put into a wait status until a thread becomes available. Our recommendation for this condition is to add the directive ThreadsPerChild with an increased value, approximately double the current value if it was in the range of 40 to 100, or plus 50, if it was above 100. The required minimum value (for the maximum parameter) can only be found by trial and error. If after increasing the value, the server runs smoothly, stop testing.
Jun 13 '14 #3
If you need so many threads, better have 10-20 apache servers and distribute the load.
Jun 20 '14 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by kecebong | last post: by
14 posts views Thread by Jim Carlock | last post: by
6 posts views Thread by kalyan.muppala | last post: by
5 posts views Thread by senadslipac | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.