Rt Ibmer,<br><br>I think you replied to my post on &quot;Surviving Digg&quot; a while back - there were some useful tips throughout that thread, if you still have it.&nbsp; I&#39;d be happy to forward that email thread, if you&#39;d like.<br>
<br>I also set worker_rlimit_nofile to a relatively high value - that seemed to help things out on the box.&nbsp; <br><br>On that note, I&#39;m not sure what a reasonable permanent value for that variable should be, if anyone has any insight on that?&nbsp; And how is that related to worker_connections?<br>
<br><br><div class="gmail_quote">On Mon, May 26, 2008 at 6:48 AM, Rt Ibmer &lt;<a href="mailto:rtibmx@yahoo.com">rtibmx@yahoo.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
[Hello - I sent this last week but did not receive any responses so I am resending it in hopes of getting some information. Thank you!]<br>
----------------------<br>
<div><div></div><div class="Wj3C7c"><br>
How do I make sure we don&#39;t run out of available connections for our nginx 6 box?<br>
<br>
For instance when I run stub_status I see that I have x active connections. &nbsp;I can also see how the keepalive setting in nginx impacts this number.<br>
<br>
It seems that under heavy load where connections are coming in at a much faster rate than the keepalive timeout is expiring, that things could get to a point where the number of active connections becomes too great and then there would not be enough connections available for new users.<br>

<br>
A few questions please:<br>
<br>
1) Is such a situation that I described above possible?<br>
<br>
2) In such a situation, would nginx automatically free the idle keepalive connections so that it could have more connections available for use?<br>
<br>
3) What nginx and/or Linux settings (I am using Fedora core 8 if that matters) controls what the maximum number of connections is that my box can have active? &nbsp;How can this be bumped up?<br>
<br>
Obviously under some heavy load a box will reach a physical maximum that it is capable of serving. &nbsp;That is ok and why we have other boxes available. &nbsp;However I want to understand how this works so that I can keep an eye on the connections and say &quot;Hey that&#39;s getting awfully close to our limit - time to get another box up!&quot;. &nbsp;Right now I have no idea how to predict what that limit is. &nbsp;Thanks!<br>

<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>