<div style="font-family: Helvetica; font-size: 13px; ">Hi, Anthony<div><br></div><div>Thank you for the explanation.</div><div><br></div><div>I tested on the VPS again and set `ulimit -n` to a number like 4096 takes effects.</div><div><br></div><div>I'm running Riak so cannot upgrade to R16B01 now.</div><div><br></div><div><br></div><div>Kind Regards,</div><div><br></div><div>--</div><div>goofansu</div><div><br></div></div>
<div><div><br></div><div>-- </div><div>Kind Regards</div><div>goofansu</div><div><br></div></div>
<p style="color: #A0A0A8;">在 2013年7月13日星期六,下午8:08,Anthony Ramine 写道:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>Hello,</div><div><br></div><div>ERL_MAX_PORTS sets the maximum number of running ports. Not the maximum number of file descriptors.</div><div><br></div><div>I guess you are running OS X which has a broken poll implementation and Erlang is forced to use select(), which is limited to FD_SETSIZE file descriptors. Fortunately, OS X's select() implementation can also be made to support an infinite number of file descriptors through a macro which I taught Erlang/OTP to use. Upgrade to R16B01 and you should be fine.</div><div><br></div><div>Regards, </div><div><br></div><div>-- </div><div>Anthony Ramine</div><div><br></div><div>Le 13 juil. 2013 à 08:34, goofansu a écrit :</div><div><br></div><blockquote type="cite"><div><div>I encounted "fd=1024 is larger than the largest allowed fd=1023", then I set the ERL_MAX_PORTS variable when start the erlang vm. But it takes no effect.</div><div><br></div><div>$ erl -env ERL_MAX_PORTS 4096</div><div><br></div><div>Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] [kernel-poll:false]</div><div><br></div><div>Eshell V5.9.1 (abort with ^G)</div><div>1> erlang:system_info(check_io).</div><div>[{name,erts_poll},</div><div> {primary,select},</div><div> {fallback,false},</div><div> {kernel_poll,false},</div><div> {memory_size,6344},</div><div> {total_poll_set_size,2},</div><div> {lazy_updates,true},</div><div> {pending_updates,0},</div><div> {batch_updates,false},</div><div> {concurrent_updates,false},</div><div> {max_fds,1024}]</div><div>2></div><div><br></div><div>The max_fds is always 1024.</div><div><br></div><div>-- </div><div>Kind Regards</div><div>goofansu</div><div><br></div><div>_______________________________________________</div><div>erlang-questions mailing list</div><div><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></div><div><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></div></div></blockquote></div></div></span>
</blockquote>
<div>
<br>
</div>