Skip to content

[Performance] Critical CPU usage and memory leak even when starting a new session #12513

Closed
herjarsa/opencode
#2

Description

@roymecat

Description

The application becomes extremely sluggish immediately after startup. Even with a fresh session and no large files open, the system becomes nearly unresponsive.

Diagnostic Observations
Monitoring via top reveals critical resource consumption:

CPU Usage: Consistently hitting nearly 200%.
Virtual Memory: The process is requesting approximately 92.5GB, which is abnormal for a fresh session.
Steps to Reproduce:

Plugins

oh-my-opencode

OpenCode version

1.1.53

Steps to reproduce

Launch Opencode
Create or open a new session (with no large projects/files).
Wait for 30–60 seconds.
Check system resources via top or htop

Expected Behavior

The application should idle at a reasonable CPU and memory footprint when no heavy tasks are being performed

Screenshot and/or share link

Image Image

Operating System

Debian 13.3

CPU

Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz

Terminal

Termius

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Feb 6, 2026
  2. github-actions commented on Feb 6, 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. roymecat commented on Feb 6, 2026

    @roymecat
    Author

    I’ve done some further investigation into the 100% CPU usage. It appears that Opencode is pinning a single CPU core to 100% while other cores remain idle or underutilized.

  4. cloudpresser commented on Feb 14, 2026

    @cloudpresser

    I'm experiencing this too, and also very high memory usage (3.5gb on startup, and climbs). I don't have Oh-My-Opencode, but do have osgrep and some other plugins/mcps. Is there a way to inspect this to pinpoint?

    ram cpu
  5. felipecarvalho commented on Feb 14, 2026

    @felipecarvalho

    I'm experiencing this too, and also very high memory usage (3.5gb on startup, and climbs). I don't have Oh-My-Opencode, but do have osgrep and some other plugins/mcps. Is there a way to inspect this to pinpoint?

    ram cpu

    Same problem here with MacBook Air M1 on MacOS 26.2

  6. 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.

  7. added a commit that references this issue on Apr 25, 2026
    63f58d2
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