claude-code - 💡(How to fix) Fix [BUG] OOM caused by software update of claude code [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46872Fetched 2026-04-12 13:30:50
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

Code Example

OOM
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The RSS of Claude Code keeps growing until OOM. I suspect it is downloading new Claude Code in background. The proof is an empty file of new version under ~/.local/share/claude/versions/. Once I download the new version manually or through the script provided on the web site, the problem is gone.

What Should Happen?

should not oom

Error Messages/Logs

OOM

Steps to Reproduce

Run claude and leave there when a new version is available.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.101

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be fixed by preventing Claude Code from downloading new versions in the background or by manually downloading the new version when available.

Guidance

  • Investigate the background download process of Claude Code to determine why it's causing the RSS to grow until OOM.
  • Manually download the new version of Claude Code when available to prevent the background download process from consuming excessive resources.
  • Consider adding a configuration option or flag to disable background downloads or set a limit on the number of concurrent downloads.
  • Review the system resources and adjust them if necessary to prevent OOM errors.

Example

No code snippet is provided as the issue does not contain sufficient information about the code.

Notes

The issue seems to be related to the background download process of Claude Code, but the exact cause is unclear. The provided information suggests that manually downloading the new version resolves the issue, but a more permanent solution may be needed.

Recommendation

Apply workaround: Manually download the new version of Claude Code when available to prevent the background download process from consuming excessive resources. This is recommended because it provides a temporary solution to the problem, and the root cause of the issue is not yet fully understood.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING