zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.57k stars 2.07k forks source link

Windows - Zed: Massive memory spike when open Terminal #13123

Open vinhphm opened 2 weeks ago

vinhphm commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When running without open terminal panel, Zed takes around 330MB of memory. But then if you open the terminal panel, it spikes to 3GB of memory.

Environment

Zed: v0.141.0 (Zed Dev 15d3e54ae3ac0e0e9256cdebfd41d9e38e6cb7eb) OS: Windows 10.0.22621 Memory: 15.7 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

notpeter commented 2 weeks ago

There is also a jump in memory usage on MacOS (300MB -> 700MB; +400MB) but a Windows spike of ~2700MB seems not right.

Thanks for reporting.

vinhphm commented 2 weeks ago

I notice it can happen very randomly and not just due to terminal. Here is the log file if it can help. Zed.log

For a better context, I'm in restricted network so there usually can be an SSL issue with network connection which explains many SSL errors in the log file. Usually, in VS Code, I use win-ca extension to walkaround this issue.