-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
running webpack under node version higher than v10.1 produces heavy cpu usage and a high number of Idle Wake Ups #22314
Comments
Do you have a sample code that reproduce the issue ? |
I encounter the same issue. I'm also using webpack but version 2.3.3 on After running my code with v8 profiler enabled (
It seems that time is spent in C++, does anyone know what |
Can anyone report if this is an issue in Node.js 11.2.0? How about a more recent 10.x version like 10.13.0? |
I've been seeing this problem on two colleagues' Macbooks, while we're not using webpack a lot of watchers are being created with I used With the versions where the issue is present the CPU is constantly at 150%+ usage whereas with version |
@Trott I had been using node LTS (10) for this reason for a few months now after I tried v11 when it was first released. I gave another try today with v11.6.0, and I can confirm the problem is still here while v10.15 is fine. |
@jraoult you said that the issue is not present on v.10.15? Could you check since what 10 version this changed? |
@BridgeAR sure, I'll try to do a "bisect" asap. Bear with me. EDIT: So truth to be told I just can't reproduce with any |
@plitzenberger Can u set |
@plitzenberger - is this still an issue? I come across this - wakeup profiling in linux, but not sure this capability exists for mac. IMO the But if:
then I think we can make these observations (from the above data):
Running node with #cat 22314.js setInterval(() => {
const d = require('fs').readFileSync(process.execPath)
const c = d.swap16()
}, 1000)
that should give us sufficient clues about what could be happening in the idle times? |
I know it's been a while on this one without progress but revisiting it I'm really wondering if this isn't related to the changes that were made to |
Given that 10.x is reaching end of life and it's not clear if this issue is limited to 10.x or not, I'm removing the 10.x label. |
After upgrading to the latest version I'm suffering constant heavy CPU load when running webpack (even without any file system changes on the code base). The machine gets almost unusable when actively developing.
package.json webpack versions:
The number of "Idle Wake Ups" in Mac Os "Activity Monitor" is hight when the issue appears.
v10.1.0 after 5 minutes without any file system changes
v10.2.1 after 5 minutes without any file system changes
v10.3.0 after 5 minutes without any file system changes
Any help/guidance on how to debug this issue is highly appreciated.
The text was updated successfully, but these errors were encountered: