Memory leak: ArrayBuffers consuming 4+ GB within seconds of startup

Resolved 💬 7 comments Opened Mar 10, 2026 by joeljose Closed Apr 10, 2026

Description

Claude Code accumulates ~4.1 GB in ArrayBuffers within ~39 seconds of uptime, suggesting a memory leak in buffer handling.

Diagnostics

From a manual heapdump:

| Metric | Value |
|---|---|
| Heap Used | 4.45 GB |
| ArrayBuffers | 4.13 GB (93% of heap) |
| External | 4.42 GB |
| RSS | 818 MB |
| Growth Rate | ~72,843 MB/hour |
| Uptime at dump | 38.6 seconds |

Environment

  • Claude Code version: 2.1.71
  • Node.js: v24.3.0
  • Platform: Linux 6.8.0-101-generic

Raw diagnostics JSON

{
  "timestamp": "2026-03-10T05:28:32.620Z",
  "trigger": "manual",
  "uptimeSeconds": 38.587780919,
  "memoryUsage": {
    "heapUsed": 4450413715,
    "heapTotal": 46627840,
    "external": 4418248419,
    "arrayBuffers": 4132418076,
    "rss": 818716672
  },
  "memoryGrowthRate": {
    "bytesPerSecond": 21216992.85373721,
    "mbPerHour": 72842.76416154284
  },
  "analysis": {
    "potentialLeaks": ["High memory growth rate: 72842.8 MB/hour"],
    "recommendation": "WARNING: 1 potential leak indicator(s) found."
  }
}

Heapsnapshot file is available if needed for further analysis.

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗