[erlang-questions] os:cmd/1 does not work for ulimit -n
Thu May 14 11:36:57 CEST 2009
The ulimit is set per OS process.
You want to change the ulimit for the process that is hosting the Erlang
The os:cmd/1 will give you a another, new, OS process for each call. To
see this, try os:cmd("echo $$").
On Thu, 2009-05-14 at 14:37 +0530, MAthuvathanan Mou. wrote:
> Hi all,
> Using Linux (RedHat) I wanted to increase number of open files for
> that session only (temporarily)
> In the erl shell I did
> Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe]
> Eshell V5.5.5 (abort with ^G)
> 1> os:cmd('ulimit -n').
> 2> os:cmd('ulimit -n 2048').
> 3> os:cmd('ulimit -n').
> Why did open file not increase here?
> Mathuvathanan Mou.
> erlang-questions mailing list
More information about the erlang-questions