[erlang-questions] stress test with tcp_server

Gaspar Chilingarov nm@REDACTED
Tue Jun 26 11:19:07 CEST 2007

Jeremy Chow wrote:
> I've tried use command ulimit to increase the file descriptors number to
> 10240.
> but the connections number was no more than 1024, sometimes is 1017,
> sometimes is 1018.

it depends how much files descriptors already allocated by this user at
the moment -- because file descriptor limit is set for users and not for
1 process.

Anyway, after some experiments with FreeBSD I was able to push max
connection count to 4999 open connections

You should tune sysctl's to increase a hard limits
  kern.maxfiles: 25000
  kern.maxfilesperproc: 20000

I've also tried to increase kern.ipc.nmbclusters=64000 but without success.

Are there any limit in 5000 FD's hard coded in erlang???

Setting ERL_MAX_PORTS also does not change the situation.


Gaspar Chilingarov

System Administrator,
Network security consulting

t +37493 419763 (mob)
i 63174784
w http://zanazan.am/

More information about the erlang-questions mailing list