anthropics / anthropics/claude-code

[BUG] node.exe consumes 45 GB, exhausts commit limit and hard-locks Windows 11 (Event ID 2004 + Kernel-Power 41)

Open
#88,785 1 comment 0 reactions 0 assignees View on GitHub
area:core bug has repro perf:memory platform:windows
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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?

Image

[Bug] node.exe consumes 45 GB, exhausts commit limit and hard-locks Windows 11 (Event ID 2004 + Kernel-Power 41)


Preflight Checklist



  • [x] I have searched existing issues — this appears related to #42169, #32304, #33735, #25545

  • [x] This is a single bug report

  • [x] I have updated to the latest version and am monitoring (see Version note below)


Environment

  |  
-- | --
Claude Code (at time of crash) | 2.1.206, native install, stable channel
Claude Code (current) | 2.1.231
Launched via | Claude Desktop app for Windows
OS | Windows 11
CPU | AMD Ryzen 7 9700X
RAM | 32 GB DDR5 @ 6000 MT/s (31.1 GB usable)
GPU | AMD Radeon RX 9070 XT
Storage | NVMe SSD (ADATA Legend 960, 2 TB), health 99%
Project location | D: partition

In both cases where a 2004 warning was logged, total system freeze followed within 2–4 minutes.


What was ruled out



  • No WHEA-Logger events — no CPU or RAM hardware faults

  • No amdkmdag / display driver faults — not a GPU driver hang

  • No Disk or Ntfs errors; SMART reports drive health 99%, Percentage Used 1, zero media/data integrity errors — not a storage fault

  • Project size is small — the working directory held ~3,188 files across 464 folders totalling 207 MB. Not a large-repo file-watcher scenario.

  • Non-paged pool is normal — sits at 1.4 GB idle, rises ~200 MB with Claude Code running, and releases on exit. Not a kernel-side leak.

  • Increasing the commit limit did not prevent it. The Windows pagefile was raised from 2 GB to 16 GB, taking the commit limit from ~34 GB to 47.1 GB (confirmed in Task Manager). The 18:03 crash occurred after this change. A 45 GB single-process allocation defeats any reasonable pagefile size.


One behavioural note: raising the commit limit did change the timing. Before the change, crashes came 7–13 minutes apart. After it, the session ran nearly three hours before failing. Consistent with a steady leak against a larger ceiling rather than a sudden spike.


Expected behaviour


Memory should be bounded and reclaimed. A single Node process should not reach 45 GB during an ordinary session, and should not be able to exhaust the system commit limit to the point where the OS input stack and desktop compositor can no longer allocate.


Actual behaviour


Memory grows monotonically until the commit limit is exhausted, at which point Windows becomes completely unresponsive — no Ctrl+Alt+Del, no Task Manager — and only a hard power cycle recovers it.


Related issues



  • #42169 — claude.exe accumulating virtual memory, triggering Event ID 2004, DWM crashes. Closest match.

  • #32304 — claude.exe growing past 21 GB on Windows; reporter placed the leak at the Node.js/V8 layer rather than the LLM context layer

  • #33735 — claude process reaching 18 GB private memory in a long session, never reclaimed

  • #25545 — Claude Code consuming 22 GB+, system hang on a 32 GB Windows machine


Additional notes


Orphaned processes. #42169 reports that exited or crashed sessions leave processes still holding memory, requiring manual termination. That would be consistent with the escalating pattern across a single day here.


No supported way to bound it. There is no memory-limit setting in settings.json. NODE_OPTIONS=--max-old-space-size via the env key is the closest available lever, but it caps only the V8 heap, not total committed memory — and it is unclear how reliably it applies given Claude Code ships as a compiled binary. Users hitting this leak have no documented way to contain it.


Severity. This is not an application that needs restarting. It takes down the entire operating system with no clean recovery path, and repeated hard resets carry real risk of filesystem corruption and data loss.

### What Should Happen?

Memory should be bounded and reclaimed. A single Node process should not reach 45 GB during an ordinary session, and should not be able to exhaust the system commit limit to the point where the OS input stack and desktop compositor can no longer allocate.

### Error Messages/Logs

```shell

```

### Steps to Reproduce

Use claude

### Claude Model

Opus

### Is this a regression?

Yes, this worked in a previous version

### Last Working Version

_No response_

### Claude Code Version

2.1.206, native install, stable channel, current 2.1.231

### Platform

Anthropic API

### Operating System

macOS

### Terminal/Shell

Terminal.app (macOS)

### Additional Information

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reconciling the Windows 11 environment details with the contradictory macOS/platform fields and reproduce the issue using the stated Claude Code versions and "Use claude" step. Investigate the native install launched through the Claude Desktop app, including settings.json and NODE_OPTIONS, and use the reported Event ID 2004 and 45 GB node.exe growth as the failure criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.