Serious memory leak on the Windows platform #7354

Open
opened 2026-02-16 18:06:56 -05:00 by yindo · 9 comments
Owner

Originally created by @jsrcode on GitHub (Jan 23, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Serious memory leak on the Windows platform
Operating system: Windows 11 24H2
OpenCode version: 1.1.34
This happens many times in a row and eats up all the remaining memory of the system, causing the CLI to crash
I have observed that the OpenCode memory usage is 12G in the task manager
Total device memory: 128G

Plugins

"oh-my-opencode",     "@tarquinen/opencode-dcp@latest",     "opencode-omit-max-tokens"

OpenCode version

1.1.34

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11 24H2

Terminal

Windows Terminal

Originally created by @jsrcode on GitHub (Jan 23, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Serious memory leak on the Windows platform Operating system: Windows 11 24H2 OpenCode version: 1.1.34 This happens many times in a row and eats up all the remaining memory of the system, causing the CLI to crash I have observed that the OpenCode memory usage is 12G in the task manager Total device memory: 128G ### Plugins "oh-my-opencode", "@tarquinen/opencode-dcp@latest", "opencode-omit-max-tokens" ### OpenCode version 1.1.34 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Windows 11 24H2 ### Terminal Windows Terminal
yindo added the windowsbugperf labels 2026-02-16 18:06:56 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

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

  • #8257: Memory leak: MCP clients not closed before reassignment
  • #6213: Memory leak during prolonged usage (also on Windows 11)
  • #9438: Lots of RAM Usage
  • #6449: Big memory leak
  • #3530: Excessive memory usage

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

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #8257: Memory leak: MCP clients not closed before reassignment - #6213: Memory leak during prolonged usage (also on Windows 11) - #9438: Lots of RAM Usage - #6449: Big memory leak - #3530: Excessive memory usage Feel free to ignore if none of these address your specific case.
Author
Owner

@jsrcode commented on GitHub (Jan 23, 2026):

Image In the normal state, it also eats two Gs, which is too exaggerated
@jsrcode commented on GitHub (Jan 23, 2026): <img width="658" height="27" alt="Image" src="https://github.com/user-attachments/assets/d88ed631-36c5-4bdb-8512-0f5fb77af6c5" /> In the normal state, it also eats two Gs, which is too exaggerated
Author
Owner

@jsrcode commented on GitHub (Jan 23, 2026):

Image After just 6 minutes of running he already has 2GB more memory
@jsrcode commented on GitHub (Jan 23, 2026): <img width="652" height="29" alt="Image" src="https://github.com/user-attachments/assets/fbf35345-11bd-4169-8ab7-113a8c5b7405" /> After just 6 minutes of running he already has 2GB more memory
Author
Owner

@jsrcode commented on GitHub (Jan 23, 2026):

Image This is after 19 minutes of operation already reaches 7GB, close to 8GB
@jsrcode commented on GitHub (Jan 23, 2026): <img width="597" height="24" alt="Image" src="https://github.com/user-attachments/assets/af162d32-29d6-4773-a366-eadb7cf865b6" /> This is after 19 minutes of operation already reaches 7GB, close to 8GB
Author
Owner

@jsrcode commented on GitHub (Jan 23, 2026):

Image oh no. After twenty minutes, the memory has reached a terrifying 8GB.
@jsrcode commented on GitHub (Jan 23, 2026): <img width="632" height="20" alt="Image" src="https://github.com/user-attachments/assets/acf61fa8-d4b3-4a9e-a9b0-4887a6068c47" /> oh no. After twenty minutes, the memory has reached a terrifying 8GB.
Author
Owner

@jsrcode commented on GitHub (Jan 23, 2026):

Image 29 minutes 10GB
@jsrcode commented on GitHub (Jan 23, 2026): <img width="661" height="24" alt="Image" src="https://github.com/user-attachments/assets/aab635ab-f1f3-439d-b311-836313d76f12" /> 29 minutes 10GB
Author
Owner

@jsrcode commented on GitHub (Jan 23, 2026):

Image This was after 34 minutes of running and he was really bad that he would crash my computer and my games and other software clients hanging in the background had crashed many times by him
@jsrcode commented on GitHub (Jan 23, 2026): <img width="636" height="26" alt="Image" src="https://github.com/user-attachments/assets/9208b8e4-5a11-47d4-baad-12fa67a74761" /> This was after 34 minutes of running and he was really bad that he would crash my computer and my games and other software clients hanging in the background had crashed many times by him
Author
Owner

@jsrcode commented on GitHub (Jan 23, 2026):

Image After 47 minutes of running 12GB of RAM has been eaten
@jsrcode commented on GitHub (Jan 23, 2026): <img width="671" height="30" alt="Image" src="https://github.com/user-attachments/assets/780d79b1-38c2-4705-b168-139cb3e0a3f9" /> After 47 minutes of running 12GB of RAM has been eaten
Author
Owner

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

Yep, uses way too much memory.

@tskimmett commented on GitHub (Feb 13, 2026): Yep, uses way too much memory.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7354