So I have apache running on my local computer. When I open up local development sites in tabs in my browser, apache threads are started. That's as it should be. However, when I close the tabs, close the browsers, and then run system monitor/system task manager, I get a long list of apache threads that are sleeping, waiting around for god knows what.

How do I get these apache threads to stop hanging around?

shot of sleeping apache threads

link|improve this question

75% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Apache has settings to control how threads are used and how many hang around in memory after they are no longer in use. The main reason to leave unused threads in place is to improve performance. It's all explained nicely in the Apache MPM worker documentation.

The setting you're looking for is MaxSpareThreads.

link|improve this answer
Cool, that sounds like the kind of control that I'm looking for, thanks. – Tchalvak Sep 24 '10 at 0:17
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.