Hi,
I am attempting to set up Yaws (an Erlang web server) but when installing some of the prerequisites I ran into this problem:
$ ./rebar build-plt
Code:
==> erlsom (build-plt)
eheap_alloc: Cannot allocate 71302344 bytes of memory (of type "heap").
Crash dump is being written to: erl_crash.dump...done
It looks like the OpenBSD defaults are too restrictive or are tuned for a much lower resource machine.
I've made some changes to
/etc/login.conf resulting in:
$ ulimit -a
Code:
time(cpu-seconds) unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 1572864
stack(kbytes) 16384
lockedmem(kbytes) 647766
memory(kbytes) 1921116
nofiles(descriptors) 2048
processes 256
But that hasn't helped with this particular memory constraint. I suppose there might be a way to allow significant programs to have access to the machine's resources by setting values in
/etc/sysctl.conf?
Does anyone have any tuning advice or know of any references that can be shared?