I want to set an optimum value for MaxClient in apache for my production server. What are the parameters that I should consider while calculating this value ?
I want to set an optimum value for MaxClient in apache for my production server. What are the parameters that I should consider while calculating this value ?
Complementing @Sameer answer, I read a lot of this theme and what I do is this:
Get the Apache process average size:
As you can see in the SZ column my Apache process size is about 73 MB
Make the following formula
For Example: I have 16 GB RAM, I might leave free 2 GB for any other processes
This is what I use & my server is going great.
You have to consider that my Apache processes are a little heavy, so you could have processes about 50 MB or less.
Regards,
Your SZ is slightly the same for all Apache processes. In my case I have values between 23 and 212 Mb
What value should I use in your formula ?
By the way in Apache 2.4 MaxClients has been renamed to MaxRequestWorkers. Is your formula still valid for this new parameter ?
Regards
The answer from tachomi is not overly comprehensive, but seems like a reasonable way to begin estimating.
In addition to that, this will help you to figure out some of the resources Apache is currently consuming:
Refer to the Apache Performance Tuning guide.
Quote