-
Notifications
You must be signed in to change notification settings - Fork 769
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
Golang uses most of the CPU %, and slows down the windows #280
Comments
Transferred this to the vscode-go repo since it seems to be pretty tied to VS Code. Perhaps we can open a new issue in the golang/go repository if we find an issue that can be isolated to the @AnjanaAK: Can you please share your VS Code Settings? They can be found by going to the Command Palette (Ctrl+Shift+P) -> Preferences: Open Settings (JSON). |
@stamblerre If it is a problem with vscode, then why it still exists while running go commands in command prompt?
|
@AnjanaAK Thanks for sharing the settings. The The first step should be to figure out what subcommand of Also, you mentioned |
There has been no activity on this issue for a few months, so going to close this. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Didn't tried it yet.
What operating system and processor architecture are you using (
go env
)?I am using Windows 10. But we need to work in linux environmens, so also using WSL (Windows subsystem for Linux) .
Same version of go (1.13.4) is installed in both windows and WSL environment.
VS code is installed in Windows. version: 1.46.1.
Only one extension is installed in vscode. That is go extension golang.go with version: 0.15.0.
go env
OutputWhat did you do?
As specified, i have vscode instaled in windows with a golang.go extension.
The first issue we found while we working with our golang project in vscode was this:
after some time of using it (nearly 1 hr), the vscode seems to be very slow. Go to definition, saving a file, typing ...etc are very slow. This affects the whole machine and it is very frustrating.
After this, i encountered that :
this issue of slow down also happens when i run go commands via bash (or WSL).
Go tests take much longer time to complete than before.
Another point to note is that other commands like docker doesn't have this problem.
Git commands are affected by this sometimes.
I was able to find a log from vscode:
First i was thinking that this caused the slow behaviour of vscode.
But found same errors in other machines with no speed problems.
Code status result is somewhat like this:
Windows task manager says the CPU % of processes in two cases:
( It was displaying that total 100% CPU is used).
( It was displaying that total 100% CPU is used).
What did you tried?
Tried changing the power plan of windows from 'balanced' to 'high perfomance' mode.
This didn't fixed the problem.
Tried reinstalling the VScode with latest version, and thus extension also.
Still the issue persists.
Tried disabling the onsave features, autosave features in vscode.
This made a little difference (not fixed) in the speed while using VScode. But problem with bash is still there.
What did you expect to see?
A less cpu % should be used by the go and slowness in the machine should be less.
What did you see instead?
I can see 100% total CPU usage while running a go test in the WSL of windows, or while using the vscode.
The text was updated successfully, but these errors were encountered: