优化一下内存啊 opencode.exe占用太大了 #4758

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

Originally created by @wuyifannppp on GitHub (Jan 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

用的是node_modules-opencode-windows-x64

动不动一会就6个G了

Originally created by @wuyifannppp on GitHub (Jan 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question 用的是node_modules-opencode-windows-x64 动不动一会就6个G了
yindo added the windowsperf labels 2026-02-16 17:45:18 -05:00
Author
Owner

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

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

  • #7752: High Virtual Memory usage causing system to hang
  • #7261: v1.1.6 still has memory bloat - heap not released + MCP orphan processes
  • #7046: Memory leak (v1.1.3/v1.1.4)
  • #6213: Memory leak during prolonged usage
  • #5363: opencode eating 70gb of memory
  • #5700: Too high memory usage
  • #3995: Single opencode session consuming 23+GB of memory

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

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7752: High Virtual Memory usage causing system to hang - #7261: v1.1.6 still has memory bloat - heap not released + MCP orphan processes - #7046: Memory leak (v1.1.3/v1.1.4) - #6213: Memory leak during prolonged usage - #5363: opencode eating 70gb of memory - #5700: Too high memory usage - #3995: Single opencode session consuming 23+GB of memory Feel free to ignore if none of these address your specific case.
Author
Owner

@Arcueld commented on GitHub (Jan 14, 2026):

有内存泄露 我都干到五十几G了

Image
@Arcueld commented on GitHub (Jan 14, 2026): 有内存泄露 我都干到五十几G了 <img width="662" height="73" alt="Image" src="https://github.com/user-attachments/assets/a64136bd-b3d0-4cbf-a9ba-728cb5d1800b" />
Author
Owner

@HustCoderHu commented on GitHub (Jan 14, 2026):

so i gave up win native, but to work with wsl

@HustCoderHu commented on GitHub (Jan 14, 2026): so i gave up win native, but to work with wsl
Author
Owner

@LeoNardo-LB commented on GitHub (Jan 21, 2026):

@HustCoderHu No memory leak case when U use WSL?

@LeoNardo-LB commented on GitHub (Jan 21, 2026): @HustCoderHu No memory leak case when U use WSL?
Author
Owner

@lexchou-aspose commented on GitHub (Jan 22, 2026):

Still memory leak in my WSL2 (over 24GB memory usage)

@lexchou-aspose commented on GitHub (Jan 22, 2026): Still memory leak in my WSL2 (over 24GB memory usage)
Author
Owner

@hzh294850-coder commented on GitHub (Jan 25, 2026):

熬一熬就好了,刚刚还19个G,占用干到95,突然又降下来了。熬过去就过去了,没熬过电脑就过去了Image

@hzh294850-coder commented on GitHub (Jan 25, 2026): 熬一熬就好了,刚刚还19个G,占用干到95,突然又降下来了。熬过去就过去了,没熬过电脑就过去了<img width="432" height="88" alt="Image" src="https://github.com/user-attachments/assets/2b81d38a-aedd-4aae-9904-4cb792a8d6bd" />
Author
Owner

@MixGeeker commented on GitHub (Feb 2, 2026):

192GB在复杂任务的情况下会爆炸()

@MixGeeker commented on GitHub (Feb 2, 2026): 192GB在复杂任务的情况下会爆炸()
Author
Owner

@LeoNardo-LB commented on GitHub (Feb 2, 2026):

休息好像好一些了,不会随便崩溃了,但是内存泄露的问题还是有,一直居高不下。
但是奇怪的是就算内存快爆炸了,也不会崩溃,就算同时打开其他占内存的应用也不会崩溃

@LeoNardo-LB commented on GitHub (Feb 2, 2026): 休息好像好一些了,不会随便崩溃了,但是内存泄露的问题还是有,一直居高不下。 但是奇怪的是就算内存快爆炸了,也不会崩溃,就算同时打开其他占内存的应用也不会崩溃
Author
Owner

@gemone commented on GitHub (Feb 7, 2026):

Image

kale

@gemone commented on GitHub (Feb 7, 2026): <img width="1277" height="64" alt="Image" src="https://github.com/user-attachments/assets/98c324e2-ba7a-4af2-802f-bb0bdcdad164" /> kale
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4758