[BUG] High memory usage warning shows incorrect memory (13GB+) on WSL2
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?
Describe the bug
High memory usage warning appears immediately after /clear, showing 13GB+
usage. However, Windows Task Manager shows VmmemWSL is only using
~2-3GB, indicating the reported value is incorrect.
Steps to reproduce
- Run Claude Code on WSL2 (Windows 11)
- Execute /clear
- Within seconds, warning appears: High memory usage: 13.38G / #helpdesk
Expected behavior
Memory warning should reflect actual memory usage, or not appear when
actual usage is within normal range.
Actual behavior
Warning fires immediately after /clear despite VmmemWSL showing only
~2-3GB usage. The reported value (13GB+) does not match actual system
memory consumption.
Environment
- OS: Windows 11 + WSL2
- Shell: zsh
What Should Happen?
Memory warning should not appear when actual system memory usage
(VmmemWSL) is within normal range (~2-3GB). If a warning is shown, it
should reflect actual memory consumption, not an inflated value.
Error Messages/Logs
High memory usage: 13.38G / #helpdesk
Steps to Reproduce
- Run Claude Code on WSL2 (Windows 11)
- Execute /clear
- Within a few seconds, warning appears: "High memory usage: 13.38G /
#helpdesk"
- Check Windows Task Manager → VmmemWSL shows only ~2-3GB
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.74
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗