Big memory leak. #3999

Closed
opened 2026-02-16 17:42:14 -05:00 by yindo · 6 comments
Owner

Originally created by @mattiasmicu on GitHub (Dec 30, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

so basicly every time i use opencode my computer slows down alot. And also open code offten becomes unresponsive so i desided to look at my activity monitor and opencode USED 11GB of ram!!!. And even right now as shown in the picture its using 10gb ram.

OpenCode version

1.0.125

Steps to reproduce

  1. Open opencode and chat a little bit.
  2. Look at your activity monitor.
  3. And see that its using alot of ram.

Screenshot and/or share link

Image Image

Operating System

MacOS Tahoe 21.2

Terminal

The cursor ide terminal.

Originally created by @mattiasmicu on GitHub (Dec 30, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description so basicly every time i use opencode my computer slows down alot. And also open code offten becomes unresponsive so i desided to look at my activity monitor and opencode USED 11GB of ram!!!. And even right now as shown in the picture its using 10gb ram. ### OpenCode version 1.0.125 ### Steps to reproduce 1. Open opencode and chat a little bit. 2. Look at your activity monitor. 3. And see that its using alot of ram. ### Screenshot and/or share link <img width="931" height="24" alt="Image" src="https://github.com/user-attachments/assets/224ba19b-d14f-4369-9f3f-086ee9df5c5a" /> <img width="951" height="114" alt="Image" src="https://github.com/user-attachments/assets/c59d5474-5d59-4e24-9954-4071de874e9a" /> ### Operating System MacOS Tahoe 21.2 ### Terminal The cursor ide terminal.
yindo added the bugperf labels 2026-02-16 17:42:14 -05:00
yindo closed this issue 2026-02-16 17:42:14 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 30, 2025):

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

  • #5700: Too high memory usage
  • #6213: Memory leak during prolonged usage
  • #5363: opencode eating 70gb of memory?
  • #6433: [BUG] Filtering the model list and resulting in an empty list causes a memory leak + high cpu spiral
  • #6172: High CPU usage (100%+) during LLM streaming in long sessions due to O(n) text buffer rendering
  • #3013: Uses a huge amount of memory
  • #3530: Excessive memory usage

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

@github-actions[bot] commented on GitHub (Dec 30, 2025): This issue might be a duplicate of existing issues. Please check: - #5700: Too high memory usage - #6213: Memory leak during prolonged usage - #5363: opencode eating 70gb of memory? - #6433: [BUG] Filtering the model list and resulting in an empty list causes a memory leak + high cpu spiral - #6172: High CPU usage (100%+) during LLM streaming in long sessions due to O(n) text buffer rendering - #3013: Uses a huge amount of memory - #3530: Excessive memory usage Feel free to ignore if none of these address your specific case.
Author
Owner

@FurryWolfX commented on GitHub (Dec 30, 2025):

I also submitted the same issue on Windows 11. Any update on the progress?

@FurryWolfX commented on GitHub (Dec 30, 2025): I also submitted the same issue on Windows 11. Any update on the progress?
Author
Owner

@mattiasmicu commented on GitHub (Dec 30, 2025):

no idea

@mattiasmicu commented on GitHub (Dec 30, 2025): no idea
Author
Owner

@mattiasmicu commented on GitHub (Dec 30, 2025):

Image
@mattiasmicu commented on GitHub (Dec 30, 2025): <img width="1898" height="122" alt="Image" src="https://github.com/user-attachments/assets/0d005e0b-8c44-477e-b5ad-65b3ffeedd23" />
Author
Owner

@rekram1-node commented on GitHub (Dec 30, 2025):

This is difficult to debug because ive literally never seen this, but anyway you can provide maybe a session that was causing this?

opencode export > session.json

@rekram1-node commented on GitHub (Dec 30, 2025): This is difficult to debug because ive literally never seen this, but anyway you can provide maybe a session that was causing this? `opencode export > session.json`
Author
Owner

@ham-zax commented on GitHub (Jan 8, 2026):

still the same issues, in 116 version

@ham-zax commented on GitHub (Jan 8, 2026): still the same issues, in 116 version
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3999