(转自:Figuring out why my SVCHOST.EXE is at 100% CPU without complicated tools in Windows 7 - Scott Hanselman   原文日期:2011.03.14 )

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.

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:

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:

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!

最新文章

  1. Elasticsearch —— bulk批量导入数据
  2. 【记录】WCF IIS 404
  3. 深入理解Javascript中构造函数和原型对象的区别
  4. Atitit.报名模块的管理
  5. UVALive - 4108 SKYLINE[线段树]
  6. HTML5移动Web开发(四)——移动设计
  7. 常见错误总结_1_对java类进行修改后,无法按修改的类型加载
  8. JS Attribute属性操作
  9. Linux 学习之防火墙配置
  10. 使用boost中的property_tree实现配置文件
  11. java面试题之int和Integer的区别
  12. 探索ArrayList自动改变size真相
  13. hibernate框架学习笔记7:HQL查询、Criteria查询简介
  14. WingIDE5.*注册破解方法
  15. noip第30课资料
  16. Lua论分析需求(学好英文)的重要性
  17. Personal Software Process (PSP)
  18. [django]python异步神器-celery
  19. Windows server 2008 R2实现多用户远程连接 (转)
  20. <NET CLR via c# 第4版>笔记 第19章 可空值类型

热门文章

  1. Redhat 安装perl模块
  2. UIButton常见属性和方法
  3. Cow Marathon(树的直径)
  4. return break contiune
  5. excel的部分使用方法
  6. ASP.NET Core MVC 2.x 全面教程_ASP.NET Core MVC 07. View的Model 和 Tag Helpers
  7. Cardboard profile的修改
  8. E20170414-ms
  9. 位运算【C++学习(计蒜客)】
  10. 第十六篇 .NET高级技术之序列化