[SlugBug] Apache memory usage problem

Bruno Postle bruno at postle.net
Tue Dec 6 23:09:33 GMT 2005


On Tue 06-Dec-2005 at 20:34 +0000, Bill Best wrote:
> 
> there is an Apache memory usage problem - here's top:

> when i restart Apache it frees the memory used:

> ii) why doesn't/cannot apache release the memory it uses?

With most applications, memory isn't returned to the operating
system once it is allocated.

> iii) how might i best identify which rewrite rule is bad?

Regular expressions with multiple greedy patterns cause all sorts of
trouble:

  /^.*foo.*bar.*$/

> iv) any other advice?

Configure apache processes to restart after a set number of
requests instead of lasting forever:

  MaxRequestsPerChild 100

-- 
Bruno


More information about the SlugBug mailing list