Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Thread creation failure: Resource temporarily unavailable. Exiting process.

807567Apr 21 2009 — edited Jul 7 2009

Hi,


We have an issue with an thread application where the application is being forced to exit by libthread. The following message is displayed:




{noformat}Thread creation failure: Resource temporarily unavailable.{noformat}{noformat}Exiting process.{noformat}



{noformat}We also see the error code EAGAIN.{noformat}


The application is running with new pthread libraries under /usr/lib/lwp that came with Solaris 8. This is the Solaris 8 patch level:

{noformat}SunOS 5.8 Generic_117000-05 sun4u sparc SUNW,Sun-Fire-V440{noformat}


The application does attempt to create a a large number of threads, so it is possible it is going beyond the machine limits.



How do we figure out what resource the system is running out of?



When the application used the old libthread library a core dump was produced with this error:

{noformat}panic: cannot create new lwp : dumping core {noformat}{noformat}Child process (MyApp[20415]) exited abnormally due to signal 6. Check for a possible core dump.


So moving to the new thread libraries has helped, but we need to understand the exact resource being exhausted to understand how to fix the problem fully.

Any suggestions appreciated.

Thanks

Colin.
{noformat}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2009
Added on Apr 21 2009
1 comment
1,327 views