memory leak #4279

Open
opened 2026-02-16 17:43:16 -05:00 by yindo · 8 comments
Owner

Originally created by @zx06 on GitHub (Jan 6, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Image

Plugins

oh-my-opencode

OpenCode version

1.1.3

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

windows11

Terminal

windows terminal

Originally created by @zx06 on GitHub (Jan 6, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description <img width="1095" height="212" alt="Image" src="https://github.com/user-attachments/assets/4d80d4af-e8e1-48c4-a4ab-2155f50d0f8f" /> ### Plugins oh-my-opencode ### OpenCode version 1.1.3 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="1095" height="212" alt="Image" src="https://github.com/user-attachments/assets/85f7f4fc-272d-4356-9249-ce240c481aa1" /> ### Operating System windows11 ### Terminal windows terminal
yindo added the windowsbugperf labels 2026-02-16 17:43:16 -05:00
Author
Owner

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

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

  • #6449: Big memory leak (10-11GB RAM usage reported)
  • #6213: Memory leak during prolonged usage on Windows 11
  • #6119: Critical memory leak with 72.5G VIRT memory consumption on startup
  • #4315: Memory stays unbounded with detailed analysis of ACP session map and tool output leaks
  • #5363: OpenCode eating 70GB of memory in background session
  • #6571: High memory usage reported

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

@github-actions[bot] commented on GitHub (Jan 6, 2026): This issue might be a duplicate of existing issues. Please check: - #6449: Big memory leak (10-11GB RAM usage reported) - #6213: Memory leak during prolonged usage on Windows 11 - #6119: Critical memory leak with 72.5G VIRT memory consumption on startup - #4315: Memory stays unbounded with detailed analysis of ACP session map and tool output leaks - #5363: OpenCode eating 70GB of memory in background session - #6571: High memory usage reported Feel free to ignore if none of these address your specific case.
Author
Owner

@hffmnnj commented on GitHub (Jan 6, 2026):

+1

@hffmnnj commented on GitHub (Jan 6, 2026): +1
Author
Owner

@wzx140 commented on GitHub (Jan 7, 2026):

+1

@wzx140 commented on GitHub (Jan 7, 2026): +1
Author
Owner

@kfuglsang commented on GitHub (Jan 7, 2026):

Can confirm the memory leak is quite bad on Windows. Typically have to kill OpenCode every 30 minutes (on a 32gb machine).

Just had a long-running prompt (i18n extraction in a codebase) that only did file reads and file writes for a period of time. This alone was clearly leaking as the Bun process raised from initially ~500mb memory to ~1,3gb in a few minutes, and still climbing.

@kfuglsang commented on GitHub (Jan 7, 2026): Can confirm the memory leak is quite bad on Windows. Typically have to kill OpenCode every 30 minutes (on a 32gb machine). Just had a long-running prompt (i18n extraction in a codebase) that only did file reads and file writes for a period of time. This alone was clearly leaking as the Bun process raised from initially ~500mb memory to ~1,3gb in a few minutes, and still climbing.
Author
Owner

@1075461847 commented on GitHub (Jan 8, 2026):

I'm using OpenCode on Windows 11 with PowerShell 7. After launching OpenCode, even if I don't initiate any conversation, the memory usage keeps increasing until it completely cripples my system. From Task Manager, I can see that numerous PowerShell processes are being spawned continuously, and new ones keep launching nonstop. I don't understand what's causing this issue.

Image
@1075461847 commented on GitHub (Jan 8, 2026): I'm using OpenCode on Windows 11 with PowerShell 7. After launching OpenCode, even if I don't initiate any conversation, the memory usage keeps increasing until it completely cripples my system. From Task Manager, I can see that numerous PowerShell processes are being spawned continuously, and new ones keep launching nonstop. I don't understand what's causing this issue. <img width="1370" height="1008" alt="Image" src="https://github.com/user-attachments/assets/46d2d327-bfb0-4018-9102-42d5a15ac955" />
Author
Owner

@ShuraWW commented on GitHub (Jan 27, 2026):

+1

Image
@ShuraWW commented on GitHub (Jan 27, 2026): +1 <img width="1437" height="91" alt="Image" src="https://github.com/user-attachments/assets/bde50343-7e3a-4621-a542-6e6e563beb96" />
Author
Owner

@HexaField commented on GitHub (Jan 31, 2026):

i'm trying to build on the opencode sdk and with just a few tests in a test suite my system quickly runs out of memory

@HexaField commented on GitHub (Jan 31, 2026): i'm trying to build on the opencode sdk and with just a few tests in a test suite my system quickly runs out of memory
Author
Owner

@reachcreator commented on GitHub (Feb 1, 2026):

Yeah this issue has definitely returned. Just managed to close it down before it crashed my 32gig box with just one OpenCode open and not doing anything else...

@reachcreator commented on GitHub (Feb 1, 2026): Yeah this issue has definitely returned. Just managed to close it down before it crashed my 32gig box with just one OpenCode open and not doing anything else...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4279