# ns-advanced-memory-leak-hunter

> Claude/Codex skill by [@nodesource](https://omgskills.com/library/nodesource/index.md) · 0 stars · Updated 2026-09-16

Performs an advanced N|Solid memory leak hunt comparing baseline vs peak heap evidence to isolate retained constructors, closures, and retainer paths. Use when the user reports recurring/staircase memory growth, elusive leaks, retained objects, closures holding references, or a standard heap sample/snapshot analysis was inconclusive. Prefer supplied baseline/peak assets; capture new samples only when needed.

## Install

```sh
git clone https://github.com/nodesource/nsolid-skills-plugin /tmp/nsolid-skills-plugin && ln -s /tmp/nsolid-skills-plugin/skills/ns-advanced-memory-leak-hunter ~/.claude/skills/ns-advanced-memory-leak-hunter
```

## From README

Phase 0: Reuse Evidence and Resolve Target If the user already supplied both baseline and peak evidence, skip straight to Phase 4. If no agent id is supplied, call information-dashboard (q: "app= ", start: "5m" when app is known) to resolve the required agent id; preserve the exact appName for downloads. Stop if no matching agent is connected. Phase 1: Establish the Baseline Take an initial low-overhead heap sample using heap-sampling (id: , duration: 30). Run the wait script using the absolute path of the directory where you read this SKILL.md: Call asset-summary on the returned baseline asset ID. If not ready, run node " /wait.cjs" 10 and retry; use assets-in-progress only as a secondary queue clue. Cap retries at 12; if still not ready, report the baseline asset ID and its pending state instead of continuing indefinitely. From the baseline summary, note the top allocating constructors (e.g., Object, Array, system / Map).

## Links

- HTML page: https://omgskills.com/library/nodesource/nsolid-skills-plugin/skills/ns-advanced-memory-leak-hunter/
- GitHub: https://github.com/nodesource/nsolid-skills-plugin
- Author: [@nodesource](https://omgskills.com/library/nodesource/index.md)

## More from this repo

- [ns-analyze-asset](https://omgskills.com/library/nodesource/nsolid-skills-plugin/skills/ns-analyze-asset/index.md) — Analyzes an existing N|Solid diagnostic asset by asset ID or local asset path using asset-summary.
   - [@nodesource](https://omgskills.com/library/nodesource/index.md) · 0 stars
- [ns-analyze-event](https://omgskills.com/library/nodesource/nsolid-skills-plugin/skills/ns-analyze-event/index.md) — Investigates an existing N|Solid event payload and correlates relevant MCP evidence.
   - [@nodesource](https://omgskills.com/library/nodesource/index.md) · 0 stars
- [ns-analyze-tracing](https://omgskills.com/library/nodesource/nsolid-skills-plugin/skills/ns-analyze-tracing/index.md) — Analyzes N|Solid/OpenTelemetry tracing evidence for request latency, HTTP errors, and service dependencies.
   - [@nodesource](https://omgskills.com/library/nodesource/index.md) · 0 stars
