Memory leak: 4.6GB arrayBuffers after 62 seconds
Resolved 💬 2 comments Opened Mar 14, 2026 by bharatTejaIf Closed Mar 15, 2026
Description
Claude Code accumulated ~4.6 GB in arrayBuffers (5 GB external memory) within 62 seconds of startup, with a growth rate of ~32,860 MB/hour.
Diagnostics
- Claude Code version: 2.1.72
- Node: v24.3.0
- Platform: linux
- Uptime at dump: 62 seconds
- Trigger: manual
Memory snapshot
| Metric | Value |
|--------|-------|
| heapUsed | 5,033 MB |
| heapTotal | 45 MB |
| external | 4,995 MB |
| arrayBuffers | 4,591 MB |
| RSS | 585 MB |
| Growth rate | 32,860 MB/hour |
Potential causes
- MCP servers (Playwright, Pencil) sending large responses
- Large file reads or API responses accumulating in buffers
- Internal buffer retention issue
Full diagnostics JSON
{
"timestamp": "2026-03-12T00:59:55.995Z",
"sessionId": "f2c19fa5-8107-4320-84b1-f6390681b329",
"trigger": "manual",
"dumpNumber": 0,
"uptimeSeconds": 62.441979635,
"memoryUsage": {
"heapUsed": 5033259963,
"heapTotal": 45336576,
"external": 4995425723,
"arrayBuffers": 4591934287,
"rss": 597639168
},
"memoryGrowthRate": {
"bytesPerSecond": 9571111.798399983,
"mbPerHour": 32859.80460571283
},
"v8HeapStats": {
"heapSizeLimit": 5976391680,
"mallocedMemory": 5033522363,
"peakMallocedMemory": 597639168,
"detachedContexts": 0,
"nativeContexts": 1
},
"resourceUsage": {
"maxRSS": 597639168,
"userCPUTime": 26885546,
"systemCPUTime": 12261944
},
"activeHandles": 0,
"activeRequests": 0,
"openFileDescriptors": 86,
"analysis": {
"potentialLeaks": ["High memory growth rate: 32859.8 MB/hour"],
"recommendation": "WARNING: 1 potential leak indicator(s) found."
},
"platform": "linux",
"nodeVersion": "v24.3.0",
"ccVersion": "2.1.72"
}This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗