Why svchost.exe is at 100% CPU simple solution

ref: http://bit.ly/1U4MdXQ

The SvcHost.exe process hosts services that run in the background on Windows. It’s literally “Service Host.” You may have a dozen services or more running inside that process. More complex is that you’ll sometimes see multiple SvcHost.exe’s in your TaskManager.

Let me tell you now, Task Manager will not save you. You can see the PIDs for a running Service for the Services tab, but when a service goes insane, good luck nailing it down.

This inevitably leads you to questions like, “What Services are running inside what SvcHost.exe?” and “Which Service is using 100% CPU.”

There’s lots of ways to figure this out, but first I’ll tell you that simply killing the SvcHost.exe process that is using the most CPU will also kill ALL the other services that were running inside that host process.

There’s many command line ways to figure this stuff out, like

net start

or

sc query type= service

or

tasklist /svc

But this post is about doing it the easy way without lining up Process IDs and such.

WHICH SERVICE IS FREAKING OUT?

From the Start Menu, type “Resource Monitor” and run it.

Resource Monitor

Click the checkboxes to the left of each of the svchost.exe processes (or just those that you care about). Now, switch to the CPU tab:

Resource Monitor - CPU

See the names of the logical services in the middle pane? Now you can sort by the CPU column and you’ve got the name of your out of control process.

You can right click and try to stop or restart just the one services, or even use default browser’s default search engine to “Search Online” for that service name:

Resource Monitor with the Right Click Menu showing

This tip has helped me several times while writing and debugging services. Resource Monitor is your friend. Many folks don’t’ even know it’s there!

Enjoy!

Advertisements

Using Edimax EW7711Uan with Ubuntu 12.x

I encountered problems with my Wireless adaptor Edimax EW7711Uan on Ubuntu 12.04. I was able to get list of available networks, but couldn’t connect to any of them. I thought there were a driver problem. After searching for this issue, I tried some commands to solve it but these solutions didn’t work for me. Then i found this link: http://ubuntuforums.org/showthread.php?t=1342593.I learned that two drivers were interfering with each other that i had to blacklist one of them.

I opened blacklist file with ‘sudo gedit /etc/modprobe.d/blacklist.conf’ command. Then i added ‘blacklist rt2870sta’ line at the end of file. I disconnected my device and connected again. In seconds i established internet connection. You can read further information from link on ubuntuforums here that i pasted earlier.

Happy linuxing & sırfing.