[BUG] Memory leak in v2.1.71: ArrayBuffers growing at ~489 MB/hour

Resolved 💬 2 comments Opened Mar 14, 2026 by 101011101 Closed Apr 12, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

{
"timestamp": "2026-03-14T02:05:32.169Z",
"sessionId": "51cd7ed0-8e58-4b65-9c51-10aba33f9620",
"trigger": "manual",
"dumpNumber": 0,
"uptimeSeconds": 1869.2728896669998,
"memoryUsage": {
"heapUsed": 3421874471,
"heapTotal": 59685888,
"external": 3375371809,
"arrayBuffers": 3091300624,
"rss": 266141696
},
"memoryGrowthRate": {
"bytesPerSecond": 142377.12292901846,
"mbPerHour": 488.81305937239307
},
"v8HeapStats": {
"heapSizeLimit": 4741857280,
"mallocedMemory": 3422136865,
"peakMallocedMemory": 474185728,
"detachedContexts": 0,
"nativeContexts": 1
},
"resourceUsage": {
"maxRSS": 485566185472,
"userCPUTime": 87295014,
"systemCPUTime": 13979410
},
"activeHandles": 0,
"activeRequests": 0,
"analysis": {
"potentialLeaks": [
"High memory growth rate: 488.8 MB/hour"
],
"recommendation": "WARNING: 1 potential leak indicator(s) found. See potentialLeaks array."
},
"platform": "darwin",
"nodeVersion": "v24.3.0",
"ccVersion": "2.1.71"
}

What Should Happen?

not this

Error Messages/Logs

{
  "timestamp": "2026-03-14T02:05:32.169Z",
  "sessionId": "51cd7ed0-8e58-4b65-9c51-10aba33f9620",
  "trigger": "manual",
  "dumpNumber": 0,
  "uptimeSeconds": 1869.2728896669998,
  "memoryUsage": {
    "heapUsed": 3421874471,
    "heapTotal": 59685888,
    "external": 3375371809,
    "arrayBuffers": 3091300624,
    "rss": 266141696
  },
  "memoryGrowthRate": {
    "bytesPerSecond": 142377.12292901846,
    "mbPerHour": 488.81305937239307
  },
  "v8HeapStats": {
    "heapSizeLimit": 4741857280,
    "mallocedMemory": 3422136865,
    "peakMallocedMemory": 474185728,
    "detachedContexts": 0,
    "nativeContexts": 1
  },
  "resourceUsage": {
    "maxRSS": 485566185472,
    "userCPUTime": 87295014,
    "systemCPUTime": 13979410
  },
  "activeHandles": 0,
  "activeRequests": 0,
  "analysis": {
    "potentialLeaks": [
      "High memory growth rate: 488.8 MB/hour"
    ],
    "recommendation": "WARNING: 1 potential leak indicator(s) found. See potentialLeaks array."
  },
  "platform": "darwin",
  "nodeVersion": "v24.3.0",
  "ccVersion": "2.1.71"
}

Steps to Reproduce

Run claude code

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.71

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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