Skip to content

High Memory Usage on macOS 15.7 (Apple M4, 16GB, arm64) #9239

Closed

Description

@haosenssss

Description

On macOS 15.7 (Apple Silicon), the app’s memory usage becomes abnormally high during normal usage (or stays extremely high even when idle). This impacts overall system performance and may indicate a memory leak or some resources not being released properly.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Jan 18, 2026
  2. github-actions commented on Jan 18, 2026

    @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. mario-loomia commented on Jan 18, 2026

    @mario-loomia

    The memory bloat is so bad, it is hard to use. Had to cap memory so it is not crashing my system. 25GB+
    (Fedora 43) Would be amazing if you could look into this 🙏

  4. rekram1-node commented on Jan 18, 2026

    @rekram1-node
    Collaborator

    Can you share any steps to reproduce, any pattern of when it happens, are you writing rust code (special ask because rust lsp eats a lot of mem)

  5. mario-loomia commented on Jan 19, 2026

    @mario-loomia

    In terms of LSPs I got Typescript and Eslint.
    I also kicked out a plugin I was using to be sure.
    It feels like a memory leak FWIW.

  6. kov commented on Jan 20, 2026

    @kov

    Could you give it a try with #9693 applied?

  7. mario-loomia commented on Jan 21, 2026

    @mario-loomia

    I gave your branch a good go, unfortunately I kept running into bun crashes (not sure if related) so I could not really gather data for longer sessions.
    That being said, 1.1.28 shows improved memory handling. I can clearly see how the allocated memory is released again.

  8. mario-loomia commented on Jan 21, 2026

    @mario-loomia

    Fix message history cleanup to prevent memory leaks in TUI

    That went in with 1.1.27 and sounds like what I am seeing.

  9. hyperbolic-c commented on Jan 31, 2026

    @hyperbolic-c

    same issue on mac air m4.

    Image
  10. GaryReckard commented on Feb 2, 2026

    @GaryReckard

    I've been experiencing this almost daily. Usually, I notice it rise to the upper 20s or 30GB. This morning, after leaving it up overnight, it got over 50GB... had to restart Activity Monitor for it to even register it.
    Also, not sure why I see opencode-cli rather than opencode, like other users show.

    Image
  11. 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

bugSomething isn't workingperfIndicates 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