[erlang-questions] stress test with tcp_server

Johannes Govaerts <>
Tue Jun 26 12:57:17 CEST 2007


A while ago I did some performance tests on an erlang TCP application we have developped here.
After adjusting some kernel and erlang parameters, I managed to accept 300.000 TCP connections on one machine (distributed over 6 erlang nodes because each process can only have max. about 65.000 connections).  I ran erlang on Sun T1000 hardware with Solaris 10.

Regards,
Johannes

On Tuesday 26 June 2007 11:19:07 Gaspar Chilingarov wrote:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070626/729756d1/attachment.html>


More information about the erlang-questions mailing list