ELab Team
ELab Team
Aug 10, 2022 · Operations

How We Solved a Massive Memory Leak in a VSCode Extension Using llnode and heapdump

After releasing a new version of a VSCode extension, intermittent freezes were traced to a memory leak; the investigation used llnode and heapdump, tackled Electron version mismatches, extended DevTools parsing limits, and ultimately identified recursive socket callbacks as the root cause.

Memory LeakPerformance debuggingVSCode
0 likes · 15 min read
How We Solved a Massive Memory Leak in a VSCode Extension Using llnode and heapdump
Node Underground
Node Underground
Sep 25, 2020 · Backend Development

How a Tiny JSON.parse() Bug Crashed a Node.js Server – Inside the V8 script_list Leak

This article recounts a real‑world incident where a simple JSON.parse() try‑catch block triggered a massive memory leak in a Node.js 12 application, explains how the V8 engine’s script_list retained orphaned script objects, and shows how tools like gdb, llnode and heapdump can be used to locate and fix the issue.

GDBMemory LeakNode.js
0 likes · 10 min read
How a Tiny JSON.parse() Bug Crashed a Node.js Server – Inside the V8 script_list Leak