On 2/28/06, Khai Doan <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> I am running apache 2 using prefork model, and wish to limit the size of
> each apache process.  After a request, it should check its size, and if
> exceed a certain threshold, terminate itself.  I have looked at RLimitMEM
> directive, but it says that this directive only apply to subprocess (CGI)
> launch by apache child, and not the apache child itself.  So, how can I do
> this without using mod_perl ?

I don't think that can be done without some OS-specific C code and
possibly a new mpm.  You can set the rlimitmem under which apache
itself operates, but that will just kill off processes in the middle
of serving if they exceed the limit.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to