Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Reloading modules leaks memory #109

Closed
MikhailArkhipov opened this issue Sep 18, 2018 · 6 comments
Closed

Reloading modules leaks memory #109

MikhailArkhipov opened this issue Sep 18, 2018 · 6 comments
Assignees
Labels
blocked bug Something isn't working priority:P1
Milestone

Comments

@MikhailArkhipov
Copy link

Clone dups.
Open it
Open few files, do some random go to definitions.
Leave product inactive

Observe RAM growth and some odd module reloading

image

@heyakyra
Copy link

Found this bug via microsoft/vscode-python#2594

Is there a workaround for this? I'm basically blocked at work because all 16G ram + 8G swap gets completely consumed after half an hour of editing

@MikhailArkhipov
Copy link
Author

@heyakyra - you are probably hitting #193. This one is not too bad.

@MikhailArkhipov MikhailArkhipov modified the milestones: Oct 2018.1, Oct 2018.2 Oct 8, 2018
@MikhailArkhipov
Copy link
Author

Depends on #209

AlexanderSher added a commit to AlexanderSher/python-language-server that referenced this issue Oct 18, 2018
- Fix issue microsoft#109: Reloading modules leaks memory
- Fix issue microsoft#278: Huge memory usage when analysis 9 lines python code
- Some code clean-up
@GinRyan
Copy link

GinRyan commented Nov 11, 2018

It's still happening in language-server.0.1.60
(Platform: on Windows 10 1803, VSCode 1.28.2, Python 3.6.4)

default

There are just 5 python scripts in my project.

After I killed this process, it launched again and auto increment to 4GB even 10GB .Auto increment step by 10MB per sec.

I just import numpy and matplotlib in this project,. without peewee.

  • New in 11 nov:
    This problem happened in 10 nov. But today I can't reproduce this problem in the same project again now.

@jakebailey
Copy link
Member

jakebailey commented Nov 14, 2018

@GinRyan Unless you can see in your output "reloading modules" repeated while memory usage grows, your issue is likely unrelated to the original bug reported here. If you believe you have an issue we can reproduce, I'd suggest making a new issue with more information instead of commenting on older issues like this one and #109.

@GinRyan
Copy link

GinRyan commented Nov 16, 2018

@GinRyan Unless you can see in your output "reloading modules" repeated while memory usage grows, your issue is likely unrelated to the original bug reported here. If you believe you have an issue we can reproduce, I'd suggest making a new issue with more information instead of commenting on older issues like this one and #109.

I have seen the console output "reloading modules... done" repeated.

jakebailey pushed a commit to jakebailey/python-language-server that referenced this issue Nov 1, 2019
- Fix issue microsoft#109: Reloading modules leaks memory
- Fix issue microsoft#278: Huge memory usage when analysis 9 lines python code
- Some code clean-up
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked bug Something isn't working priority:P1
Projects
None yet
Development

No branches or pull requests

5 participants