Here I will brief you about how to find currently running w3wp process for your application. I have seen at many places where people attaches all the running process to application to debug the server side code ; which in turn uses large server memory resources. To avoid this you can use below single line command to find the exact w3wp process and attach only required process.
Steps
- Go to C:\windows\System32\inetsrv
- Run this command appcmd list wps
Please find below image for details. E.g. Consider a case you are running your application on SharePoint- 1000 application pool; you can attach process with 10840 Id.
Note
- Shortcut to Attach A process (Ctrl + Alt + P).
- Not always Visual studio list out the currently running process in first position.
Happy SharePointing !!!!