Operating System - HP-UX
1829737 Members
1729 Online
109992 Solutions
New Discussion

fork failed: resource temp. unavailable - What resource??

 
Alexandre W. Agostini_1
Occasional Advisor

fork failed: resource temp. unavailable - What resource??


Hi folks!

My application is getting this error, from time to time:
fork() failed:
resource temporarily unavailable

Is there a simple way :) to figure out what resource might have been unavailable at the time of the error?

Thanks already!
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: fork failed: resource temp. unavailable - What resource??

If you have Glance (and you really should) you can take a look at the System Tables Report and it will show you the current and highest usage for nproc, nfile, shmmni, msgmni, semmni, nflocks, npty, and nbuf, as well as shared memory, message buffers, inode cache, DNLC cache, buffer cache, and swap space. That would narrow it down almost instantly.


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: fork failed: resource temp. unavailable - What resource??

Man 2 fork and you will find there are two possible reasons for errno to be set to EAGAIN nproc - system wide number of processes limit and maxuprc - per user process limit.
If it ain't broke, I can fix that.