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

Open
opened 2026-02-16 18:10:41 -05:00 by yindo · 4 comments
Owner

Originally created by @roymecat on GitHub (Feb 6, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @roymecat on GitHub (Feb 6, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 <img width="653" height="398" alt="Image" src="https://github.com/user-attachments/assets/9dd6382b-8ef1-4973-8fb3-174216cecbbc" /> <img width="3199" height="1790" alt="Image" src="https://github.com/user-attachments/assets/0daa5852-342b-43e2-8872-6737bbe44338" /> ### Operating System Debian 13.3 ### CPU Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz ### Terminal Termius
yindo added the bugperf labels 2026-02-16 18:10:41 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 6, 2026):

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

  • #12255: cpu and memory is high at the latest version (similar symptoms starting from v1.1.50)
  • #9239: High Memory Usage on macOS 15.7 (Apple M4, 16GB, arm64) (memory leak symptoms)
  • #11119: High CPU usage (100% single core) during TUI rendering (similar CPU usage pattern)
  • #9140: Memory leak: Unbounded caches grow without limit (underlying cause of memory issues)
  • #12078: Interface instability and slow performance with complex sessions (performance degradation)

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

@github-actions[bot] commented on GitHub (Feb 6, 2026): This issue might be a duplicate of existing issues. Please check: - #12255: cpu and memory is high at the latest version (similar symptoms starting from v1.1.50) - #9239: High Memory Usage on macOS 15.7 (Apple M4, 16GB, arm64) (memory leak symptoms) - #11119: High CPU usage (100% single core) during TUI rendering (similar CPU usage pattern) - #9140: Memory leak: Unbounded caches grow without limit (underlying cause of memory issues) - #12078: Interface instability and slow performance with complex sessions (performance degradation) Feel free to ignore if none of these address your specific case.
Author
Owner

@roymecat commented on GitHub (Feb 6, 2026):

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.

@roymecat commented on GitHub (Feb 6, 2026): 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.
Author
Owner

@cloudpresser commented on GitHub (Feb 13, 2026):

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
@cloudpresser commented on GitHub (Feb 13, 2026): 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? <img width="464" height="138" alt="ram" src="https://github.com/user-attachments/assets/e9eb24e3-35ab-477b-a62a-f1da288b3ce4" /> <img width="464" height="52" alt="cpu" src="https://github.com/user-attachments/assets/693b8595-39a1-4b8a-a0ce-d37003658f74" />
Author
Owner

@felipecarvalho commented on GitHub (Feb 14, 2026):

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

@felipecarvalho commented on GitHub (Feb 14, 2026): > 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? > > <img alt="ram" width="464" height="138" src="https://private-user-images.githubusercontent.com/59715908/549760837-e9eb24e3-35ab-477b-a62a-f1da288b3ce4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEwNjE5MDgsIm5iZiI6MTc3MTA2MTYwOCwicGF0aCI6Ii81OTcxNTkwOC81NDk3NjA4MzctZTllYjI0ZTMtMzVhYi00NzdiLWE2MmEtZjFkYTI4OGIzY2U0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjE0VDA5MzMyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiOTI5ZjViNTIxMDViYWJjYTI1MDU5OWRlZjc3ZGI3MmZjMWJkNTNjZTQzZWEyMTI5NGQ0MGQ3YWViZjk3ZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RAjdGhKUogBAB9dsf0O8CvjC6R6Uf_N3kv2NhZPRWU0"> <img alt="cpu" width="464" height="52" src="https://private-user-images.githubusercontent.com/59715908/549760379-693b8595-39a1-4b8a-a0ce-d37003658f74.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEwNjE5MDgsIm5iZiI6MTc3MTA2MTYwOCwicGF0aCI6Ii81OTcxNTkwOC81NDk3NjAzNzktNjkzYjg1OTUtMzlhMS00YjhhLWEwY2UtZDM3MDAzNjU4Zjc0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjE0VDA5MzMyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzZhNWM1OWM2YjlhOTcyNWE4Njk0YmRiOTJlMDVmMDQyMTQxYTA4MTVjOWE3NDFkMzM0MDRlOGE2NTYxM2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.G8Nber53MfkjW5brXRDY-err96H_JOLkTiDxqpL6teQ"> Same problem here with MacBook Air M1 on MacOS 26.2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8732