<br>On 21 October 2011 16:49, Peer Stritzinger <<a href="mailto:peerst@gmail.com">peerst@gmail.com</a>> wrote:<br>[snip]<br>> Little program used to find limit and reason:<br>><br>> -module(test_fds).<br>> -compile([export_all]).<br>
><br>> count() -><br>>    count(1, []).<br>><br>> count(N, Fds) -><br>>    case file:open(integer_to_list(N), [write]) of<br>>        {ok, F} -><br>>            count(N+1, [F| Fds]);<br>>        {error, Err} -><br>
>            [ file:close(F) || F <- Fds ],<br>>            {Err, N}<br>>    end.<br><br><br>On my built-from-source :<br>Erlang R14B03 (erts-5.8.4) [source] [smp:2:2] [rq:2] [async-threads:0]<br><br>Eshell V5.8.4  (abort with ^G)<br>
1> pwd().<br>C:/erlang/scripts<br>ok<br>2> c(limit).<br>{ok,limit}<br>3> limit:count().<br>{system_limit,1021}<br><br>