<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Hi there!</div><div>First of all, I am a new user of the nginx mailing list so there is a short introduction of myself. My name is Antonio, and I have been working for a long time as Web Operations Engineer at Uptodown.com, <span class="Apple-style-span" style="border-collapse: separate; font-size: small;">VisualizeUs.com</span> and other minor projects. </div>

<div><br></div><div>We are running nginx in Uptodown.com for static content, without problems, and in VisualizeUs.com, since 2 years ago, for static and dynamic content without problems . But it is in visualizeUs where we are having some problems, since we updated nginx to nginx/0.7.67, under debian Lenny 32 bits (aws medium instance), with php-fcgi</div>

<div><br></div><div>There is the munin output for nginx connections.</div><a href="http://i29.tinypic.com/21y781.png" target="_blank" style="color: rgb(0, 101, 204); ">http://i29.tinypic.com/21y781.png</a><div><br></div>
<div>
We noticed, an exponential growth for connections, better apreciated through the graphic.</div><div><br></div><div>There is our nginx configuration:</div><div><br></div><div><a href="http://dpaste.com/hold/223096/" target="_blank" style="color: rgb(0, 101, 204); ">http://dpaste.com/hold/223096/</a></div>

<div><br></div><div>And our ulimit for www-data:</div><div><br></div><div><div>maxfds ..fs.file-max = 200000</div><div>core file size          (blocks, -c) 0</div><div>data seg size           (kbytes, -d) unlimited</div>
<div>
scheduling priority             (-e) 20</div><div>file size               (blocks, -f) unlimited</div><div>pending signals                 (-i) unlimited</div><div>max locked memory       (kbytes, -l) unlimited</div><div>

max memory size         (kbytes, -m) unlimited</div><div>open files                      (-n) 20480</div><div>pipe size            (512 bytes, -p) 8</div><div>POSIX message queues     (bytes, -q) unlimited</div><div>real-time priority              (-r) 1</div>

<div>stack size              (kbytes, -s) unlimited</div><div>cpu time               (seconds, -t) unlimited</div><div>max user processes              (-u) unlimited</div><div>virtual memory          (kbytes, -v) unlimited</div>

<div>file locks                      (-x) unlimited</div></div><div><br></div><div>As active connections grow, response time sligthly increases, so a nginx reboot is needed to get back to optimal response time.Nginx reboots are apreciated in munin graphic when it returns to normal values, in other case, exponential grows continues.</div>

<div><br></div><div>We have been tweaking system limits without noticiable diferences. Also we have been working around php-cgi configuration, finding out that the exponential growth of connections still exists but in a slower rate.</div>

<div><br></div><div>Anything that make us point in the right direction will be appreciated.</div><div><br></div><div>Thanks in advanced.</div><div><br></div><div>Best Regards.</div><div>Antonio.</div><div><br></div><font color="#888888"></font></span><font color="#888888"></font><font color="#888888"></font>