Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual collect garbage feature #76498

Closed
nico-abram opened this issue Jul 3, 2019 · 4 comments
Closed

Manual collect garbage feature #76498

nico-abram opened this issue Jul 3, 2019 · 4 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@nico-abram
Copy link

I'm opening 3 files with about 100k lines each. These files are getting completely rewritten often. After a couple minutes of developing, vscode starts to consume huge amounts of memory. What I usually do is reload the window, but that means resetting the terminal, and the WIP open files. It'd be nice to have a way to manually collect garbage/caches (I'm assuming the issue is because vscode is keeping some kind of cache/history of changes to these 100k line files).

@dbaeumer
Copy link
Member

dbaeumer commented Jul 3, 2019

@nico-abram can you provide us with a test case or GitHub repository we can clone that demos this. This sounds like a leak which shouldn't happen.

@jrieken do we have any instructions to take a heap snapshot to see what we leak?

@nico-abram
Copy link
Author

nico-abram commented Jul 3, 2019

Sure! Here, this repo has a test case with instructions in the readme: https://github.com/nico-abram/vscode-leak-test
My use case is I'm writing an emulator, outputting the cpu status on every instruction executed, and diffing against a log from a pre-existing emulator (Keeping all three files open, mostly looking at the diff file and occasionally switching to the real logs when requiring more context)

NOTE: The test case uses a batch script so it's windows only

@rebornix
Copy link
Member

@nico-abram can you please open Developer Tools and open Memory tab to record a heap snapshot and share with us?

@rebornix rebornix added the info-needed Issue requires more information from poster label Jul 18, 2019
@vscodebot vscodebot bot closed this as completed Jul 25, 2019
@vscodebot
Copy link

vscodebot bot commented Jul 25, 2019

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants