Skip to content

Microsoft Python Language Server - Excessive Memory Usage #2553

Description

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

Activity

  1. d3r3kk commented on Sep 11, 2018

    @d3r3kk

    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": 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?).

  2. added
    bugIssue identified by VS Code Team member as probable bug
    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
    info-neededIssue requires more information from poster
    on Sep 11, 2018
  3. falonso-caa commented on Sep 12, 2018

    @falonso-caa
    Author

    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!

  4. d3r3kk commented on Sep 12, 2018

    @d3r3kk

    Does the problem go away if you disable Jedi?

  5. falonso-caa commented on Sep 12, 2018

    @falonso-caa
    Author

    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!

  6. d3r3kk commented on Sep 12, 2018

    @d3r3kk

    Awesome!

  7. locked as resolved and limited conversation to collaborators on Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions