I've got something strange on my Apache2 server that is under Ubuntu Linux.
I've got two websites, one is directly handled by Apache2 through Passenger module (it's a ruby webapp), the other one is reverse proxied to another port to a Tomcat6 server.
Everything seems fine but Apache2 behaviour seems really greedy: with top
I see that it has at least 5-6 processes and they grow up to 13-14 when I make some requests for just these two servers.
Is it correct to have so many processes?
Should I configure it to be less greedy if there's no need? I was making comparisons with a similar configuration on a less powerful machine (512mb RAM vs 2gb RAM) and it seems that on this machine it keeps less processes open. Maybe Apache2 benchmarks the machine to understand how many resources to allocate?
Just for info both machines are actually virtualized under VMWare server
Thanks in advance