emfile error

Per Bergqvist per@REDACTED
Tue Dec 4 16:43:01 CET 2001


Under most Unices this is also limited by SC_OPEN_MAX|NOFILE or       
similiar.                                                             
BSDI also restricts it to FD_SETSIZE.                                 
Under Win32 there is a strange restriction (hardcoded) to 1024.       
(WinNT/2K/XP is actually only restricted by available memory for fds).
                                                                      
Hack you sys.c to fix it.                                             
                                                                      
/Per                                                                  
                                                                      
> On Mon, 3 Dec 2001, Rick Pettit wrote:                              
>                                                                     
> >I wonder if the entire node appears to the host OS as a single     
> >process (perhaps one with many threads), in which case I would     
> >expect this problem with most any concurrent server.               
>                                                                     
> This is correct. The Erlang runtime system appears to the host OS   
> as a single process.                                                
>                                                                     
> If you're using the default limit on file descriptors (e.g. 64),    
> that's usually not sufficient for most erlang applications.         
>                                                                     
> Try 'limit descriptors nnnn', or even 'unlimit descriptors'         
> (assuming you're running on a sensible OS.)                         
>                                                                     
> /Uffe                                                               
> --                                                                  
> Ulf Wiger, Senior Specialist,                                       
>    / / /   Architecture & Design of Carrier-Class Software          
>   / / /    Strategic Product & System Management                    
>  / / /     Ericsson Telecom AB, ATM Multiservice Networks           
>                                                                     
=========================================================             
Per Bergqvist                                                         
Synapse Systems AB                                                    
Phone: +46 709 686 685                                                
Email: per@REDACTED                                                 



More information about the erlang-questions mailing list