httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <>
Subject Re: Memory issue in apache modules
Date Fri, 14 Dec 2007 23:49:12 GMT
On Dec 14, 2007 6:05 PM, John Zhang <> wrote:
> When my module processes requests, I see a consistent
> memory increase.  It is like the memories were never
> released.  I am using the apr_* functions to allocate
> memory (most of the time from the request->pool).  My
> understanding is that memories will be reclaimed by
> apache after the request is processed (so I do not
> need to free/delete).  Anyone has any ideas?  Does
> this have anything to do with keep alive?

It should level out as each thread in the process has had a chance to
run and allocate some memory for a range of requests.  MaxMemFree can
be used to return the heap memory that would otherwise be used by
subsequent requests on that thread.

Eric Covener

View raw message