I am not an expert in Erlang but we use it in the company and I am struggling with an out of memory error reading a ~1GB. I have tried multiple ERL settings to set the max heap size, etc., but nothing seems to address the issue. I am out of luck and not sure what to do next to try and solve for the issue, as this environment need to load and process many files during startup, using Bitcask in the end. So what I noted below is my attempt to rule out any system or environment or dependancy issue.
To be clear, the issue is not present on OTP18 but fails on OTP19, and this is booting the VM with no settings or overrides.
I am running OTP19 on Solaris 10 – yes yes I know this is old and part of my technical debt I am trying to solve.
I would appreciate any help or guidance, thank you!
dd if=/dev/zero of=1GB_file.bin bs=1M count=1024
erl
A = file:read_file("1GB_file.bin").
When executing the last command it crashes.