Too many apache processes

apache-2.2memorymemory usage

I'm wondering why my server has so many free apache slots open. The server only has a couple of busy and idle slots. Please look at the attached images for the amount of process used by the server versus our traffic.

Questions

  • Should I change my configurations so that there's less free slots?
  • If I do reduce the amount of free slots will it reduce the amount of memory the server is using?

Stats

Best Answer

You did not provide information on how idle slot/free slot and busy slot are computed on your graph. So I'll assume the following :

  • Busy slots are process/threads actually serving requests

  • Idle slots are process/threads created but not serving request

  • Free slots are process/threads that can be created before reaching max client.

Question 1 :

You should reduce max client only if you don't have enough RAM to handle all the HTTP requests you allow. For now, you can wait because "busy slot" never got above 100 so far.

Question 2 :

No. Apache uses more memory only when it spawns more process/thread.

Related Topic