[Bug] Memory leak: Claude Code consumes excessive RAM when idle
Resolved 💬 3 comments Opened Feb 13, 2026 by ejsiddiqui Closed Feb 17, 2026
Bug Description
I have Intel Core i9-10900F PC with 32GB RAM which is a decent computer but in last session using Windows Powershell my PC got hanged, on inspecting Task Manager I found that Claude Code was consuming more than 22GB of RAM, although Claude Code instance was open but I was not running any task. My browser, explorer, Claude Code etc got crashed. However, after restart it is working fine now but now again it reached 19GB+ RAM while not task is being run.
<img width="1459" height="910" alt="Image" src="https://github.com/user-attachments/assets/329b3012-a118-4d31-a30b-914aa9969ca0" />
Environment Info
- Platform: win32
- Terminal: null
- Version: 2.1.39
- Feedback ID: 2665bb37-c9b5-4956-a219-a37ec47b3d47
Errors
[{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n at emit (node:events:92:22)\n at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n at request (B:/~BUN/root/claude.exe:45:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:14:33.965Z"},{"error":"Error: 1P event logging: 1 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (B:/~BUN/root/claude.exe:1909:2350)\n at async doExport (B:/~BUN/root/claude.exe:1909:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:15:03.093Z"},{"error":"Error: {\"message\":\"Failed to export 1 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"1909\",\"originalColumn\":\"1409\",\"line\":\"1909\",\"column\":\"1409\",\"sourceURL\":\"B:/~BUN/root/claude.exe\",\"stack\":\"Error: Failed to export 1 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n at doExport (B:/~BUN/root/claude.exe:1909:1409)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (B:/~BUN/root/claude.exe:1952:25028)\n at <anonymous> (B:/~BUN/root/claude.exe:1904:19992)\n at Jv1 (B:/~BUN/root/claude.exe:1904:20536)\n at <anonymous> (B:/~BUN/root/claude.exe:1905:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:15:03.094Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n at emit (node:events:92:22)\n at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n at request (B:/~BUN/root/claude.exe:45:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:15:26.226Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n at emit (node:events:92:22)\n at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n at request (B:/~BUN/root/claude.exe:45:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:16:24.575Z"},{"error":"Error: 1P event logging: 3 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (B:/~BUN/root/claude.exe:1909:2350)\n at async doExport (B:/~BUN/root/claude.exe:1909:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:17:41.993Z"},{"error":"Error: {\"message\":\"Failed to export 3 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"1909\",\"originalColumn\":\"1409\",\"line\":\"1909\",\"column\":\"1409\",\"sourceURL\":\"B:/~BUN/root/claude.exe\",\"stack\":\"Error: Failed to export 3 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n at doExport (B:/~BUN/root/claude.exe:1909:1409)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (B:/~BUN/root/claude.exe:1952:25028)\n at <anonymous> (B:/~BUN/root/claude.exe:1904:19992)\n at Jv1 (B:/~BUN/root/claude.exe:1904:20536)\n at <anonymous> (B:/~BUN/root/claude.exe:1905:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:17:41.994Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n at emit (node:events:92:22)\n at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n at request (B:/~BUN/root/claude.exe:45:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:17:42.408Z"},{"error":"Error\n at <anonymous> (B:/~BUN/root/claude.exe:43:10685)\n at emit (node:events:92:22)\n at <anonymous> (B:/~BUN/root/claude.exe:42:5642)\n at request (B:/~BUN/root/claude.exe:45:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:17:53.979Z"},{"error":"Error: 1P event logging: 4 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (B:/~BUN/root/claude.exe:1909:2350)\n at async doExport (B:/~BUN/root/claude.exe:1909:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T14:18:05.083Z"},{"error":"Error: {\"message\":\"Failed to export 4 events (code=ECONNABORTED, timeout of 10000ms ex…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗