[erlang-questions] apparent memory leak in OTP 17

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Fri Sep 5 17:55:19 CEST 2014

One jiffy problem I've seen is that the binaries it produces are
subbinaries over the original. So if one process decodes and then stuffs
data into ETS, you keep the large binaries around. Since it is you
reporting it, I guess you have ruled out the possibility, but it is one
thing to look out for.

On Fri, Sep 5, 2014 at 1:31 PM, mats cronqvist <mats.cronqvist@REDACTED>

>   I have an application (a web server using cowboy and jiffy) that keeps
> getting killed by the Linux out-of-memory assassin.
>   This is rather unsurprising given that the emulator seems to allocate a
> factor of 1000 times more memory than it uses.
>   E.g., in the snapshot below, erlang:memory/0 reports memory usage of
> ~500 Mb, while /proc/self/stat reports ~600 Gb.
>   Digging into the allocator info reveals that the binary_alloc /
> mbcs_pool allocator has booked 606086.75 Mb, and uses 357.35 Mb.
>   For the brave, I have attached a file full of system data.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140905/b66a5e8c/attachment.htm>

More information about the erlang-questions mailing list