Skip to content

Use vscode-nsfw watcher #132

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

Closed
kennu opened this issue Mar 8, 2019 · 10 comments · Fixed by #857
Closed

Use vscode-nsfw watcher #132

kennu opened this issue Mar 8, 2019 · 10 comments · Fixed by #857

Comments

@kennu
Copy link

kennu commented Mar 8, 2019

I'm seeing very high CPU usage when running code-server on my Mac Pro (SSD disk). I run it in a project root that contains all my projects, which have lots of node_modules files etc. This high CPU usage continues even when not doing anything with code-server / VSCode for a long time.

Version

  • code-server version: 1.31.1-100
  • OS Version: darwin-x64 node-v8.9.3

Steps to Reproduce

  1. Run code-server on Mac in project root (lots of projects under it)
  2. Open code-server in two Chrome browser windows (on a Windows computer)
  3. Observe high continuous CPU usage

screenshot 2019-03-08 at 13 49 40

@Pfurr
Copy link

Pfurr commented Mar 8, 2019

I have some error in my vps, over ram. It's need an optimisation

@wcypierre
Copy link

Having the same issue here with high cpu but I'm mapping a newly created empty folder
Version: v1.31.1-100

@kylecarbs
Copy link
Member

We'll be fixing high mem and CPU usage.

This appears to be abnormally high. Does the CPU stay at this usage?

@kylecarbs kylecarbs added the perf label Mar 8, 2019
@kennu
Copy link
Author

kennu commented Mar 8, 2019

For me it stayed like that overnight, as I left everything open and idle. In the morning I upgraded, restarted everything, and it went back to similar CPU %.

@wcypierre
Copy link

it fluctuates a little but immediately goes back to high cpu usage. I've tried all 3 versions in the release tab and all exhibit the same behaviour.

OS: ubuntu 18.04

@kylecarbs
Copy link
Member

Interesting. How much memory do you have allocated for it?

@kennu
Copy link
Author

kennu commented Mar 8, 2019

In my case I just run it on plain Mojave on a computer with 32GB RAM.

@kylecarbs
Copy link
Member

Hrm. We'll investigate this. Can you see which sub-processes those are? (all sub-processes run with additional arguments)

@kennu
Copy link
Author

kennu commented Mar 8, 2019

The subprocesses taking all the CPU seem to be the ones with these parameters:

13819 kennu code-server --bootstrap-fork vs/workbench/services/files/node/watcher/unix/watcherApp --args ["--type=watcherService"] --data-dir /Users/kennu/.code-server

14132 kennu code-server --bootstrap-fork vs/workbench/services/files/node/watcher/unix/watcherApp --args ["--type=watcherService"] --data-dir /Users/kennu/.code-server

(They also include a long --env parameter but I removed it from here.)

screenshot 2019-03-08 at 18 55 02

@kylecarbs
Copy link
Member

Ah wonderful. We'll be able to fix this for sure!

There's an issue regarding this on vscode as well: microsoft/vscode#3998

@kylecarbs kylecarbs changed the title code-server takes up over 700% CPU Use vscode-nsfw watcher Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants