Welcome! Log In Create A New Profile

Advanced

Re: cache manager process exited with fatal code 2 and cannot be respawned

November 08, 2012 09:10AM
On Nov 7, 2012, at 13:49 , Isaac Hailperin wrote:

> Hi,
>
> after restarting nginx I find
>
> 2012/11/07 10:24:02 [alert] 23635#0: 512 worker_connections are not enough
> 2012/11/07 10:24:02 [alert] 23636#0: 512 worker_connections are not enough
> 2012/11/07 10:24:04 [alert] 23618#0: cache manager process 23635 exited with fatal code 2 and cannot be respawned
>
> in my logs. It seems like this error came up after adding more then 2500 virtual hosts, each consisting of two server blocks, one for http, and one for https.
>
> Now I don't quite understand these messages. In my nginx.conf I have
> user www-data;
> worker_processes 16;
> pid /var/run/nginx.pid;
> worker_rlimit_nofile 65000;
>
> events {
> worker_connections 2000;
> use epoll;
> # multi_accept on;
> }
>
> so that should be enough worker_connections. Why am I still getting this message?
>
> For the other message regarding the cache manger, I found this
> http://www.ruby-forum.com/topic/519162
> thread, where Maxim Dounin suggests that it results from the kernel not supporting eventfd(). But as far as I understand this is only an issue with kernels bevore 2.6.18. I use 2.6.32 and my kernel config clearly states
> CONFIG_EVENTFD=y

These message have no relation to eventfd().

A process with pid of 23636 is probably cache loader. Both cache manager and loader
do not use configured worker_connection number since they do not process connections
at all. However, they need one connection slot to communicate with master process.

512 connections may be taken by listen directives if they use different addreses,
or by resolvers if you defined a resolver in every virtual host.
A quick workaround is to define just a single resovler at http level.


--
Igor Sysoev
http://nginx.com/support.html

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

cache manager process exited with fatal code 2 and cannot be respawned

Isaac Hailperin November 07, 2012 04:50AM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Isaac Hailperin November 08, 2012 08:56AM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Isaac Hailperin November 08, 2012 10:56AM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Igor Sysoev November 08, 2012 09:10AM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Isaac Hailperin November 08, 2012 10:14AM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Isaac Hailperin November 09, 2012 08:16AM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Maxim Konovalov November 09, 2012 11:28AM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Isaac Hailperin November 09, 2012 01:58PM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Peer Heinlein November 09, 2012 02:38PM

Re: cache manager process exited with fatal code 2 and cannot be respawned

nginxorg November 09, 2012 03:08PM

Re: cache manager process exited with fatal code 2 and cannot be respawned

Peer Heinlein November 09, 2012 03:16PM

Re: cache manager process exited with fatal code 2 and cannot be respawned

nginxorg November 09, 2012 03:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready