I read online that making these changes:<div><br></div><div>
<p class="p1">echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle</p>
<p class="p1">echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse</p>can potentially have a good impact on performance but can also increase connection drops.</div><div><br></div><div>Any thoughts?</div><div><br><div class="gmail_quote">
On Fri, Oct 21, 2011 at 4:02 PM, Ilan Berkner <span dir="ltr"><<a href="mailto:ilan@time4learning.com">ilan@time4learning.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks, <div><br></div><div>I increased the fastcgi_buffers as follows:</div><div><br></div><div><div>fastcgi_buffers 256 4k;</div></div><div><br></div><div>and that took care of this problem.</div><div><br></div><div>Another problem I'm trying to deal with is:</div>
<div><br></div><div><div>netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c</div><div> 12 CLOSING</div><div> 1176 ESTABLISHED</div><div> 58 FIN_WAIT1</div><div> 218 FIN_WAIT2</div><div> 23 LAST_ACK</div>
<div> 43 LISTEN</div><div> 91 SYN_RECV</div><div> 3606 TIME_WAIT</div><div><br></div><div>I'm trying to understand why there are so many connections in TIME_WAIT status. Any ideas on how to research this issue?</div>
<div><div></div><div class="h5">
<br><div class="gmail_quote">On Fri, Oct 21, 2011 at 3:44 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>
<br>
On Fri, Oct 21, 2011 at 03:36:23PM -0400, iberkner wrote:<br>
<br>
> What settings / parameters can be tweaked to increase the amount of<br>
> buffers available as to not go to a temporary file?<br>
><br>
> We are seeing many of these:<br>
><br>
> 2011/10/21 14:01:24 [warn] 24547#0: *2408454 an upstream response is<br>
> buffered to a temporary file /var/lib/nginx/fastcgi/5/69/0000017695<br>
> while reading upstream, client: 1.1.1.1, server: <a href="http://www.someserver.com" target="_blank">www.someserver.com</a>,<br>
> request: "GET /edit.html?id=6816841 HTTP/1.1", upstream:<br>
> "fastcgi://<a href="http://192.168.1.5:9000" target="_blank">192.168.1.5:9000</a>", host: "<a href="http://www.someserver.com" target="_blank">www.someserver.com</a>", referrer:<br>
> "<a href="http://www.someserver.com/c.html" target="_blank">http://www.someserver.com/c.html</a>"<br>
><br>
> I tried messing around with proxy_buffer settings, but not sure if I'm<br>
> on the right track.<br>
<br>
This is a warning message which is here to let you know that<br>
response was buffered to disk. Depending on your use case you may<br>
want either to tune fastcgi_buffers/fastcgi_buffer_size, or disable<br>
disk buffering with "fastcgi_max_temp_file 0", or just ignore this<br>
warning.<br>
<br>
Maxim Dounin<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><div><br></div><div>Ilan Berkner</div><div>Chief Technology Officer</div><div>Time4Learning.com</div><div><br></div><div>6300 NE 1st Ave., Suite 203</div>
<div>
Ft. Lauderdale, FL 33334</div><div><a href="tel:%28954%29%20771-0914" value="+19547710914" target="_blank">(954) 771-0914</a></div><div><br></div><div><a href="http://www.twitter.com/time4learning" target="_blank"><img src="http://www.time4learning.com/_img/buttons/addthis/twitter_32.png"></a> <a href="http://www.facebook.com/Time4Learning" target="_blank"><img src="http://www.time4learning.com/_img/buttons/addthis/facebook_32.png"></a> <br>
</div><div><br></div><div><div><a href="http://Time4Learning.com" target="_blank">Time4Learning.com</a> - Online interactive curriculum for home use, PreK-8th Grade.</div><div><a href="http://Time4Writing.com" target="_blank">Time4Writing.com</a> - Online writing tutorials for high, middle, and elementary school students.</div>
<div><a href="http://Time4Learning.net" target="_blank">Time4Learning.net</a> - A forum to chat with parents online about kids, education, parenting and more.</div><div><a href="http://spellingcity.com" target="_blank">spellingcity.com</a> - Online vocabulary and spelling activities for teachers, parents and students.</div>
</div><div><br></div><br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div>Ilan Berkner</div><div>Chief Technology Officer</div><div>Time4Learning.com</div><div><br></div><div>6300 NE 1st Ave., Suite 203</div><div>
Ft. Lauderdale, FL 33334</div><div>(954) 771-0914</div><div><br></div><div><a href="http://www.twitter.com/time4learning" target="_blank"><img src="http://www.time4learning.com/_img/buttons/addthis/twitter_32.png"></a> <a href="http://www.facebook.com/Time4Learning" target="_blank"><img src="http://www.time4learning.com/_img/buttons/addthis/facebook_32.png"></a> <br>
</div><div><br></div><div><div><a href="http://Time4Learning.com" target="_blank">Time4Learning.com</a> - Online interactive curriculum for home use, PreK-8th Grade.</div><div><a href="http://Time4Writing.com" target="_blank">Time4Writing.com</a> - Online writing tutorials for high, middle, and elementary school students.</div>
<div><a href="http://Time4Learning.net" target="_blank">Time4Learning.net</a> - A forum to chat with parents online about kids, education, parenting and more.</div><div><a href="http://spellingcity.com" target="_blank">spellingcity.com</a> - Online vocabulary and spelling activities for teachers, parents and students.</div>
</div><div><br></div><br>
</div>