Repeated high memory usage (ArrayBuffer leak, ~2.7GB in 64s)

Resolved 💬 2 comments Opened Mar 12, 2026 by keepselvesreal Closed Apr 10, 2026

Environment

  • Claude Code: 2.1.73
  • Node: v24.3.0
  • Platform: Linux 6.17.0-14-generic

Problem

Repeated high memory usage on every session. ~2.7GB RSS within 64 seconds of starting.
ArrayBuffers consume 2.39GB (87% of heap).
Memory growth rate: ~43MB/sec.
This happens consistently across sessions — not a one-time occurrence.

Diagnostics (from /heapdump)

{
  "uptimeSeconds": 64.2,
  "memoryUsage": {
    "heapUsed": 2743545909,
    "heapTotal": 47415296,
    "external": 2707016188,
    "arrayBuffers": 2392893780,
    "rss": 2758692864
  },
  "memoryGrowthRate": {
    "bytesPerSecond": 42970732,
    "mbPerHour": 147528
  },
  "activeHandles": 0,
  "activeRequests": 0,
  "openFileDescriptors": 61,
  "analysis": {
    "potentialLeaks": ["High memory growth rate: 147528.3 MB/hour"],
    "recommendation": "WARNING: 1 potential leak indicator(s) found."
  }
}

Key observations

  • 87% of memory is in ArrayBuffers — suggests a buffer/streaming leak
  • activeHandles and activeRequests are both 0, yet memory keeps growing
  • Happens repeatedly across fresh sessions, not tied to a specific command
  • Heapsnapshot file available on request

Expected behavior

Memory usage should remain stable during idle/low-activity periods.

View original on GitHub ↗

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