Here’s a quick way to get a listing of the currently running SharePoint application pool process IDs. Save this script in the directory of your choice and name it with a .bat extension (e.g. GetAppPoolProcessIds.bat):
cscript.exe %systemroot%\system32\iisapp.vbs pause
Double-click the script and it will display the list of processes. Click any key to close the window:
Add the script to the Windows Start Menu and click it each time you need to see the process list. This is what I do each time I run the Visual Studio Debugger to debug a DLL deployed to a SharePoint application.