Setuid(500) failed (11: Resource temporarily unavailable

hi guys,
when i restart nginx doesnt start up and it gives the followign error:

setuid(500) failed (11: Resource temporarily unavailable

how to fix this problem?

this is with nginx 0.8.27

On Sat, Nov 21, 2009 at 08:12:26AM -0800, kevin wrote:

this is with nginx 0.8.27

On Sat, Nov 21, 2009 at 8:05 AM, kevin [email protected] wrote:

hi guys,
when i restart nginx doesnt start up and it gives the followign error:

setuid(500) failed (11: Resource temporarily unavailable

how to fix this problem?

Although Linux (and others) man setuid(2) says nothing about EAGAIN,
I believe, you have limit of number of processes for nginx’s user.

On Sat, Nov 21, 2009 at 08:41:52AM -0800, kevin wrote:

when i restart nginx doesnt start up and it gives the followign error:
for the user of worker processor:
ulimit -u
unlimited

for root user
ulimit -u
1024

is this done by the root user? i can increase the limit to unlimited for
root user. do you think it will help?

I do not know, however, you may try.

2009/11/21 Igor S. [email protected]

setuid(500) failed (11: Resource temporarily unavailable

how to fix this problem?

Although Linux (and others) man setuid(2) says nothing about EAGAIN,
I believe, you have limit of number of processes for nginx’s user.

for the user of worker processor:
ulimit -u
unlimited

for root user
ulimit -u
1024

is this done by the root user? i can increase the limit to unlimited for
root user. do you think it will help?
thanks