Tuesday, May 6, 2008

Matching Process ID with App Pool

I was troubleshooting a memory problem with a group of ASP.NET sites in a particular App Pool. In IIS, I can see which applications are in which application pool, and in the Task Manager, I can see multiple w3wp.exe processes, but how do you tell which Process ID goes with which App Pool? There's a simple command line you can run on Windows Server 2003 to do just that. cscript.exe %windir%\system32\iisapp.vbs This gives you a nice dump of exactly what you need. W3WP.exe PID: 1400 AppPoolId: MyAppPool1 W3WP.exe PID: 920 AppPoolId: SomeOtherAppPool

0 comments: