-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Version 0.10.3 uses a full core on CPU #1009
Comments
@q42jaap Can you please provide additional details. Does this happen when opening a specific folder? Does this happen when opening VSCode without a folder ( |
Im using the following line in .bash_profile: I use that to It's difficult to say how to repro, I can't always get that to happen (fortunately).
|
@q42jaap what workspace do you open with code? |
I'm opening a directory in which I've checked out our private git repo. Not a particularly big project. Are there steps (suchs as logs or dumps) I can take and submit (privately) to Microsoft? |
@q42jaap well it would be interesting if this happen on a different folder too, maybe you could give it a try. Does the CPU go to 100% right after you open the folder? |
It does not always happen, and it does not happen immediately. I'm currently in the process of reinstalling vscode, which is going to take a while due to slow connection. |
I'm seeing the same on 0.10.5. Strangely, I didn't see this prior to 0.10.5 - any ideas? |
Again, if there is a repository we could clone to reproduce the behaviour, please let us know. |
Same her. As of 0.10.5 ElectronHelper misbehaves and eats up all of my cpu cycles. Update: "files.ignore" does not help. Looks like ElectronHelper is trying to allocate all the memory it can get! Once its done eating up all memory it crashes. Incompatibility to Node 5.2.0? brew upgrade node (to 5.3.0) does not help either... Process: Electron Helper [1700] Path: /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper Identifier: Electron Helper Version: 0 Code Type: X86-64 (Native) Parent Process: Electron Helper [1696] Responsible: Electron Helper [1700] User ID: 501Date/Time: 2015-12-21 15:18:30.508 +0100 Time Awake Since Boot: 7100 seconds System Integrity Protection: disabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Application Specific Information: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread |
For those that see high CPU use, please identify the arguments for the proces (e.g. ps aux | grep ) so that we know which of the processes that Code spawns is the one in charge. |
@bpasero |
@bpasero After start (with loading my Ember project automatically ), I've got six Electron Helper processes. One of them ist using approx 120% CPU to allocate memory. It stops eating CPU cycles after allocation aroun 1.28 GB RAM. I already excluded the usual suspects (node_modules, tmp, bower_components) with "files.exclude"... |
Here is the output formatted (according to http://superuser.com/a/117921):
Here is the output trimmed:
@bpasero Looks like the file watcher? |
@planetexpress69 does CPU ever go down, is it only initially? |
Hi Benjamin, CPU goes down after allocation approx 1,25 GB of RAM. Takes around four minutes on my „101“ (MacBook Pro (13 Zoll, Mitte 2012), 2.9 GHz Core i7).
|
Can people seeing this issue with a JavaScript workspace please give our insiders build a try (https://code.visualstudio.com/insiders) and enable Salsa: https://github.com/Microsoft/vscode-docs/blob/master/release-notes/latest.md#javascript---salsa-preview |
@bpasero: I am still experiencing the issue on the Insiders build with Salsa enabled. OS X El Capitan Version 10.11.1 (15B42) |
I'm seeing the same behavior, Electron helper process constantly allocating more and more memory and then crushes at some point and start over. CPU consumptions is 350% around that time. |
Closing as duplicate of #774. We believe the issue to be when having a large folder (gigabytes) and installing the file watcher on it. |
thanks, we figured that it must be something else. is it possible to share the workspace with me go reproduce? |
@bpasero looks like this issue is specific to a project, unfortunately I can't share it. Is there anything else I can help to debug it? |
Hi there, undefined as well. martin@mbp13 scripts [master] $ ./code.sh undefined [08:52:23] Using gulpfile ~/Desktop/vscode/gulpfile.js [08:52:23] Starting 'electron'... [08:52:23] Finished 'electron' after 741 μs [2333:0309/085225:INFO:CONSOLE(199)] "%c[Extension Host] %cdebugger listening on port 5870", source: file:////Users/martin/Desktop/vscode/out/vs/workbench/services/thread/electron-browser/threadService.js (199)
|
Can’t share my workspace, but either 0.10.10 or my upgrade to ember 2.4 and rebuilding the whole node_modules („hairy fireball of death®“) fixed the problem for me.
|
I'll add a "me too" to this issue. I am using VSCode with Unity and the project size is small, yet it's still chomping at my CPU (MBP, Yosemite). |
@trojanfoe able to share this workspace with me? what OSX are you on? |
@Kane-Sendgrid @planetexpress69 very sorry, I realized my instructions were not good and I have updated them. the output we see on the console is coming from a different use of chokidar, not the one from VS Code. the new instructions are slightly different but not much and we can see if chokidar is running by looking at the developer console within Code. Can you retry please? |
@bpasero for me it's only logging: debugger listening on port 5870 and nothing after that. |
@bpasero There wasn't anything particularly special about the project. I think if you created a new Unity project, set it up to use VS Code and then attempted to edit some scripts, you would see the same issue. I am using OSX 10.11.3 on a fairly old MBP (Late 2010). |
@Kane-Sendgrid thanks for trying, I guess when you changed the file you did not recompile, could that be true? We typically run |
@bpasero |
@Kane-Sendgrid thanks, so this means the native (and good) file watcher is active. it is interesting that you say your coworker is not seeing issues, maybe this could lead us to the actual problem. some questions:
|
@bpasero We have similar hardware (I have MacBook Pro 15, he has 13, same year model). I'm seeing Electron Helper process spiking in CPU and memory and then it dies and starts ramping up again. Let me wait and see how long it can go (it was going at least 5 cycles for me during ~10 minutes). My coworker doesn't see spike. |
@Kane-Sendgrid interesting, so you say the process increases also in memory and then actually exits and starts this process over again? Can you give me some numbers on the workspace: how many files and folders? I realise that we always restart the watching process when it dies so it would never end for you. I cannot believe that your co worker is not seeing an increase in memory and CPU when opening the same folder though, does he have other settings than you? is he really opening the same folder? |
We found out about the issue and here is what happens:
We also verified that chokidar was not falling back to polling. The fixes for March are:
For the future, we are looking into #3998 |
@andradei can you check the full arguments of the process to see which of our processes are causing it? |
@bpasero How do I do that? |
I found out that an extension was causing this for me: I'll leave the issue reference here in case it is helpful. |
VSCode Full arguments to the process:
My
Extensions I'm using:
|
@RafalWilinski does it also reproduce when running without extensions loaded: I am very sorry to hear you are having issues with VS Code. I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line, execute: |
I've just removed all extensions and reopened project - same thing happens. Project I'm opening: https://github.com/RafalWilinski/ember-gmail Edit: I know it's not related but I've just tried opening this project in Sublime Text and I just cannot do that. Once I click open, whole ST hangs (because it's single threaded unlike vscode?) also causing 100% CPU usage. Other projects are working fine. Edit2: Nevermind, Both VScode and Sublime text tried to index/parse/whatever |
@RafalWilinski so you say you have a single folder with lots of files within? what kind of folder is that? maybe we should consider adding it to the default watcher exclude setting. |
Btw I just setup this project and do not see a 100% CPU core (Mac OS X). |
In my project there was a I don't think that @bpasero Because repo does not have |
ok thanks, for me the folder was much smaller. you can get the CPU down by adding this folder to the watcher exclude and it would also make sense to add it to search excludes. |
Version 0.10.3 uses up 100% cpu on my macbook pro.
Especially the Electron Helper
The text was updated successfully, but these errors were encountered: