+1<div><br></div><div>Perfect explanation. Thank you very much!<br><br><div class="gmail_quote">2011/5/8 Reza Lotun <span dir="ltr">&lt;<a href="mailto:rlotun@gmail.com">rlotun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Juan,<br><br><div class="gmail_quote"><div class="im">2011/5/8 Juan Antonio Ibaņez Santorum <span dir="ltr">&lt;<a href="mailto:juanito1982@gmail.com" target="_blank">juanito1982@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

MUST I apply that change or may be I SHOULD do it? Why is it necessary? </blockquote><div><br></div></div><div>Each network connection on your system is represented by a &#39;file descriptor&#39;, in Unix terminology. By default, there is a limit on the number of open file descriptors that can be opened at once, which is a little different for every system (usually its 1024 or 4096), even though the system is actually capable of opening more network connections.</div>

<div><br></div><div>This limit is set in two places - systemwide and per-user. To run a network server you have to increase the limits both in the kernel and for the user the network process is running as. The &#39;sysctl&#39; steps I previously mentioned increases the limits for the kernel, and the &#39;ulimit&#39; steps for the user. In the example I gave, this limit was increased to 999999 which is extremely high, and should be suitable for almost all production server deployments.</div>

<div><br></div><div>sysctl limits can be set permanently by editing /etc/sysctl.conf with new kernel settings and then running &#39;sysctl -p&#39;. ulimits can be changed at runtime - the &#39;nofile&#39; setting can be set by &#39;ulimit -n&#39;, or permanently by editing /etc/security/limits.conf and rebooting/opening a new login shell.</div>

<div><br></div><div>Hope that clears it up.</div><div><br></div><font color="#888888"><div>Reza</div></font></div><div><div></div><div class="h5">-- <br>Reza Lotun<br>mobile: +44 (0)7521 310 763<br>email:  <a href="mailto:rlotun@gmail.com" target="_blank">rlotun@gmail.com</a><br>
work:   <a href="mailto:reza@tweetdeck.com" target="_blank">reza@tweetdeck.com</a><br>
twitter: @rlotun<br><br>
</div></div><br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br></div>