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

lots of wmic process with high cpu usage after upgrading to 1.21 #1036

Closed
yingang opened this issue Mar 12, 2018 · 2 comments · Fixed by #1156
Closed

lots of wmic process with high cpu usage after upgrading to 1.21 #1036

yingang opened this issue Mar 12, 2018 · 2 comments · Fixed by #1156
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@yingang
Copy link

yingang commented Mar 12, 2018

Environment data

  • VS Code version: 1.21
  • Extension version (available under the Extensions sidebar): 2018.2.1
  • OS and version: Windows_NT x64 10.0.14393
  • Python version: 3.6.4
  • Type of virtual environment used (if applicable): N/A
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

I upgraded the vscode to 1.21 yesterday, then my laptop would start to respond slower and slower when vscode is ruuning. By checking task manager, I found that there are lots of wmic process like: wmic process 7416 get workingsetsize,usermodetime,kernelmodetime, in which the PID 7416 points to a python process: python completion.py.

wmic

After disable the python extension and restart the vscode, the problem won't happen again.

The Python extension (ms-python.python) I was using was released 2018.2.1, so I think it's a problem between the latest 1.21 release with the extension?

Expected behavior

no high cpu usage just for an idle vscode.

Steps to reproduce:

  1. Please see the 'Actual behavior' part

Logs

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

N/A (since there is no need to do anything additional to reproduce the problem)

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

N/A (since there is no need to do anything additional to reproduce the problem)
@yingang yingang changed the title lots of suspicous wmic process after upgrading to 1.21 lots of wmic process with high cpu usage after upgrading to 1.21 Mar 12, 2018
@MikhailArkhipov
Copy link

MikhailArkhipov commented Mar 12, 2018

Sounds like pidusage package we use to determine Jedi RAM consumption. We may want to check if pidusage.stat(this.proc.pid, async (err, result) actually returned before initiating another call. Looks like the call may get stuck.

@brettcannon brettcannon added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. needs PR labels Mar 12, 2018
@brettcannon brettcannon added this to the March 2018 milestone Mar 12, 2018
@StinGer-ShoGuN
Copy link

StinGer-ShoGuN commented Mar 20, 2018

I have the exact same problem, but with VS Code 1.19.2 the Python 2018.2.1 and both Python 3.6.4 (set as default interpreter in VSCode) and 2.7.14 installed. Everything is on Windows 7 64 bits.

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
Projects
None yet
5 participants