httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] RlimitNPROC
Date Thu, 02 Mar 2006 14:19:33 GMT
On 3/2/06, Frans Knibbe <> wrote:
> Hello,
> I am trying to use the RLimitNPROC directive to limit the number of CGI
> processes that can run at the same time. To test this, I added the
> directive to httpd.conf like this:
> <Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
>     AllowOverride None
>     Options None
>     Order allow,deny
>     Allow from all
>     RlimitNPROC 4 4
> </Directory>
> But after restarting the HTTP server, I could easily get more than 4
> executables from the cgi-bin directory to run. How is this possible? Am
> I using the right method to limit the number of specific CGI processes
> that can be spawned by Apache?
> I am using Apache 2.0.55 on windows XP.
> By the way, I have found a few similar questions to mine on the web, but
> none of them were ever answered, so I assume some other people will be
> interested in this as well.

The RLimit* directives set the limits imposed on the CGI scripts
themselves, not on apache.  So your configuration means the CGI script
cannot launch more than 4 processes, but it does not restrict what
apache can do in launching cgi scripts.  To do that, you would need to
change the configuration under which apache itself runs.

If you were on unix, I would suggest mod_load_average:

On winnt, you could look at some of the third-party modules available
from, but I don't know of anything that can
do specifically what you want.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message