Welcome! Log In Create A New Profile

Advanced

solve "maximum number of descriptors" problem

Posted by draru 
solve "maximum number of descriptors" problem
February 20, 2014 07:39AM
we're using nginx under windows 2012 server, package WT-NMP.
load is getting higher and today we're started getting this errors in error log

2014/02/20 16:21:29 [error] 4744#712: *94523 maximum number of descriptors supported by select() is 1024 while connecting to upstream, client: 82.145.222.30, server: someserver.ru, request: "GET /feed/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9163", host: "www.someserver.ru"

most of clients are getting pages normally, but some (I think 5%) get error 500 or "can't connect"

we've worker_processes 2 (increasing doesn't help)
worker_connections 16384;

we've phpfarm with 160 processes
upstream php_farm {
server 127.0.0.1:9001 weight=1 max_fails=3 fail_timeout=15s;
server 127.0.0.1:9002 weight=1 max_fails=3 fail_timeout=15s;
server 127.0.0.1:9003 weight=1 max_fails=3 fail_timeout=15s;
...

I've searched the web and some people say you can change file handle limit in config.nt, I've tried to put
files=4096
in c:\windows\system32\config.nt
but nothing changed.

please help to solve this error, so all our clients can get pages.
Re: solve "maximum number of descriptors" problem
February 20, 2014 08:43AM
Try this version: http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
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