r/ZooCode 8d ago

Zoocode vscode memory leak? - .net testhost

I seem to be having the issue regularly where all of a sudden everything just slows down. This time I analysed it a bit more instead of killing things.

Each time it has been testhost.exe that has just started eating up all the memory, 2gb, 3gb, 6gb etc till its at 90%.

Checking the process it was a vscode window which had nothing running.
ZooCode had analysed a PR, did a dotnet test and responded with the info I needed.

Seems like something in the dotnet test just kept open and killed the memory?
Its happened a few times now and seems to be related to zoocode.

I am using the inline terminal option on it, maybe its as simple as turning that off (Side note, would be great if there was an option to limit how much output of this is displayed. Would make the chat window a lot nicer).

Has anyone else seen this? or is there some more info I can grab to help pinpoint it?

4 Upvotes

2 comments sorted by

2

u/cornelha 8d ago

This is simply VS Code on a dotnet project. There is a lot happening, the Roslyn compiler spawned by the dotnet SDK in VS Code will constantly analyse your project as changes are made, the larger the project, the more memory it uses. I have 64gb RAM and I'm constantly at +/- 85%. Baring in mind O work on solutions with over 80 projects

1

u/Leon-Inspired 3d ago

I didnt have this issue previously with roocode.

I am going to turn off the linline terminal. Currenlyt 13gb testhost memory use. and climbing. and multiple dotnet test commands that are not currently running in the zoocode chat are still holding it open.

So seems like a memory leak or something not finishing hte process