Operating System - HP-UX
1745788 Members
3951 Online
108722 Solutions
New Discussion юеВ

Re: Resource temporarily unavailable: couldn't spawn child process

 
ZZheng
Occasional Advisor

Resource temporarily unavailable: couldn't spawn child process

Hi,

I go this error during a stressed testing, it will make 400 concurrent connections at same time, does any body have idea?

Thanks,
7 REPLIES 7
Michael Tully
Honored Contributor

Re: Resource temporarily unavailable: couldn't spawn child process

Hi,

Sounds like your process table has filled up. Suggest you look at increasing 'nproc' in your kernel. Do you get messages in relation to thi in 'dmesg' and your system log (/var/adm/syslog/syslog.log)

HTH
Michael
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: Resource temporarily unavailable: couldn't spawn child process

Looks like the nproc and maxuprc values in the kernel is crossed.

What are the values of nproc and maxuprc
nproc is the number of processes system wide.
maxuprc maximum number of processes for a user.

check them up.

Also check the kernel parameters link

http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparams.OverviewAll.html

ZZheng
Occasional Advisor

Re: Resource temporarily unavailable: couldn't spawn child process

Thanks for the response, my kernel info is:

nfile: 4000
nflocks: 200
maxfiles: 2048
nproc: 1164
maxuprc: 75

Regards,

Zhe
Steve Faidley
Valued Contributor

Re: Resource temporarily unavailable: couldn't spawn child process

If your running them as root ignore maxuprc as it doesn't apply. Another thing that could give you this error is if your out of swap to reserve.
If it ain't broke, let me have a look at it.
harry d brown jr
Honored Contributor

Re: Resource temporarily unavailable: couldn't spawn child process

You need to jack your kernel parameters up.

We can help if you answer these:
(1) What kind of system do you have?

(2) How much memory ?

(3) How much swap ?

(4) Number of of cpu's ?

(5) number of concurrent users expected?

live free or die
harry
Live Free or Die
ZZheng
Occasional Advisor

Re: Resource temporarily unavailable: couldn't spawn child process

My machine enviroment is:

(1) OS: P-UX B.11.11 U 9000/800 2014912651 unlimited-user license.

(2) CPU : 240MHZ x 1

(3) Memory: 512MB

(4) Swap : 1GB

(5) Number of concurrent users: 256


Thanks,
ZZheng
Occasional Advisor

Re: Resource temporarily unavailable: couldn't spawn child process

Also, i am running by non root user.

Regards,

Zhe