Much larger old_heap than heap
Thu Mar 18 18:56:10 CET 2021
total_heap_size = heap_size + old_heap_size. Meaning 1st gen heap + 2nd gen
heap. So total_heap_size *should* be equal, or more probable, higher than
The reason you don't see that it shrinks during a garbage collect is ofc
that there's still living data on the heap.
Den ons 17 mars 2021 kl 21:53 skrev Loïc Hoguin <lhoguin@REDACTED>:
> I am trying to understand why the total_heap_size of a few processes
> is so much higher than heap_size. As can be seen in the following
> snippet, the old_heap is responsible for the discrepancy:
> > erlang:process_info(QPid, garbage_collection_info).
> How can I reduce this? Garbage collecting does nothing.
> Loïc Hoguin
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions