httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <..@mediatemple.net>
Subject Re: [users@httpd] RLimitNPROC overly agressive
Date Thu, 01 Jan 1970 00:00:00 GMT
André,

Thanks for the reply.  That explains what I'm seeing.


-----Original Message-----

From:  André Malo <nd@perlig.de>
Subj:  Re: [users@httpd] RLimitNPROC overly agressive
Date:  Sun 8 May 2005 21:43
Size:  1K
To:  users@httpd.apache.org

* Michael Johnson - MJ wrote:

> User foo
> RLimitNPROC 5 5
> The user 'foo' has 4 ssh sessions (or 4 of any process) active.
>
> If the 'foo' has a cgi that does not fork any additional processes, he
> can have five concurrent instances of it running as one would expect.
>
> However, if the has a cgi that forks even 1 single process, the
> following error is generated in the logs:
>     test.sh: fork: Resource temporarily unavailable

That is, how it works; at least on linux. When calling fork() the kernel 
counts the processes that belong to the user and rejects based on this 
number. Other OSes may treat that differently (RLIMIT_NPROC is not 
standardized afaics).

nd
-- 
print "Just Another Perl Hacker";

# André Malo, <http://www.perlig.de/> #

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message