# Nginx-1.9.2 fatal code 2!

**URL:** <https://www.ruby-forum.com/t/nginx-1-9-2-fatal-code-2/242518>\
**Category:** NGINX\
**Created:** [June 30, 2015, 1:29am UTC](https://www.ruby-forum.com/t/nginx-1-9-2-fatal-code-2/242518 "2015-06-30T01:29:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [June 30, 2015, 1:29am UTC](https://www.ruby-forum.com/t/nginx-1-9-2-fatal-code-2/242518/1 "2015-06-30T01:29:19Z")

</div>

Hi,

We’ve just compiled latest nginx-1.9.2 on Debian wheezy 7 in order to  
utilize aio threads directive for our storage but nginx started to crash  
since we enabled aio threads on it. Following is the compiled options  
and  
log about the crash :

root@archive3:/usr/local/nginx/conf/vhosts# nginx -V  
nginx version: nginx/1.9.2  
built by gcc 4.7.2 (Debian 4.7.2-5)  
configure arguments: --sbin-path=/usr/local/sbin/nginx  
–with-http\_flv\_module --with-http\_mp4\_module --with-threads  
–with-stream  
–with-debug

error\_log :

2015/06/30 04:14:07 [alert] 32076#32076: worker process 11097 exited  
with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:03 [alert] 32079#32079: pthread\_create() failed (11:  
Resource temporarily unavailable)  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 17232 exited  
with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 18584 exited  
with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 595 exited with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 32121 exited  
with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 7557 exited with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 16852 exited  
with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 32083 exited  
with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 5933 exited with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:07 [alert] 32076#32076: worker process 32079 exited  
with  
fatal code 2 and cannot be respawned  
2015/06/30 04:14:03 [alert] 25360#25360: pthread\_create() failed (11:  
Resource temporarily unavailable)  
2015/06/30 04:14:03 [alert] 18540#18540: pthread\_create() failed (11:  
Resource temporarily unavailable)  
2015/06/30 04:14:03 [alert] 11093#11093: pthread\_create() failed (11:  
Resource temporarily unavailable)  
2015/06/30 04:14:03 [alert] 23953#23953: pthread\_create() failed (11:  
Resource temporarily unavailable)

Thanks in advance.

Regards.  
Shahzaib

---

<div class="post-metadata">

**Author:** ![shahzaib12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@shahzaib12](https://www.ruby-forum.com/u/shahzaib12)\
**Post date:** [June 30, 2015, 2:47pm UTC](https://www.ruby-forum.com/t/nginx-1-9-2-fatal-code-2/242518/2 "2015-06-30T14:47:54Z")

</div>

On Tuesday 30 June 2015 04:28:32 shahzaib shahzaib wrote:

> configure arguments: --sbin-path=/usr/local/sbin/nginx  
> fatal code 2 and cannot be respawned  
> 2015/06/30 04:14:07 [alert] 32076#32076: worker process 32083 exited with  
> Resource temporarily unavailable)  
> 2015/06/30 04:14:03 [alert] 23953#23953: pthread\_create() failed (11:  
> Resource temporarily unavailable)
> 
> Thanks in advance.

You should check the NPROC limit on maximum number of processes/threads,  
and configure it according to the actual number of threads you’re going  
to use.

wbr, Valentin V. Bartenev
