Skip to content

URGENT - "MEM LEAK", eats up gigabytes of ram until system crash #804

Closed

Description

@mchzimm

immediately after starting up (AKA "opencode" in Linux CLI, nothing else, no command issued) the app spawns "gopls" threads, each with increasing mem footprint, eventually crashing the OS, requires spamming CTRL-C ("/exit" won't fully quit the app).

Image

Activity

  1. mchzimm commented on Jul 9, 2025

    @mchzimm
    Author

    i re-installed go because i thought maybe that's the problem, but same issue

    go version
    go version go1.24.5 linux/amd64

  2. mchzimm commented on Jul 9, 2025

    @mchzimm
    Author

    so i started w/ v 0.2.6, because i remembered that one worked, then updated version-by-version. the "mem leak" issue starts with opencode v0.2.10, although it stabilizes after a few minutes and using up ~10gb, and cpu is going quite wild also:
    Image

    this only got worse then going forward from v0.2.11 onward, and i had to spam CTRL-C to stop before it'd lock up the OS:
    Image

  3. thdxr commented on Jul 10, 2025

    @thdxr
    Member

    do you have a lot of go.mod files in your repo?

  4. mchzimm commented on Jul 10, 2025

    @mchzimm
    Author

    do you have a lot of go.mod files in your repo?

    i'm not working on any go code, just python

  5. mchzimm commented on Jul 10, 2025

    @mchzimm
    Author

    i upg to 0.2.18, the mem increase and high cpu util issues seem to be resolved.

    still a lot of gopls but at with much less mem allocation and cpu utilization, and not keep spawning those repeatedly:
    Image
    Image

    so far so good!

  6. mchzimm commented on Jul 10, 2025

    @mchzimm
    Author

    i'll close this issue for now, as it seems to be resolved

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions