We are having performance problems on our VirtualHost-based Apache server. Our server has many virtual hosts, and so over time the pool of apache processes will eventually have all those files in memory (we are using MDM). In reality only one or two of our virtual hosts are used often, the rest are not, but yet they end up taking a lot of memory in each apache process.

Is there any way to configure Apache to bind a specific virtual host to some group of apache processes?

The goal would be to dedicate just a few processes to the majority of our virtual hosts that aren't used that often (and hence performance isn't as crucial), thus removing the memory footprint of those virtual hosts from the remaining apache processes.

link|improve this question
Mm, I'm unsure if it is possible (my limited understanding of apache). Even if it were, I would venture that you'd end up consuming the same resources on you box(es) ... ? Alternatively, how about moving these vhosts to their own box? Adding more memory? – KM01 Dec 18 '11 at 17:56
feedback

migrated from stackoverflow.com Oct 8 '11 at 16:25

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown