Operating System - HP-UX
1832592 Members
3132 Online
110043 Solutions
New Discussion

Re: fork failed - too many proccesses

 

fork failed - too many proccesses

I'm getting the fllowing msg on an HP 9000 (E35) running HPUX 10.20:

Don't have the exact output, but something like this:
fork failed, too manyy proccesses

I looked at the tunable parameters in the kernel file, but didn't see anything out of the ordinary. I eventually rebooted the system to get around the problem. This occurred about a month ago on the same system, so I'm thinking it will keep coming back t haunt me until I figure out what's wrong.

Thanks in advance!
6 REPLIES 6
David_546
Occasional Advisor

Re: fork failed - too many proccesses

Hi,

Did you try increasing the values of "nproc" (max system proc) and "maxuprc" (max user procc)?.

Compare this value with the ouput of "ps -ef | wc -l". This will count the total number of process running on the system.

Another way to see how many process are running is using Q4?

Do you have enough memory?.

Hope this help!

David.
James R. Ferguson
Acclaimed Contributor

Re: fork failed - too many proccesses

nancy rippey
Trusted Contributor

Re: fork failed - too many proccesses

What is 'nproc' set at. Nproc is the total number of processes that can exist simultaneously on the system. It probably needs to be increased.
nrip
Carlos Fernandez Riera
Honored Contributor

Re: fork failed - too many proccesses

run sar -v and check running proc / max proc.

If it was happen a month ago maybe a bug proccess was caused it... imagine a process that call itsef until it fail...
unsupported
Shannon Petry
Honored Contributor

Re: fork failed - too many proccesses

As others said, raise nproc in the kernel!

Of note though is to dump a process table to see what is abnormal. I E I had a system magically freak out with the lp command, and would constantly get 100 or so processes hung for lp. So the nproc was only the symptom of a larger problem.


Never treat the symptom, but rather treat the problem!

Regards,
Shannon
Microsoft. When do you want a virus today?
Luis Miguel Parra Chica
Occasional Advisor

Re: fork failed - too many proccesses

Hi guys,

All that is good, but when I got the same problem some months ago; the question was to "chmod 777 /tmp" on the host. Why don't you check this???

Good luck
Touching that is DANGEROUS