<div dir="ltr">Hi,<div>I have a prod BEAM running on OTP 22 . I recently saw a crash in prod, which generated a crash dump. The memory consumption of the process jumped rapidly from ~5G to ~40G within a matter of a couple of minutes. </div><div><br></div><div>Slogan: eheap_alloc: Cannot allocate 6664208 bytes of memory (of type "old_heap").</div><div>System version: Erlang/OTP 22 [erts-10.7.1] [source-471fe20989] [64-bit] [smp:36:36] [ds:36:36:10] [async-threads:1] [frame-pointer]<br></div><div><br></div><div>When I analyzed the crash dump in the crash dump viewer, it shows the following summary on the memory tab:</div><div><br></div><div>Total: 50 GB</div><div>Processes: 42 GB</div><div>Processes Used: 42 GB</div><div>System: 7728 MB</div><div>...</div><div><br></div><div>However, when I sum the "Memory: " information from the individual process entries in the crash dump, it only adds up to ~3G .</div><div><br></div><div>I do see some processes with "WARNING: This process has an incomplete heap. Some information might be missing. " However, from what I can tell from the code here: <a href="https://fburl.com/ye99sjs9">https://fburl.com/ye99sjs9</a> , this warning means that reference counted binaries are missing from the crash dump, and not the information about the process heap itself.</div><div><br></div><div>The crashdump itself doesn't seem to be truncated (don't see any such message on the "General Information" tab in the viewer).</div><div><br></div><div>What could explain the discrepancy here?<br></div><div><br><div><br></div></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Cheers,<br>Anshul Mittal</div></div></div></div></div></div>