Erlang raise number of opened sockets, MacOS and CentOs

我是研究僧i 提交于 2019-12-24 04:46:07

问题


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:

  1. OS max open files limit, you can check how two tune it here
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!