在尝试时,我得到了erlang_error:“{badmatch,{error,system_limit}},{module,function,3}” [英] while tesing, I got erlang_error: "{badmatch,{error,system_limit}},{module,function,3}"?
问题描述
谢谢你提前..
sreenivas,印度。
似乎您已经在您的系统上允许打开的端口数达到系统限制。阅读此文档,了解您是否可以确定您的限制是。
特别是:
打开端口
的最大数量同时打开Erlang端口是
默认值1024.这个限制可以在
启动时
达到最多268435456(见环境变量
ERL_MAX_PORTS在erlang(3))
最高限制268435456开放端口
将至少在一个32位架构
不可能达到由于内存
短缺。 / p>
打开文件和套接字同时打开的文件
和套接字的最大
数量取决于最大
个Erlang端口可用,
操作系统特定设置和
限制。
I am doing load testing of my server with number of clients(200, 300, 500, ....3000). For testing I am using windows 64 bit systems and I am running server on one system and clients on another system. All the clients can do connections successfully, but after one minute or two minutes later, server through an erlang:error -> "{badmatch,{error,system_limit}},{module,accept_function,3}" for some server instances and dies those server instances. Can any on have a solution for this ?
Thank you in advance..
sreenivas, India.
It appears that you have hit the system limit on the number of ports you are allowed to open on your system. Have a read of this doc here to see if you can determine what your limits are.
In particular:
Open ports The maximum number of simultaneously open Erlang ports is by default 1024. This limit can be raised up to at most 268435456 at startup (see environment variable ERL_MAX_PORTS in erlang(3)) The maximum limit of 268435456 open ports will at least on a 32-bit architecture be impossible to reach due to memory shortage.
Open files, and sockets The maximum number of simultaneously open files and sockets depend on the maximum number of Erlang ports available, and operating system specific settings and limits.
这篇关于在尝试时,我得到了erlang_error:“{badmatch,{error,system_limit}},{module,function,3}”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!