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

Very high CPU usage #2822

Closed
Timmmm opened this issue Oct 9, 2018 · 2 comments
Closed

Very high CPU usage #2822

Timmmm opened this issue Oct 9, 2018 · 2 comments

Comments

@Timmmm
Copy link

Timmmm commented Oct 9, 2018

The Python language server uses a hell of a lot of CPU:

image

This is with a very large folder open (contains a copy of LLVM, Boost, etc.) but not much actual Python. I have "python.jediEnabled": false.

I'm afraid I can easily reproduce this with my workspace (which is private) but I couldn't manage to do the same by just putting a Python file in a large public directory (the source for Boost). Is there any way to debug what it is actually doing?

Environment data

  • VS Code version: 1.28
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: OSX 10.13.6
  • Python version (& distribution if applicable, e.g. Anaconda): brew, Python 3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: ?

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
Initializing for /usr/local/opt/python/bin/python3.7

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

INFO no standard startup: not just one window
console.ts:136 [Extension Host] Git extension API method 'getGitPath' is deprecated
@bcroq
Copy link

bcroq commented Oct 9, 2018

Same problem here.

  • VS Code version: 1.28
  • OS: Ubuntu 17.10
  • Python : stackless 2.7

With ms-python-2018.8.0:

  • the language server process eats memory until the system locks

With ms-python-2018.9.0 installed using today's ms-python-insiders.vsix:

  • the language server process takes up to 4GB of memory (8GB virtual)
  • the extensionHost process takes 100% CPU (i.e. one core) and its virtual memory is always going up

@DonJayamanne
Copy link

Duplicate of #2594

@DonJayamanne DonJayamanne marked this as a duplicate of #2594 Oct 9, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants