轉自:http://www.yanghengfei.com/archives/565/
By coldstar On 2011-06-15, 10:36 PM | Category: WEB服务器 | Comments: 0
IIS CPU 100%总是很让人头疼,网上发现一牛人写的脚本,可以监控IIS每一个脚本的请求结果,很容易分析问题。
{3a2a4e84-4c21-4981-ae10-3fda0d9b0f83} 0 5 IIS: WWW Server
{06b94d9a-b15e-456e-a4ef-37c984a2cb4b} 0 5 IIS: Active Server Pages (ASP)
{dd5ef90a-6398-47a4-ad34-4dcecdef795f} 0 5 Universal Listener Trace
{a1c2040e-8840-4c31-ba11-9871031a19ea} 0 5 IIS: WWW ISAPI Extension
{AFF081FE-0247-4275-9C4E-021F3DC1DA35} 0 5 IIS: ASP.NET
{d55d3bc9-cba9-44df-827e-132d3a4596c2} 0 5 IIS: Global
{3b7b0b4b-4b01-44b4-a95e-3c755719aebf} 0 5 IIS: Request Monitor
{DC1271C2-A0AF-400f-850C-4E42FE16BE1C} 0 5 IIS: IISADMIN Global
以上内容保存为 iistrace.guid
del summary.txt
del workload.txt
C:\windows\system32\logman start "NT Kernel Logger" -p "Windows Kernel Trace" (process,thread,disk) -ct perf -o krnl.etl -ets
C:\windows\system32\logman start "IIS Trace" -pf iistrace.guid -ct perf -o iis.etl -ets
@echo 取样分析建议10分钟以内,请及时点击 “停止分析并生成报告” 命令...
pause
保存为start.bat
C:\windows\system32\logman stop "IIS Trace" -ets