Friday, January 9, 2015

windows 7 - Finding CPU usage of a service



Because my laptop fan was spinning up for no reason, I had a look at the CPU usage and I see svchost with 12.5% CPU, which is basically a full core.




Now, I'm aware that svchost runs services and I know how to display the services it runs in Task Manager or Process Explorer (as described here).



Now I know which services are run, but I don't know which service eats the CPU time. I could disable one service after another, but I don't really like doing this (it could break things that are currently in use and I could forget turning the service back on later).



Therefore I'd like to know whether it's possible to instruct Windows to run only one service per svchost the next time I boot my PC. While I might have the slight disadvantage of several processes, I could immediately find out which one it is and it would be a much easier decision of whether or not to stop or restart the service.


Answer



Copied from http://windowsitpro.com/windows-server/configure-service-run-its-own-svchost-process



Run the following command in administrator Command prompt (command is written for windows update service)





sc config wuauserv type= own




to make windows update service run in a separate svchost process.



NOTE: а space is required between the equal sign and the value.



UPDATE : Running sc config wuauserv type= own on Windows 10 stops Windows Update from working properly.



No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...