Memory leak: 61GB/hour growth rate in v2.1.76

Resolved 💬 4 comments Opened Mar 26, 2026 by nhabb Closed Apr 27, 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?

After running claude code for a few minutes its memory usage incrases alot and crashed my devide it is using approximately 61Gb of memory per hour as per the log file that it is generating.the log file atatched is neging generated plus a massive dump file.

What Should Happen?

claude code over using memory

Error Messages/Logs

{
  "timestamp": "2026-03-25T18:38:05.341Z",
  "sessionId": "744d11d7-4665-4ead-8b08-880c13b9979e",
  "trigger": "manual",
  "dumpNumber": 0,
  "uptimeSeconds": 27.768803221,
  "memoryUsage": {
    "heapUsed": 1195959240,
    "heapTotal": 41965568,
    "external": 1166357621,
    "arrayBuffers": 834103291,
    "rss": 493703168
  },
  "memoryGrowthRate": {
    "bytesPerSecond": 17779058.178014666,
    "mbPerHour": 61039.55215535431
  },
  "v8HeapStats": {
    "heapSizeLimit": 7015915520,
    "mallocedMemory": 1199374069,
    "peakMallocedMemory": 701591552,
    "detachedContexts": 0,
    "nativeContexts": 1
  },
  "resourceUsage": {
    "maxRSS": 701591552,
    "userCPUTime": 9957031,
    "systemCPUTime": 4195644
  },
  "activeHandles": 0,
  "activeRequests": 0,
  "openFileDescriptors": 55,
  "analysis": {
    "potentialLeaks": [
      "High memory growth rate: 61039.6 MB/hour"
    ],
    "recommendation": "WARNING: 1 potential leak indicator(s) found. See potentialLeaks array."
  },
  "smapsRollup": "00200000-7ffcb3d13000 ---p 00000000 00:00 0                              [rollup]\nRss:              483180 kB\nPss:              480649 kB\nPss_Dirty:        432928 kB\nPss_Anon:         432928 kB\nPss_File:          47721 kB\nPss_Shmem:             0 kB\nShared_Clean:       2580 kB\nShared_Dirty:          0 kB\nPrivate_Clean:     47672 kB\nPrivate_Dirty:    432928 kB\nReferenced:       483180 kB\nAnonymous:        432928 kB\nKSM:                   0 kB\nLazyFree:              0 kB\nAnonHugePages:         0 kB\nShmemPmdMapped:        0 kB\nFilePmdMapped:         0 kB\nShared_Hugetlb:        0 kB\nPrivate_Hugetlb:       0 kB\nSwap:                  0 kB\nSwapPss:               0 kB\nLocked:                0 kB\n",
  "platform": "linux",
  "nodeVersion": "v24.3.0",
  "ccVersion": "2.1.76"
}

Steps to Reproduce

just running claude code

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.76 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

also on normal terminal, not just vs code terminal

View original on GitHub ↗

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