Skip to content

Too high memory usage #5700

Closed
Closed

Description

@klonuo
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

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    webRelates to opencode on web / desktop
    on Dec 17, 2025
  2. github-actions commented on Dec 17, 2025

    @github-actions
    Contributor

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

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

  3. klonuo commented on Dec 17, 2025

    @klonuo
    Author

    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

  4. reopened this on Dec 17, 2025
  5. removed
    webRelates to opencode on web / desktop
    on Dec 17, 2025
  6. shahidshabbir-se commented on Dec 24, 2025

    @shahidshabbir-se
    Image

    With one instance - using 5GB of ram

  7. ck3mp3r commented on Dec 30, 2025

    @ck3mp3r

    This is going to be a show stopper for me soon. 6GB... is there some hidden JVM process you are not telling us about 😆
    Joking aside, this needs fixing before it gets worse. It is already borderline...

  8. gamunu commented on Dec 30, 2025

    @gamunu

    I have noticed this as well.

    Image

    What I noticed is Most threads are idle or waiting (__ulock_wait2, kevent64, pthread_cond_wait). The memory is allocated and retained, not actively being used by hot code paths.

    I was running opencode for about 39 hours

    sample-opencode.txt

    I attached a sample, I'm not sure how much that will be useful. Will also try with inspect if possible

  9. dwat27 commented on Jan 11, 2026

    @dwat27

    she is back again !

    Image

    Version 1.1.12

  10. PwccaCode commented on Mar 5, 2026

    @PwccaCode

    no fixes for this?

  11. breggles commented on Mar 16, 2026

    @breggles

    Pls fix, k, thx, bye 🙂 (Windows 11, OpenCode 1.2.27)

  12. thdxr commented on Apr 2, 2026

    @thdxr
    Member

    Closing in favor of #20695 where we're collecting all memory-related problems. Please follow that issue for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

perfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions