Operating System - HP-UX
1826715 Members
2652 Online
109702 Solutions
New Discussion

System resource not available for creating threads

 
madhavabk
Regular Advisor

System resource not available for creating threads

Hi All,

My NSPR dependent application is not able to create threads on HP 11i machine.

I have tried increasing max_threads_proc variable etc, but still i am getting same error.

Any inputs about new patches, or variable settings, or debugging tips.

Thanks,
Madhava
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: System resource not available for creating threads

Shalom,

check other parameters.

maxuprc
nproc
nfile

The first may have to do with too many processes for one user.

Is this a 32 or 64 bit app?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
madhavabk
Regular Advisor

Re: System resource not available for creating threads

Hi,

It is a 64 bit application,.

Thanks,
Madhava
Victor BERRIDGE
Honored Contributor

Re: System resource not available for creating threads

Hi,
What message are you getting, it could be many things as SEP has already mentionned, or need some patches, you say you increased max_threads_proc, but what about the system large nkthread, the max number of kernel threads supported by the system?

All the best
Victor
madhavabk
Regular Advisor

Re: System resource not available for creating threads

Hi Victor,

The error message that i am getting is like this,

[07/Mar/2006:12:46:49 +051800] - ERROR<20492> - Backend Database - conn=-1 op=-1 msgId=-1 - Failed to create 5 threads(NSPR error -5974)

I hope this message is specific to my application. But NSPR is failing to create 5 threads which comes from NSPR.

I have increased nkthread and max_thread_proc and callout variable to 11000.

Thanks,
Madhava
Victor BERRIDGE
Honored Contributor

Re: System resource not available for creating threads

Hi again,

I cant imagine the system not logging in syslog.log if you were to have system trouble...
So I would never give to max_threads_proc a value greater than 1500 without a very good reason (a proved issue for example), I have some boxes with it set to about 2000 but I know why...
nkthread is seen as a way to limit some badly written code to hack all your resources so it should be tuned consequently and the default is (nproc*2)+16, on a box with max_threads_proc set to about 1500 I would see nkthread about 7800-8000
and the same box should have nfile to about 10000-20000, nproc I imagine around 2500-3000 etc...
Having said that your error message does not say its the system (to me) so it could be many things Ive seen java applications abort with almost the same messages because directories werent present or wrong permissions...
With the information you give us we cant say much (the system? ram? swap? what is running? how many users etc...)

All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: System resource not available for creating threads

Thinking of it,
If you believe it were to do with some of these parameters, you could always monitor them, do a man of kcalarm kcmond kcusage


All the best
Victor