Repository navigation
Microsoft Python Language Server - Excessive Memory Usage #2553
Description
Activity
Hi Felix Alonso (@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": falsein 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?).
- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugarea-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.info-neededIssue requires more information from posterIssue requires more information from poster
on Sep 11, 2018 Hello Derek Keeler (@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!
Does the problem go away if you disable Jedi?
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!
Awesome!
- locked as resolved and limited conversation to collaborators
on Oct 10, 2018
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
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
Extensions (9)