Re: [users@httpd] RLimitNPROC overly agressive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



André,

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


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

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

* 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux