[erlang-questions] system_limit and enfile errors when acceptiing/opening connections
Jesper Louis Andersen
jesper.louis.andersen@REDACTED
Mon Aug 11 19:27:34 CEST 2008
On Mon, Aug 11, 2008 at 2:36 PM, Artak Avetisyan <artak@REDACTED> wrote:
> We are running Erlang R12 on FreeBSD 6.2-RELEASE, the kern.maxfiles
> limit is 8072 , and kern.maxfileperproc is 7264 per process, while
> fstat | grep beam | wc shows 1200 (way to low to get emfile or enfile
> anyway), however the web-service runs normally after a reboot.
While the kernel places an upper limit of 8072, the process might be
more limited than that. Take the shell-process executing the erl(1)
binary and try to run
ulimit -n (bash/zsh)
or
limits (csh/tcsh)
which will verify that you are not bumping your head against a
somewhat lower limit imposed there. Modulo some spurious extra
mappings in fstat(8) you might be hitting a 1024 limit there.
More information about the erlang-questions
mailing list