The worker process for ASP.NET applications is aspnet_wp.exe
which internally heavily relies on mscorwks.dll
- Attach WinDbg to aspnet_wp.exe
- load SOS or SOSEX and examine the process in almost the same way you would any other .NET application
For instance you could use the following WinDbg commands after a successful attach:
> .loadby sos mscorwks
> !eeheap -gc
Also check out:
- Production Debugging for .NET Framework Applications. You can download the PDF here. It is a must read for any serious IIS and ASP.NET debugging.
- IISDebugTools: Among others it contains the iisdbg.dll WinDbg extension which helps to extract additional information from IIS (inteinfo.exe).
- ADPlus: If often is an invaluable help while troubleshooting IIS or its worker processes.
I hope this helps,