[Bug] Memory leak in v2.1.15 causing excessive RAM consumption

Status Fixed / completed
Reported on v2.1.15
Maintainer reply ✓ Yes — whyuan-cc
Activity 6 comments · opened Jan 22, 2026 · closed Jan 22, 2026
💡 Likely answer: A maintainer (whyuan-cc, contributor) responded on this thread — see the highlighted reply below.

Bug Description
I updated to v2.1.15 and I'm having a lot of issues with memory all of the sudden. I also ran the native installer with claude install. One instance is now hogging 12.1G of RAM, which definitely did not happen before. Has anyone else had this issue?

Environment Info

  • Platform: linux
  • Terminal: cursor
  • Version: 2.1.15
  • Feedback ID: e4c22b21-1b6c-4c82-94b5-137ab5f41655

View original on GitHub ↗

6 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/16325
  2. https://github.com/anthropics/claude-code/issues/17483
  3. https://github.com/anthropics/claude-code/issues/18319

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

kahnpoint · 8 months ago

I am also experiencing this after updating, using iTerm2 on MacOS, installed via Homebrew.

aiongg · 8 months ago

Same issue here. Absolutely unusable and now rolling back doesn't seem to fix it either.

Update: I discovered this was a corrupt session log causing the issue, somehow one of my session logs in ~/.claude/projects had gone to like 20 GB. Not sure how that's possible, either way it's definitely a bug!

whyuan-cc contributor · 8 months ago

Thanks for reporting. I would appreciate if you could share a heap dump.

@aiongg RE: 20GB session log, did you have a huge git diff, which may include binaries, from a large project?

SEI-John · 8 months ago

Weird, I can't reproduce it now. At first I rebooted my PC and it was still an issue and hogging about 12G. Restarted claude just about 30mins ago to try and do a heap dump, and now it's running well below 1G

github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.