[erlang-questions] enfile error in socket

Oscar Hellström <>
Fri Jul 13 11:29:27 CEST 2007


Surindar Sivanesan wrote:
> Dear all,
> 
> We are using client server program in erlang using TCP/IP (gen_tcp).
> When more clients (around 100) are connected to the erlang server, the
> server willnot accept the connection and returns {error,enfile}.
> What is the reason of this error. Is there any way available to mitigate
> this error. Please give your inputs.
> Thanks in advance

{error,enfile} means that you are using as many file descriptors as your 
process is allowed on your operating system. Some OS has limits for both 
sockets and file descriptors. Try raising the appropriate limits in your 
OS.

> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions

Best Regards
-- 
Oscar Hellström, 
Erlang Training and Consulting
http://www.erlang-consulting.com/



More information about the erlang-questions mailing list