[BUG] High memory usage (30+ GB) and CPU (80+%)
Resolved 💬 4 comments Opened Oct 17, 2025 by clemlesne Closed Oct 20, 2025
Preflight Checklist
- [x] I have searched existing issues 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?
High memory usage, probably a memory leak, after 24h+ of continuous usage. Multiple terminals are opened. Every day I'm forced to kill one of the "claude" processed, consuming 30+ GB. For this particular instance the CPU usage is also 80-90% of a M1 Max CPU core.
What Should Happen?
Small CPU and memory footprint.
Error Messages/Logs
None.
Steps to Reproduce
- Run multiple claude sessions in multiple terminals
- Work for a day
- See the resource consumption
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
None
Claude Code Version
v2.0.19
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗