<DIV> </DIV>
<DIV><includetail>
<DIV>ok, thanks.</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>