perhaps i can add more info, after doing more investigation:<div><br></div><div>a. "ulimit" is a shell feature, it is not a command line binary. "man bash" and "man sh" 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 "lsof" and "-p" 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">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">On Sat, Feb 9, 2013 at 1:10 PM, horseriver <span dir="ltr"><<a href="mailto:horserivers@gmail.com" target="_blank">horserivers@gmail.com</a>></span> wrote:<br>
<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">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><br><br clear="all"><div><br></div>-- <br>Regards,<br>Peter Teoh
</div>