Copy Code code as follows:
{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
The above content is saved as Iistrace.guid
Program code
Copy Code code as follows:
Del Summary.txt
Del Workload.txt
C:\windows\system32\logman start "NT Kernel Logger"-P "Windows Kernel Trace" Process,thread,disk-ct- Ets
C:\windows\system32\logman start "IIS Trace"-PF iistrace.guid-ct perf-o iis.etl-ets
@echo Sampling analysis recommendations within 10 minutes, please click "Stop analysis and generate report" command in time ...
Pause
Save As Start.bat
Program code
Copy Code code as follows:
C:\windows\system32\logman Stop "IIS Trace"-ets
C:\windows\system32\logman Stop "NT Kernel Logger"-ets
C:\windows\system32\tracerpt Iis.etl Krnl.etl-o-report-summary
Del dumpfile.csv
Del Iis.etl
Del Krnl.etl
Notepad.exe Workload.txt
Save As Stop.bat
Execute Start.bat 10 minutes to execute Stop.bat will be able to obtain all IIS requests within 10 minutes and have statistical results including response rate CPU usage requests, etc.