- Identify the process that we want to dump out. You can do this by going to the Kudu console, then selecting Process explorer, and noting the PID column for the application in question. Please make sure you are looking at the non-scm w3wp.exe process. If it’s not there, you might need to start the application
- Launch the Debug Console – CMD
- Navigate to the d:\home\Logfiles directory
- Run this command: d:\devtools\sysinternals\procdump.exe -accepteula -ma -e 1 -f TimeoutException -n 3 where is the process id from the first step. NOTE: Sometimes pasting from an e-mail modifies the dashes so if you are having issues running this command, please re-type it instead of pasting it.
- RDP into your web role instance.
- Download ProcDump.exe.
- Open a command prompt.
- Switch into the %windir%\System32\inetsrv folder (cd /D %windir%\System32\inetsrv).
Run the command
appcmd list wp
. This will provide a list of running w3wp.exe processes. Example:
D:\Windows\System32\inetsrv>appcmd list wp WP "3204"> (applicationPool:51c661b0-eb07-423d-b60d-c9a98f1f47c0)
Your web role will have a long GUID in the applicationPool name. Note it’s process ID (PID). In the above output the PID is 3204. Now run ProcDump and use the PID to attach to this worker process:
Procdump -accepteula -ma -e 1 -f TimeoutException -n 3
This will capture 3 dumps of the process when System.TimeoutException errors are thrown.