Skip to content

Microsoft Python Language Server - Excessive Memory Usage #2553

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

Closed
falonso-caa opened this issue Sep 11, 2018 · 5 comments
Closed

Microsoft Python Language Server - Excessive Memory Usage #2553

falonso-caa opened this issue Sep 11, 2018 · 5 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@falonso-caa
Copy link

Issue Type: Bug

Python Language Server uses ~16-18 GB RAM on a 24 GB RAM laptop. Causing my memory usage to hang around 95%. It's also chewing through disk with 20-40 MB/s. It's a hungry, hungry hippo.

Restarted and after 10 minutes it is at about 1.2 GB RAM with very low disk usage.

VS Code version: Code 1.26.1 (493869ee8e8a846b0855873886fc79d480d342de, 2018-08-16T18:38:57.434Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (8 x 1896)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 23.84GB (0.67GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
Extensions (9)
Extension Author (truncated) Version
gc-excelviewer Gra 2.1.26
r Iku 0.6.1
rainbow-csv mec 0.5.0
mssql ms- 1.4.0
anaconda-extension-pack ms- 1.0.0
python ms- 2018.8.0
PowerShell ms- 1.8.4
vscode-yaml red 0.0.15
gitblame wad 2.4.4
@d3r3kk
Copy link

d3r3kk commented Sep 11, 2018

Hi @falonso-caa, thanks for the report!

First, could you please verify for us that you are indeed running the Python Language Server and not Jedi? That is, your settings should have 'Python: Jedi Enabled' unchecked, or the settings.json file should have "python.jediEnabled": false in it.

Second, if you've verified that you are not using Jedi, could you please try capturing the information in the terminal windows and adding that information here? You can see the terminal information we request in our default issue template.

Third, if you are using the Python Language Server, what happens when you use Jedi?

How large is the codebase you are working in? Is there a way we can have a look (ie. is it on Github?).

@d3r3kk d3r3kk added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. info-needed Issue requires more information from poster upstream-language server labels Sep 11, 2018
@falonso-caa
Copy link
Author

falonso-caa commented Sep 12, 2018

Hello @d3r3kk,

It does appear that I have Jedi enabled. Is the princess in another castle?

Unfortunately, the code base is proprietary so I don't think I can share details.

P.S. Thanks for the quick reply!

@d3r3kk
Copy link

d3r3kk commented Sep 12, 2018

Does the problem go away if you disable Jedi?

@falonso-caa
Copy link
Author

falonso-caa commented Sep 12, 2018

Yes, it does appear that the problem goes away with Jedi disabled. It is pretty stable at around 500 MB RAM. Thanks for the help!

@d3r3kk
Copy link

d3r3kk commented Sep 12, 2018

Awesome!

@d3r3kk d3r3kk closed this as completed Sep 12, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants