Thu Jun 23 12:11:26 CEST 2005
Before you start your client/server, do this in your shell
ulimit -n 10000
This will set the number of available file descriptors for processes
started from that shell.
Then start your client and server. This is assuming the kernel settings
allow that many file descriptors. If not you'll have to change that
limit first before tweaking it in your shell.
On 23 Jun 2005, at 08:48, luvish satija wrote:
> Hi all,
> I'm running an erlang server which accepts tcp
> connections from clients and in turn spawns a new
> process for every new connection to handle it.
> To test its capability, I run a Client process which
> can spawn any number of baby-clients. So i choose
> 10000. Now the problem is that after nearabout 1020
> clients, I start getting the "emfile" error and this
> occurs on both sides i.e. client and server side.
> Previously I was getting "enfile" error which I fixed
> by setting ERL_MAX_PORTS to 10000. I expected that
> this should solve the problem, but it went futile.
> I am a newbie to erlang, so I'm not able to figure out
> if i'm doing any silly mistake. Any kind of relevant
> guidance would really help me.
> Thanks in advance,
> Luvish Satija
> How much free photo storage do you get? Store your friends 'n family
> snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com
More information about the erlang-questions