On 2/28/06, Khai Doan <khai_quyen@xxxxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx