[BUG] Memory is near the limit (~5.3GB used of 6.9GB max), with a high growth rate
Resolved 💬 2 comments Opened Mar 12, 2026 by stevensacks Closed Apr 10, 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?
I launched Claude Code CLI today and immediately was told I needed to run /heapdump and report it to you
What Should Happen?
No memory leak
Error Messages/Logs
{
"timestamp": "2026-03-12T01:41:07.428Z",
"sessionId": "060434de-c93d-4ba3-88bd-0e0fa79da235",
"trigger": "manual",
"dumpNumber": 0,
"uptimeSeconds": 31.877974375,
"memoryUsage": {
"heapUsed": 5307004879,
"heapTotal": 48162816,
"external": 5268754565,
"arrayBuffers": 4979749691,
"rss": 693534720
},
"memoryGrowthRate": {
"bytesPerSecond": 21755921.873878475,
"mbPerHour": 74693.03011509181
},
"v8HeapStats": {
"heapSizeLimit": 6935674880,
"mallocedMemory": 5307267285,
"peakMallocedMemory": 693567488,
"detachedContexts": 0,
"nativeContexts": 1
},
"resourceUsage": {
"maxRSS": 710213107712,
"userCPUTime": 4238855,
"systemCPUTime": 1823445
},
"activeHandles": 0,
"activeRequests": 0,
"analysis": {
"potentialLeaks": [
"High memory growth rate: 74693.0 MB/hour"
],
"recommendation": "WARNING: 1 potential leak indicator(s) found. See potentialLeaks array."
},
"platform": "darwin",
"nodeVersion": "v24.3.0",
"ccVersion": "2.1.72"
}
Steps to Reproduce
Launched Claude with the claude command
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.72
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
The snapshot file that /heapdump generated is 38.3MB
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗