Author Topic: Avast and WMI Provider Host CPU Usage  (Read 32145 times)

0 Members and 1 Guest are viewing this topic.

REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #15 on: January 07, 2015, 12:41:08 AM »
I have encountered the same problem after formatting my PC for unrelated reasons. I saw reduced battery life right after installing Avast. WMI increased CPU usage from 0% to 3% on my ultrabook. While I wouldn't give a rat's ass on a desktop, this prevents CPU from going into low-power state.

If you restart the service, CPU usage is back to 0%, until computer reboots. Such behavior indicates that it's a bug.
uninstalling Avast also causes WMI to chill out.
Please look into it.
« Last Edit: January 07, 2015, 06:04:19 PM by Vladimir Akopyan »

REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #16 on: January 07, 2015, 02:13:20 AM »
Seeing that this page has >500 views, it's a commonly encountered problem. For those of you who still want to use avast on mobile computers, you can do as follows:
Create a text file, and enter the following:
Quote
net stop Winmgmt /y
net start Winmgmt

Change the extension from .txt to .bat
If you don't know how to change extensions you probably should not proceed with the tutorial

Running batch file with admin privileges will cause Windows Management Instrumentation service to restart.
It will also shut down all services that depend on WMI, and some do not restart automatically.
Check Local Services > Windows Management Instrumentation > Properties > Dependencies Tab


Those services must be restarted
You need to find service in the list, it's name is shown here:


My bat file looks at follows:
Quote
net stop Winmgmt /y
net start Winmgmt
net start TPCHSrv
net start "TOSHIBA eco Utility Service"
net start iphlpsvc
net start wscsvc

Note that you need quotes if the service name has spaces.
Also note that if you install some software that uses WMI services you will need to add it to the list later.

Now we need to make the script run on startup. This is done using the task Scheduler.
Choose "Create task" on the right side of the window,
Name it as something identifiable
Select "Run whether user is logged on or not"
You must tick "Run with the highest privileges"


In Triggers tab Choose "at user logon" and choose to delay task 1 minute.
In Actions tab choose the batch file we just created
In Conditions untick "Run only on AC power"

You are done! Now WMI will be restarted after your computer boots and will stop killing your battery life.
« Last Edit: January 07, 2015, 06:08:47 PM by Vladimir Akopyan »

REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #17 on: January 07, 2015, 03:34:37 PM »
And what makes this a problem ???

Oh yes.......I bought a core i7 devils canyon to waste CPU on absurd processes....
If it's slowing down your i7 them maybe there's another problem.
It certainly isn't hampering the i7 I'm using.
Why are you defending avast? A bug is a bug, no matter what percentage of CPU is wasting, that should be fixed.

Offline bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48562
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re: Avast and WMI Provider Host CPU Usage
« Reply #18 on: January 07, 2015, 03:38:50 PM »
And what makes this a problem ???

Oh yes.......I bought a core i7 devils canyon to waste CPU on absurd processes....
If it's slowing down your i7 them maybe there's another problem.
It certainly isn't hampering the i7 I'm using.
Why are you defending avast? A bug is a bug, no matter what percentage of CPU is wasting, that should be fixed.
I'm not defending at all. I just don't know if it's really as serious as you seem to lay it out to be.
I've alerted the Moderators and hope Avast will respond to your report.
Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v22H2 64bit, 16 Gig Ram, 1TB SSD, Avast Free 23.5.6066, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet

Offline Vlk

  • Avast CEO
  • Serious Graphoman
  • *
  • Posts: 11658
  • Please don't send me IM's. Email only. Thx.
    • ALWIL Software
Re: Avast and WMI Provider Host CPU Usage
« Reply #19 on: January 07, 2015, 06:56:37 PM »
I'd encourage anyone who has the problem, and has appropriate technical skills, to help us analyze the issue. I still think Avast is kind of innocent in this (or, more precisely, its presence may work as a trigger for something else, but it's not Avast that is actively doing it). But I'd be happy to be proven wrong here.

To start, it would be good to use Process Explorer to get more info on the WMI Provider Host process instance. If you right-click the offending process in PE and select Properties, you should see the "WMI Providers" tab. What does the list on that page say? And also, if you go to the Threads tab, you should see which thread is taking the CPU, and you can even display its stack trace (assuming you have the debugging symbols properly configured in PE).

Thanks
Vlk
If at first you don't succeed, then skydiving's not for you.

REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #20 on: February 15, 2015, 01:23:12 AM »
Same problem here on 2 different machines - as soon as avast gets installed on the *totally fresh* image of windows 8.1 (incl. all updates, no other software installed, just drivers) wmiprvse.exe goes from 0-2% cpu usage to 15-30% cpu usage in 5-7 second intervals. Memory usage for this service goes from 6MB to 12MB and won't drop.
Disabling all avast services does NOT help. As soon as avast is completely uninstalled through control panel and you restart once all the symptoms are gone and wmiprvse.exe cpu load goes back to 0-2% and approx 6MB of memory usage.

This problem *really* is annoying - especially on high mobile devices which I use for my clients like yoga 2 pro oder hp elitebook 850. They wont go to a low energy cpu state because it gets polled every 5-7 seconds and jumps from 0,xxghz to full speed 2,xx ghz - which causes thermal increase and lower battery life.

Please provide a fix for this as soon as possible  -  I will switch to another AV solution for the time being on most my clients machines. In most cases they have Internet Security 2015 installed  - but I can see the same behaviour on my girlfriends notebook with avast free i suppose / have to recheck this.


REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #21 on: February 16, 2015, 03:25:51 AM »
Problem found: Lenovo Browser Guard (and maybe other "Browser Plugins" aswell) interferes with avast, althoug all avast services are completely deactivated.


As soon as you uninstall either Lenovo Browser Guard  OR Avast Internet Security the CPU Load on WMI Provider Host drops *immediatly* to under 1% instead of a dynamic change between 2% and 30% depending on your machines power.

Solution: I prefer to uninstall the lenovo crap.....

REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #22 on: February 20, 2015, 10:05:49 AM »
Avast is absolutely the problem. I've noticed this behavior since I've started demoing Avast. I now own Avast Premier 2015 but this issue is important to me and I would like to see it resolved. On Idle my cpu (i7-4960x) will go from 1% to 8% every 4 seconds. The 8% spike is due to WmiPrvSE.exe. The problem goes away if I uninstall Avast. I have tested several times already, and as an owner of Avast Premier, uninstalling isnt a reasonable solution :)

BTW in ProcessExplorer, under the WMI providers tab for WmiPrvSE.exe, cimwin32.dll is listed. I have no idea what it is or how its related to Avast, but uninstalling Avast gets rid of the 8% cpu spike that occurs every 4 seconds.

Without Avast, system idles at 1%. With windows defender 1%, with Malwarebytes Pro %1.

Avast is the problem. Others have seen this behavior as well. For example the last post on this thread https://social.technet.microsoft.com/Forums/windowsserver/en-US/0b0d0f2c-3a1b-4959-a557-b44d1612b6bb/wmiprvseexe-cpu-consumption?prof=required

Any ideas? This has been an issue for months, as I've been observing it, often uninstalling Avast and opting to not use Avast. I would like to use Avast... but this issue needs to be resolved.




REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #25 on: March 23, 2015, 06:18:29 PM »
Any solution to this yet?

Offline bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48562
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re: Avast and WMI Provider Host CPU Usage
« Reply #26 on: March 23, 2015, 08:17:34 PM »
Any solution to this yet?
If it's a problem for you, maybe you want to help solve it:
https://forum.avast.com/index.php?topic=163234.msg1170185#msg1170185
Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v22H2 64bit, 16 Gig Ram, 1TB SSD, Avast Free 23.5.6066, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet

REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #27 on: March 23, 2015, 08:39:27 PM »
I posted a solution which involved a bat file a while ago but it was removed as you're not allowed to post code on these forums as inexperienced users could end up damaging their PCs so I'll give you the reason why it happens and it's up to you to figure out how to fix it.

In my limited understanding: It seems the WMI problem is because of some kind of race scenario with Avast and WMI trying to start up first when you boot your PC. The basic way to solve it is to restart the WMI service (and all dependent services) once you pc is idle after boot. Maybe setup an automatic task to do that after every boot up.

I guess a more permanent solution is for the Avast team to take into account WMI and it's start up procedure.

I hope this somehow helps someone.

Offline essexboy

  • Malware removal instructor
  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 40589
  • Dragons by Sasha
    • Malware fixes
Re: Avast and WMI Provider Host CPU Usage
« Reply #28 on: March 23, 2015, 10:31:25 PM »
No need for a batch file just open Control Panel > Administrative Tools > Services
And set WMI to delayed start

REDACTED

  • Guest
Re: Avast and WMI Provider Host CPU Usage
« Reply #29 on: March 23, 2015, 10:52:37 PM »
I tried that but it doesn't work (for me anyway). Still uses the same amount of CPU. Maybe the delay is not long enough? Not sure if you can set it?

Also, another process might start it up anyway  :'(