Troubleshoot IIS hangs

I’ve created a batch file which find out what was hanging my .NET application.

:loop
CLS
time /t >>crappy_site_log.txt
%windir%\system32\inetsrv\appcmd list requests /elapsed:5000 >>crappy_site_log.txt
ping -n 4 127.0.0.1
GOTO loop

This command logs every request above the 5 seconds.

IIS-debug

This idea came from: https://www.leansentry.com/Guide/IIS-AspNet-Hangs

Author: Thomas Faddegon

Do you like my posts and want to do something back? You can buy me a beer :)