Recently I start facing issue on few servers where CPU start consuming more resources than usual trend. I am trying to find out the root cause for this and took the dump of w3wp process from Task Manager(right click on process and took the dump).
Now the dmp file size is 14GB and I am trying to analyze it through WinDBG but the tool is not working and getting message:
我还采取了一些小型转储,但其中一些可以正常打开,而少数则不能,因此这与 32 位或 64 位之间的混淆无关。(收集的转储是 64 位)。
我想知道是什么原因导致了这个问题。是文件大小还是我没有正确转储。
我检查了link http://www.wikihow.com/Read-Dump-Files但这没有帮助。
Windbg 不是适合这项工作的工具。转储只是快照,因此您不知道之前发生了什么。使用 ETW 和此处的 CPU 采样,它汇总所有调用并详细显示 CPU 使用情况。
安装 Windows Performance Toolkit,它是 Windows 10 SDK 的一部分(V1607工作原理 https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk在 Win8/8.1(Server 2012/R2) 和 Win10 或V1511 SDK https://go.microsoft.com/fwlink/p/?LinkID=698771如果您使用Windows 7/Server2008R2)),运行WPRUi.exe
并选择CPU Usage
然后按Start
。捕获 1-2 分钟的高 CPU 使用率,然后单击Save
. 使用 WPA.exe(性能分析器)打开生成的 ETL https://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-42-WPT-CPU-Analysis,拖放CPU Usage (Sampled)
图表到 analysys 窗格
and 加载调试符号 https://msdn.microsoft.com/en-us/windows/hardware/commercialize/test/wpt/load-symbols-or-configure-symbol-paths。现在在图表中选择您的进程,放大并展开堆栈,在这里您可以看到所有调用的 CPU 使用权重
在此示例中,Internet Explorer 的大部分 CPU 使用量来自 HTML 内容。
对于 .NET 应用程序,WPA 向您显示 .net 相关分组,例如 GC 或 JIT:
展开 w3wp 进程的堆栈,看看它在做什么。从名字你应该知道发生了什么。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)