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

PowerShell process CPU spikes, terminates #1134

Open
Rhywun opened this issue Dec 22, 2017 · 1 comment
Open

PowerShell process CPU spikes, terminates #1134

Rhywun opened this issue Dec 22, 2017 · 1 comment
Labels
Issue-Performance Something's slow.

Comments

@Rhywun
Copy link

Rhywun commented Dec 22, 2017

System Details

  • Operating system name and version: Windows 7 Enterprise SP1
  • VS Code version: 1.19.1
  • PowerShell extension version: 1.5.1
  • Output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.0.10586.117
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.10586.117
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:

-> code -v
1.19.1
0759f77bb8d86658bc935a10a64f6182c5a1eeba
x64
-> $pseditor.EditorServicesVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
1      5      1      0


-> code --list-extensions --show-versions
bibhasdn.unique-lines@1.0.0
DotJoshJohnson.xml@1.9.2
Ionide.Ionide-fsharp@3.15.4
jsynowiec.vscode-insertdatestring@2.2.0
justusadam.language-haskell@2.4.0
ms-vscode.csharp@1.13.1
ms-vscode.PowerShell@1.5.1
sensourceinc.vscode-sql-beautify@0.0.4
UCL.haskelly@0.4.29

Issue Description

My powershell.exe process routinely shoots up to at least 25% CPU when I attempt to send a statement to the integrated console, and the statement takes 10-15 seconds to execute - but only after several minutes of inactivity in the editor. Subsequent immediate attempts execute immediately unless I let several more minutes go by.

Looking at the logs now, it seems like the PowerShell process keeps shutting down. Is that normal?

Attached Logs

logs.zip

@JamesLear92
Copy link

I think I am getting something similar; it seems that when I launch a script from vscode, one of my CPU cores maxes out for a short while and memory shoots up to 1GB.
But worse than this, sometimes it ends up so that when I launch a powershell terminal outside of VSCode, it maxes out a core, and then shoots to 1GB memory but doesn't stop. The entire console becomes very unresponsive.

Closing VSCode and the powershell windows, and then starting again seems to resolve it.

@SydneyhSmith SydneyhSmith added the Issue-Performance Something's slow. label Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Performance Something's slow.
Projects
None yet
Development

No branches or pull requests

3 participants