Re: upgrade to fedora 9 bash fork: Resource temporarily unavailable

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

 



On Mon, May 19, 2008 at 11:07 PM, Cameron Simpson <cs@xxxxxxxxxx> wrote:
> On 19May2008 19:47, mark <markkicks@xxxxxxxxx> wrote:
> | > | > Hmm, another thought. See what ulimit says about your process limit;
> | > | > maybe F9 have some default limits that F8 did not.
> | > | I increased open files in F8 to 32768, that is preserved here in F9
> | > |
> | > | How do I check my process limit? this is ulimit -a output
> | > [...]
> | > | max user processes              (-u) 1024
> | >
> | > Well, that seems to be more than 425. Anyone else got any ideas?
> | How do I increase this in /etc/security/limits.conf?
> | I changed max files like this
> | mark soft nofile 32768
> | mark hard nofile 32768
>
> I'm not sure, and I don't have a fedora system to hand at present.
>
> | > Just for completeness, to eliminate the rror message being a lie,
> | > can you reproduce the fork failure using strace, eg:
> | >  strace -f -e trace=process 2>strace.out some-script-that-will-fail.sh
> | >
> | > and verify from the "strace.out" file that in fact it is fork() that
> | > fails.
> | i am not able to consistently reproduce this problem. sometimes this
> | error comes, and sometimes it doesnt..
>
> But is it often enough that you could run a script by hand a few times
> and expect to get it?
yes it is really often!! am almost restarting my box every now and then!!


> | how could the error message be a lie? what scenario could this be!!!
>
> Basicly, if the app lies to you. It is unlikely. I'm imagining an app
> calling a library routine the involves a fork() and maybe some other
> stuff, then if the library routine fails then the app says "no more
> processes", even though there might be a few different causes for the
> library routine to fail. A bit like IE often suggests that maybe you're not
> connected to the interweb if the slighted thing goes wrong.

I think you were right!! My nginx web server fails to start because of this:

setuid(500) failed (11: Resource temporarily unavailable)

the user ID is mark
more /etc/passwd | grep mark
mark:x:500:500::/home/mark:/bin/bash


and I changed max number of processes to unlimited and i still get this error!!!
ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 137216
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 32768
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


thanks a lot for all inputs!

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux