{"version":"2.1.71","anchor":"heap-dump-and-memory-diagnostics","canonical_anchor":"heap-dump-and-memory-diagnostics","heading":"Heap Dump and Memory Diagnostics","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.71\/e\/heap-dump-and-memory-diagnostics","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.71","markdown":"### Heap Dump and Memory Diagnostics\n\n**What**\n\nA new diagnostic tool for dumping the JS heap and analyzing memory usage, useful for debugging memory leaks in long-running Claude Code sessions.\n\n**Details**\n\n- Writes `.heapsnapshot` files to `~\/Desktop` for analysis\n- Generates a `-diagnostics.json` file with memory state information\n- Reports heap used, RSS, external memory, and total process memory\n- Detects potential leak indicators: high memory growth rate, active handles (timer\/socket leaks), open file descriptors (file\/socket leaks), detached contexts (iframe\/context leaks)\n- Distinguishes between native memory leaks vs heap leaks\n- Available through a diagnostic command\n\n**Evidence**\n\nHeap dump output (search for `\"[HeapDump] Heap dump written to\"`)"}