Skip to main content

Memory Leak Debugging

Skill Verified Active

Diagnoses and resolves memory leaks in JavaScript/Node.js applications. Use when a user reports high memory usage, OOM errors, or wants to analyze heapsnapshots or run memory leak detection tools like memlab.

Purpose

To empower developers to efficiently find and resolve memory leaks in their JavaScript and Node.js applications, improving performance and stability.

Features

  • Diagnose memory leaks in JavaScript/Node.js
  • Analyze heap snapshots using memlab
  • Identify common leak culprits (closures, listeners, DOM)
  • Capture browser/Node.js memory snapshots
  • Provide guidance on fixing leaks

Use Cases

  • When users report high memory usage or OOM errors.
  • When needing to analyze heap snapshots for memory leaks.
  • When running memory leak detection tools like memlab.
  • When investigating detached DOM nodes or unclosed event listeners.

Non-Goals

  • Directly reading raw `.heapsnapshot` files.
  • Fixing leaks without user confirmation for potential intentional caches (e.g., detached DOM nodes).
  • Performing actions outside of memory leak diagnostics and resolution.

Practices

  • Code Quality
  • Debugging
  • Performance Analysis

Prerequisites

  • Node.js v20.19+ or newer maintenance LTS
  • Chrome current stable version or newer
  • npm
  • chrome-devtools-mcp installed and configured

Compliance

  • info:Telemetry opt-inThe README mentions usage statistics collection is enabled by default and can be opted out with a flag, but does not detail the specific fields collected or provide a schema.

Installation

First, add the marketplace

/plugin marketplace add ChromeDevTools/chrome-devtools-mcp
/plugin install chrome-devtools-mcp@chrome-devtools-plugins

Quality Score

Verified
99 /100
Analyzed about 20 hours ago

Trust Signals

Last commitabout 23 hours ago
Stars39.5k
LicenseApache-2.0
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.