问题
I'm trying to open connections (sockets) to my Erlang server; everything works fine with around 100 paralell connections, but when I want more than 100 i get {error, closed}.
It may be something that has to do with OS file descriptor limit? If yes, can you guys please give me a solution? I use MacOS and CentOS.
Should I give some params to the Erlang Vm in vm.args file?
回答1:
Open sockets limit in erlang relies on two things:
- OS max open files limit, you can check how two tune it here
- Erlang VM
+Q
flag for max open ports, check out it here
来源:https://stackoverflow.com/questions/32410172/erlang-raise-number-of-opened-sockets-macos-and-centos