one more:<div><br></div><div>To modify system-wide limits:</div><div><br><div><pre style="color:rgb(51,51,51);line-height:16.78333282470703px;text-align:justify"> <strong>/etc/security/limits.conf</strong></pre><br><div class="gmail_quote">
On Tue, Feb 12, 2013 at 5:31 PM, Peter Teoh <span dir="ltr">&lt;<a href="mailto:htmldeveloper@gmail.com" target="_blank">htmldeveloper@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
perhaps i can add more info, after doing more investigation:<div><br></div><div>a.   &quot;ulimit&quot; is a shell feature, it is not a command line binary.   &quot;man bash&quot; and &quot;man sh&quot; and u can see ulimit has different feature available for u.</div>

<div><br></div><div>b.   ulimit control all the resources defined by the processes spawn from the current shell onwards...ie, once ulimit is change, all child processes from that shell onwards will change.  but resources limit in another shell, existing processes etc does not.</div>

<div><br></div><div>c.   ulimit is a userspace feature, the kernel will have all the corresponding feature of max open files etc...but definitely it is not unlimited like that of ulimit.</div><div><br></div><div>d.   to see ALL the open files u can use &quot;lsof&quot; and &quot;-p&quot; give u control to point at which process to dig for open files.   it also list all the open connections (TCP) for u....which is what u want.</div>

<div><br></div><div>e.   generally java applications will open many many files descriptor concurrently:</div><div><br></div><div><a href="http://www.java.net/forum/topic/glassfish/glassfish/too-many-open-files-issue" target="_blank">http://www.java.net/forum/topic/glassfish/glassfish/too-many-open-files-issue</a></div>

<div><br></div><div>(above listed 4500, and many others java apps like IBM RSA also have many).</div><div><br><div class="gmail_quote"><div class="im">On Sat, Feb 9, 2013 at 1:10 PM, horseriver <span dir="ltr">&lt;<a href="mailto:horserivers@gmail.com" target="_blank">horserivers@gmail.com</a>&gt;</span> wrote:<br>

</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi:)<br>
<br>
   In one process ,what is the max number of opening file descriptor ?<br>
   Can it be set to infinite ?<br>
<br>
   In network programing ,what is the essential for  the maximum of connections<br>
   dealed per second<br>
<br>
thanks!<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Regards,<br>Peter Teoh
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Peter Teoh
</div></div>