Welcome! Log In Create A New Profile

Advanced

Re: Nginx-1.9.2 fatal code 2 !!

Valentin V. Bartenev
June 30, 2015 08:48AM
On Tuesday 30 June 2015 04:28:32 shahzaib shahzaib wrote:
> 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.
>

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx-1.9.2 fatal code 2 !!

shahzaib1232 June 29, 2015 07:30PM

Re: Nginx-1.9.2 fatal code 2 !!

Valentin V. Bartenev June 30, 2015 08:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready