While tesing, I received erlang_error: "{badmatch, {error, system_limit}}, {module, function, 3}"?

I perform load testing of my server with the number of clients (200, 300, 500, ... 3000). For testing, I use Windows 64-bit systems, and I run the server on one system and clients on another system. All clients can successfully make connections, but after a minute or two minutes the server through erlang: error → "{badmatch, {error, system_limit}}, {module, accept_function, 3}" for some server instances and destroys these server instances. Can anyone have a solution for this?

Thanks in advance.

sreenivas, India.

+3
source share
1 answer

It looks like you are in the system limit for the number of ports that you can open on your system. Read this document here to see if you can determine your limits.

In particular:

Open ports The maximum number of open Erlang ports at the same time is 1024 by default. This limit can be raised to 268435456 at startup (see the ERL_MAX_PORTS environment variable in erlang (3)) the maximum limit of 268435456 open ports will be at least 32-bit architecture impossible to reach due to memory shortage.

Erlang .

+6

Source: https://habr.com/ru/post/1776159/


All Articles