hybinet wrote:
In that case, you would be loading up 50 instances of the PHP interpreter when you start the server. Of course a lot of RAM is shared between those children, but still a helluva large waste of precious RAM. Think of it: 12-15MB of RAM dedicated to serving nothing but a 12-15KB css/js file? Besides, with MaxClients=50 on anything smaller than a Linode 1080, you'll probably end up running out of RAM as soon as you get enough visitors to make use of all those Apache chidren.
MaxClients is the maximum number of Apache processes, not the number that is created when apache is started.
I would suggest that
most of the memory used by an Apache process is in fact shared. On my systems I can watch Apache spin up 5 additional processes, while overall memory consumption increases by maybe 1 MB (at most).
The amount of memory consumed by an Apache PHP process is determined in large part by what it's doing. If it's processing a 'hello world' script then memory usage is minimal. If it's processing some monster script then memory usage is a heck of a lot more.