question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version

4.5.11

Environment info

Environment Info:

  System:
    OS: macOS High Sierra 10.13.6
    CPU: (8) x64 Intel(R) Core(TM) i7-2675QM CPU @ 2.20GHz
  Binaries:
    Node: 14.15.5 - /usr/local/bin/node
    Yarn: Not Found
    npm: 7.6.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 88.0.4324.192
    Edge: Not Found
    Firefox: 80.0
    Safari: 12.0
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0 
    @vue/babel-plugin-transform-vue-jsx:  1.1.2 
    @vue/babel-preset-app:  4.2.3 
    @vue/babel-preset-jsx:  1.1.2 
    @vue/babel-sugar-functional-vue:  1.1.2 
    @vue/babel-sugar-inject-h:  1.1.2 
    @vue/babel-sugar-v-model:  1.1.2 
    @vue/babel-sugar-v-on:  1.1.2 
    @vue/cli-overlay:  4.2.3 
    @vue/cli-plugin-babel: ~4.2.0 => 4.2.3 
    @vue/cli-plugin-router:  4.2.3 
    @vue/cli-plugin-vuex:  4.2.3 
    @vue/cli-service: ~4.2.0 => 4.2.3 
    @vue/cli-shared-utils:  4.2.3 
    @vue/component-compiler-utils:  3.1.1 
    @vue/preload-webpack-plugin:  1.1.1 
    @vue/web-component-wrapper:  1.2.0 
    bootstrap-vue: ^2.10.1 => 2.10.1 
    eslint-plugin-vue: ^6.1.2 => 6.2.2 
    portal-vue:  2.1.7 
    vue: ^2.6.11 => 2.6.11 
    vue-analytics: ^5.22.1 => 5.22.1 
    vue-eslint-parser:  7.0.0 
    vue-functional-data-merge:  3.1.0 
    vue-hot-reload-api:  2.3.4 
    vue-hotjar: ^1.2.0 => 1.2.0 
    vue-loader:  15.9.1 
    vue-meta: ^2.4.0 => 2.4.0 
    vue-style-loader:  4.1.2 
    vue-template-compiler: ^2.6.11 => 2.6.11 
    vue-template-es2015-compiler:  1.9.1 
  npmGlobalPackages:
    @vue/cli: 4.5.11

Steps to reproduce

npm run serve - nothing more. Just having Vue turned on for local dev it makes CPU go high.

What is expected?

Low CPU load, especially when nothing is happening.

What is actually happening?

High CPU load (around 110% all the time - visually the red part is around 20%)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

1reaction
yuta-sancommented, Nov 20, 2021

May I ask the location and name of the file where you added this?

vue.config.js. https://cli.vuejs.org/config/#global-cli-config

watchOptions is the webpack option described here. https://webpack.js.org/configuration/watch/

1reaction
huuthinh01commented, Oct 19, 2021

I figured out Just added pool option in dev servers to false

devServer: {
    port: 3232,
    watchOptions: {
      poll: false
    }
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

What is CPU usage, and how to fix high CPU usage
High CPU usage is often the cause of bad performance. Your computer may be affected by this problem if you're experiencing long loading ......
Read more >
How to Lower CPU Usage - NinjaOne
There are a few common fixes for high CPU load, some of which are Windows 10 specific, and others that work on nearly...
Read more >
How to Fix High CPU Usage (with Pictures) - wikiHow
1. Press .Ctrl+ Shift+Esc to open the Task Manager. This is a utility that monitors and reports on all of the processes and...
Read more >
How to fix high CPU usage - Site24x7
High load averages indicate an overloaded CPU with too many processes. For example, a CPU with a load average of 1 is running...
Read more >
How to Fix High CPU Usage in Windows - AVG
Why is my CPU usage at 100%? · Your PC is working hard · Your processor's fans aren't cooling down your CPU ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found