Skip to content

running webpack under node version higher than v10.1 produces heavy cpu usage and a high number of Idle Wake Ups #22314

@plitzenberger

Description

@plitzenberger
  • Working version: v10.1.0
  • Issue appears on versions: v10.2.1 v10.3.0 v10.4.1 v10.5.0 v10.6.0 v10.7.0 v10.8.0
  • NVM VERSION: 0.33.11
  • Platform: Darwin 17.6.0 Darwin Kernel Version 17.6.0; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
  • Subsystem: unknow

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:

{
  "devDependencies": {
    ...
    "nodemon": "^1.14.9",
    ...
    "webpack": "^3.10.0",
    "webpack-assets-manifest": "^1.0.0",
    "webpack-bundle-analyzer": "^2.9.1",
    "webpack-dev-middleware": "^2.0.4",
    "webpack-dev-server": "^2.10.0",
    "webpack-hot-middleware": "^2.21.0",
    "webpack-manifest-plugin": "^1.3.2",
    "webpack-spritesmith": "^0.3.3",
  }
}

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
node-v10 1 0-5min

v10.2.1 after 5 minutes without any file system changes
node-v10 2 1-5min

v10.3.0 after 5 minutes without any file system changes
node-v10 3 0-5min

Any help/guidance on how to debug this issue is highly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssues and PRs related to the performance of Node.js.stalledIssues and PRs that are stalled.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions