Hyperline / hyperline

✨ Status line plugin for Hyper ✨
MIT License
619 stars 120 forks source link

WMI Provider Host #114

Closed dzienisz closed 6 years ago

dzienisz commented 7 years ago

I just notices that hyperline plugin create WMI Provider Host on my Windows 10 PC and use a lot of processor power for literally nothing.

2017-08-29 13_58_25-menedzer zadan

Also Antimalware Service is active during that WMI Provider Host time.

corbin-r commented 7 years ago

Wow.. That's a serious amount of CPU usage. Can you reply with your Windows 10 version and Hyper version? That will help me debug this.

Thanks!

dzienisz commented 7 years ago

The nevewst windows and nevewst hyper (current)

29.08.2017 5:52 PM "Corbin Matschull" notifications@github.com napisał(a):

Wow.. That's a serious amount of CPU usage. Can you reply with your Windows 10 version and Hyper version? That will help me debug this.

Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Hyperline/hyperline/issues/114#issuecomment-325708484, or mute the thread https://github.com/notifications/unsubscribe-auth/ADW8WLHbXH_Cwl_02X6HHJn7QHbLNQO8ks5sdDOzgaJpZM4PFz5u .

corbin-r commented 7 years ago

Okay current versions of both, not a problem. Thanks.

I will work on getting this debugged with a windows workstation.

Xemiru commented 7 years ago

I've narrowed it down to the network plugin causing the issue by isolating each of the stock plugins. When I launch Hyper with Hyperline configured to use everything but network, this issue does not occur.

hyperline: {
  color: 'black',
  plugins: [
    { name: 'hostname', options: { color: 'lightBlue' }},
    { name: 'memory', options: { color: 'white' }},
    { name: 'uptime', options: { color: 'lightYellow' }},
    { name: 'cpu', options: { colors: { high: 'lightRed', moderate: 'lightYellow', low: 'lightGreen' }}},
    // { name: 'network', options: { color: 'lightCyan' }} // causes memory issues by spawning WMIC a  l o t
    { name: 'battery', options: { colors: { fine: 'lightGreen', critical: 'lightRed' }}}
  ]
}
corbin-r commented 7 years ago

Hmm very interesting. I'll do some research on WMI Host and how it inter-operates with the network plugin.

Thanks @Xemiru

Cycymomo commented 7 years ago

+1 @Xemiru Same here for your information on Windows 7

iblazhko commented 6 years ago

Same problem for me. Windows 10 Pro 64-bit Version 1703, OS Build 15063.608 Hyper 1.4.6

Any chance to make hyperline refresh less frequent? I could not find any options to do this.

corbin-r commented 6 years ago

Currently @iblazhko the only method to change refresh rate of the network plugin is to change:

  componentDidMount() {
    this.getSpeed()
    this.interval = setInterval(() => this.getSpeed(), 1500)
    // ^ This line, change the number (in milliseconds) to desired number.
  }

We're working on a LOT better method of doing this coming in a new update.

k9yosh commented 6 years ago

I had the same issue, waiting for a fix. It's a really useful plugin. :)