On Mon, Dec 7, 2009 at 7:01 AM, Bill Moseley <mose...@hank.org>\
>
>
> So, it would be more convenient if a graceful restart could be done on just
> Apache and that would trigger closing the connections on the next response
> freeing up the process to exit.  That's the part I'm trying to get working.
>

This was pretty trivial once I remembered a little XS.

One interesting thing I realized (which makes sense if you think about it)
is that  MaxRequestsPerChild is not "requests" but connections.  IIRC, the
parent has to track the request count and it only knows about connections.
So, with persistent connections you don't really know the number of
requests.  And with memory leaks it's probably the requests that I'm
interested in.

I suppose I could count requests in the application process and call
child_terminate.  Or use Apache2::SizeLimit as that's really the reason to
limit number of requests.



-- 
Bill Moseley
mose...@hank.org

Reply via email to