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

[Remote-SSH Bug]: Make it so VSCode doesn't eat 100% of VPS CPU #10098

Closed
2 of 3 tasks
verybigelephants opened this issue Jul 26, 2024 · 2 comments
Closed
2 of 3 tasks
Assignees
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@verybigelephants
Copy link

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It connects successfully

->

Once in every while, a new employee with VSCode comes in, connects to our remote VPS with it and then this happens:

image

When lookint at htop there's some vscode script eating all the cpu.

I didn't believe them so i went to do a fresh vscode install with remote ssh extension, connected to our VPS and there it was, server was crashing.

Now, i understand vscode probably crawls the server to see the directory structure, but can't this behavior be not enabled by default? This is a truly invasive feature that can crash machines. There should be a button and big warning before indexing the whole machine telling users that this can crash the remote servers.

Expected Behavior

Not crash remote vps

Steps To Reproduce

1 connect to a remote vps
2 crash server with 100% cpu usage

Remote-SSH Log

Remote-SSH Log

[PASTE LOG HERE]

Anything else?

I have searched for other similar issues like this, and tried tips like disabling "follow symlinks" but it doesn't really help.

@verybigelephants verybigelephants added the ssh Issue in vscode-remote SSH label Jul 26, 2024
@roblourens
Copy link
Member

Now, i understand vscode probably crawls the server to see the directory structure

VS Code doesn't do this. Most likely there's some extension doing a lot of work when a workspace is opened. Could be a builtin extension like the js/ts extension, or another one that is installed on the remote. This wiki page might help: https://github.com/microsoft/vscode-remote-release/wiki/Remote-SSH-troubleshooting#performance-issues

@roblourens roblourens added the info-needed Issue requires more information from poster label Jul 26, 2024
@verybigelephants
Copy link
Author

I understand, thank you for the reply

I have managed to see that it's caused by devsense.phptools

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants