[erlang-questions] About error enfile?

yaohui <>
Wed May 18 03:32:09 CEST 2011


A test again ,but still error
 i changed to  /proc/sys/fs/file-max  8388608
 and ulimit -n 1000000
  
 cat /proc/net/sockstat  
sockets: used 525173
TCP: inuse 525104 orphan 0 tw 0 alloc 525104 mem 517029
UDP: inuse 0 mem 0
UDPLITE: inuse 0
RAW: inuse 0
FRAG: inuse 0 memory 0
  
  cat /proc/sys/fs/file-nr
525632  0       8388608
  
 =ERROR REPORT==== 18-May-2011::08:52:26 ===
Error in process <0.34.0> with exit value: {{badmatch,{error,enfile}},[{server,do_accept,1}]}
   
 dmesg  out of socket memory apper 
  
  
   
out of socket memory says something.  

 I think you can keep watching /proc/sys/fs/file-nr and /proc/net/sockstat during test.

 On Tue, May 17, 2011 at 2:40 PM, yaohui <> wrote:
  /proc/sys/fs/file-nr "416     0       4821388"  is right now, I'll do a test again while observing this parameter 
   
 dmesg print a lot log
 out of socket memory
  
    
Can you post the output of "dmesg" which might include some OS warning messages. 

 "416     0       4821388" is some time after this happened, right? It shows that there aren't many files open.
 

 Andy
 
 On Tue, May 17, 2011 at 2:32 PM, yaohui <> wrote:
  It's a problem 800000 < 1000K,  but connections are less than 540k 
  
 cat /proc/sys/fs/file-nr result
 416     0       4821388
  
   
  ulimit -n 800000? 
  800000 < 1000K. 
 Is this the problem?
 What about cat /proc/sys/fs/file-nr?

 On Tue, May 17, 2011 at 9:38 AM, yaohui <> wrote:
  I do a test C1000k, when connections reach to 540k, I got a error {badmatch,{error,enfile}}. 
 {error,enfile} this error represents the files tables is full (for the entire OS)
 but my kernel 
 ulimit -n 
 800000
 cat /proc/sys/fs/file-max 
 2215800 
  
 {error,enfile} is this error means other problem?

_______________________________________________
erlang-questions mailing list

http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110518/649bd0fa/attachment.html>


More information about the erlang-questions mailing list