-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Linux: WatcherService consumes 100% cpu on large folder #355
Comments
@halyavin could it be that you open a large folder with many files? |
Yes, this is a large folder with many files. But why it consumes 100% of cpu indefinitely? Eclipse doesn't have such problem on this project. |
@halyavin our watcher implementation on Linux is not very good, it has to scan each folder for changes which can be time consuming. You can use the files.exclude setting to add folders you dont need to see in the explorer and it will also exclude them from watching. |
May be switch off global project watching (restrict it to currently edited files) and make user press refresh? There is a great chance an efficient Linux watching will never be implemented. |
I would accept help here if someone has an idea for efficient Linux file watching. |
I'm experiencing a similar issue on OSX with |
I just found out, by looking at the process tree on my machine, that IntelliJ IDEA has a similar process for Linux file watching and they made in open source (Apache license): |
Seeing the same thing on OSX with |
Closing in favor of #3998 |
As soon as I open Visual Studio Code, the watcherService process (a process with flag --type=watcherService) started from the renderer process starts to consume 100% cpu and 60Mb to 1.6 Gb of memory. If I kill the process, it relaunches immediately. No other process consumes cpu in the idle state.
Version: 0.10.1
OS: Ubuntu 14.04
The text was updated successfully, but these errors were encountered: