opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Too high memory usage

Open klonuo opened this issue 1 month ago • 3 comments

Image

If it's of importance I start opencode web, then attach through CLI

The session wasn't too long, but I ended it when I saw RAM usage

klonuo avatar Dec 17 '25 19:12 klonuo

This issue might be a duplicate of existing issues. Please check:

  • #5363: opencode eating 70gb of memory?
  • #3995: Single opencode session is consuming 23+GB of memory
  • #3013: Uses a huge amount of memory
  • #4315: Memory stays unbounded: ACP session map + compacted tool outputs
  • #2805: High RAM usage in latest release

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Dec 17 '25 19:12 github-actions[bot]

I wanted to comment that while interacting with model opencode accumulates memory with each interaction, and it seems it will go like that indefinitely

One workaround for Windows users is to use opencode under WSL and to limit WSL memory, that way everything stays under control

klonuo avatar Dec 17 '25 22:12 klonuo