[erlang-questions] VM leaking memory

Frank Muller frank.muller.erl@REDACTED
Fri Feb 1 12:14:01 CET 2019


Here is the beginning of recon_alloc:snapshot/1.
Yes, Lukas can help on this. VM’s memory management looks like a mystery.



Hi Frank,
>
> The binary_alloc seems to be the one misbehaving (not 100% sure, see
>> attached screenshot).
>>
>
> I agree, it's your binary_alloc. How many single block carriers in
> binary_alloc do you have? What about multi-block carriers? Can you share a
> recon_alloc snapshot?
>
>
>> Is there a way to tweak this allocator strategy SBC/MBC? Lukas Larsson
>> maybe?
>>
>
> For us, RabbitMQ, defaulting to a lower multi-block carrier size (+MBlmbcs
> <http://erlang.org/doc/man/erts_alloc.html#M_lmbcs>) as well as changing
> the allocation strategy (+MBas
> <http://erlang.org/doc/man/erts_alloc.html#M_as>) made a positive
> difference. From the screenshot that you've shared, I am guessing that this
> won't work for you. This is the process that we went through at RabbitMQ:
> https://groups.google.com/forum/#!msg/rabbitmq-users/LSYaac9frYw/LNZDZUlrBAAJ
>
> I found Lukas' Erlang Memory Management Battle Stories from 2014 to be a
> great erts_alloc companion:
> http://www.erlang-factory.com/static/upload/media/139454517145429lukaslarsson.pdf
> & https://www.youtube.com/watch?v=nuCYL0X-8f4
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190201/16e3e441/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG_6342.jpg
Type: image/jpg
Size: 199468 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190201/16e3e441/attachment.jpg>


More information about the erlang-questions mailing list