24: Too many Open connections

Hello,

We have 3 nginx web servers behind an nginx proxy and we were seeing
“24:
Too many Open connections” error in nginx log of one server and found
that
some of the users are getting 504 timed out error. We have observer that
the
problem was only in one of the web-server. We restarted php_cgi & nginx
and
the problem got solved.

Can someone help me to understand what caused this issue? As I mentioned
we
have 3 web-servers and all three are having the same setup and
configuration. It wouldn’t have caused because of heavy traffic, as it
was
non peak hour and other servers were not affected as well.

nginx-1.2.0-1.el5
OS - CentOS release 5.8

nginx.conf
worker_processes 4;
worker_connections 1000000;

sysctl.conf
fs.file-max = 70000

limits.conf
nginx soft nofile 1000000
nginx hard nofile 1000000

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,258812,258812#msg-258812

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs