<DIV>A test again ,but still error</DIV>
<DIV>i changed to /proc/sys/fs/file-max 8388608</DIV>
<DIV>and <SPAN>ulimit -n 1000000</SPAN></DIV>
<DIV> </DIV>
<DIV>cat /proc/net/sockstat <BR>sockets: used 525173<BR>TCP: inuse 525104 orphan 0 tw 0 alloc 525104 mem 517029<BR>UDP: inuse 0 mem 0<BR>UDPLITE: inuse 0<BR>RAW: inuse 0<BR>FRAG: inuse 0 memory 0</DIV>
<DIV> </DIV>
<DIV> cat /proc/sys/fs/file-nr<BR>525632 0 8388608</DIV>
<DIV> </DIV>
<DIV>=ERROR REPORT==== 18-May-2011::08:52:26 ===<BR>Error in process <0.34.0> with exit value: {{badmatch,{error,enfile}},[{server,do_accept,1}]}</DIV>
<DIV><includetail>
<DIV> </DIV>
<DIV>dmesg out of socket memory apper </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="COLOR: #000">
<DIV> </DIV>out of socket memory says something.
<DIV><BR></DIV>
<DIV>I think you can keep watching /proc/sys/fs/file-nr and /proc/net/sockstat during test.<BR><BR>
<DIV class=gmail_quote>On Tue, May 17, 2011 at 2:40 PM, yaohui <SPAN dir=ltr><<A href="mailto:yaohui1984@qq.com">yaohui1984@qq.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>/proc/sys/fs/file-nr "416 0 4821388" is right now, I'll do a test again while observing this parameter </DIV>
<DIV>
<DIV> </DIV>
<DIV>dmesg print a lot log</DIV>
<DIV>out of socket memory</DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV style="COLOR: #000">
<DIV> </DIV>Can you post the output of "dmesg" which might include some OS warning messages. <BR><BR>
<DIV>"416 0 4821388" is some time after this happened, right? It shows that there aren't many files open.</DIV>
<DIV><BR></DIV>
<DIV>Andy</DIV>
<DIV><BR>
<DIV class=gmail_quote>On Tue, May 17, 2011 at 2:32 PM, yaohui <SPAN dir=ltr><<A href="mailto:yaohui1984@qq.com" target=_blank>yaohui1984@qq.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>It's a problem 800000 < 1000K, but connections are less than 540k </DIV>
<DIV> </DIV>
<DIV>cat /proc/sys/fs/file-nr result</DIV>
<DIV>416 0 4821388</DIV>
<DIV>
<DIV></DIV>
<DIV>
<DIV> </DIV>
<DIV>
<DIV><SPAN>ulimit -n 800000? </SPAN></DIV>
<DIV style="COLOR: #000">
<DIV>800000 < 1000K. </DIV>
<DIV>Is this the problem?</DIV>
<DIV>What about cat /proc/sys/fs/file-nr?</DIV><BR>
<DIV class=gmail_quote>On Tue, May 17, 2011 at 9:38 AM, yaohui <SPAN dir=ltr><<A href="mailto:yaohui1984@qq.com" target=_blank>yaohui1984@qq.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>I do a test C1000k, when connections reach to 540k, I got a error {badmatch,{error,enfile}}. </DIV>
<DIV>{error,enfile} this error represents the files tables is full (for the entire OS)</DIV>
<DIV>but my kernel </DIV>
<DIV>ulimit -n </DIV>
<DIV>800000</DIV>
<DIV>cat /proc/sys/fs/file-max </DIV>
<DIV>2215800 </DIV>
<DIV> </DIV>
<DIV>{error,enfile} is this error means other problem?</DIV><BR>_______________________________________________<BR>erlang-questions mailing list<BR><A href="mailto:erlang-questions@erlang.org" target=_blank>erlang-questions@erlang.org</A><BR><A href="http://erlang.org/mailman/listinfo/erlang-questions" target=_blank>http://erlang.org/mailman/listinfo/erlang-questions</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></includetail></DIV>