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

Potential leak of handles and memory #108

Closed
tovine opened this issue Feb 11, 2019 · 4 comments
Closed

Potential leak of handles and memory #108

tovine opened this issue Feb 11, 2019 · 4 comments
Milestone

Comments

@tovine
Copy link

tovine commented Feb 11, 2019

It seems like something in the way you (or one of your dependencies) use java causes it to over time leak file handles, which in turn makes windows expand the virtual memory page table and eat all available RAM...

Please see these two comments on this issue for more details:
microsoft/vscode#50280 (comment)
microsoft/vscode#50280 (comment)

@angelozerr
Copy link
Contributor

angelozerr commented Feb 11, 2019 via email

@tovine
Copy link
Author

tovine commented Feb 12, 2019

  1. Open Windows Task Manager and make sure the "Handles" column in the "Details" tab is visible (right-click the headings, click "Select columns" and find it in the list).
  2. Open a XML file in VSCode
  3. In Task Manager, find VSCode, expand it and find the java.exe (in my case "OpenJDK Platform binary")
  4. Right click it and select "Go to details"
  5. Sort the list by "Handles" and watch java.exe make its way up towards the top

The number of handles seems to be slowly and steadily increasing; in my case it seems to be about 2-3 handles every few seconds, but leave it overnight or for a few days and it is likely to reach the 100k's range...

@snjeza
Copy link
Contributor

snjeza commented Feb 12, 2019

Related issue - redhat-developer/vscode-java#789

@snjeza
Copy link
Contributor

snjeza commented Feb 22, 2019

I can still reproduce the issue with JDK 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants