Node Memory Leak

Find why a Node.js server's memory climbs or it dies with heap out of memory. Places the growth first with process.memoryUsage() and v8.getHeapStatistics() (heapUsed is JavaScript objects, external and arrayBuffers are Buffers and addons, the rest is native), compares heap_size_limit with the container limit, then takes three heap snapshots on a running instance with steady load and a forced GC between them, reads the comparison for objects that survive, and walks retainers to the owner. Checks the usual owners: unbounded caches, per-request listeners, uncleared timers, closures over requests, unread fetch bodies. Use for "JavaScript heap out of memory", "node grows until OOMKilled", "RSS high but heap small", "heap snapshot in production". Not for leaks inside a browser page (browser-memory-leak-hunt), CPU or event-loop delay (profiling), the pod's OOMKilled event (k8s-triage), module errors (node-module-format-errors).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 85f1f0c5a6

Frequently asked questions

npx get-skill add greenblacked/node-memory-leak