When working with ASP.NET applications on a server that runs several ASP.NET applications, You once in a while end up troubleshooting which of the applications that are using up all the CPU or memory.
The problem is that in Windows Task Manager, You only see a bunch of w3wp.exe processes. You cannot see which application pool each process is.
To our help, we find the iisapp.vbs script that lists all applications pools and their process ids. A simple bat file that You can put on You desktop contains he following commands:
cd \WINDOWS\system32
cscript iisapp.vbs
pause
Since You can see the process id in Windows Task Manager, we can now identify which application to blame (since You run each application in it’s own application pool, don’t You?).