When our server creates a lot of application pools, and then a w3wp.exe process consumes too much CPU and memory, how do we find out which Web site this w3wp.exe process belongs to? In fact, Microsoft has provided us with good viewing tools:
First open Windows Task Manager – Click View-Select Columns – Put the PID on the hook! You can see the PID option in the process,
In IIS6 You can use the Iisapp command to see all w3wp process pid corresponding to the site situation
Click to run – Enter cmd– input iisapp-a It's strange that the PID is shown in a pop-up window, which is not conducive to viewing!!
For example:
Command: IISAPP-A View all
In particular, there are some command parameters and usage, please input iisapp in cmd/? View!
But in IIS7 , Microsoft changed its approach and switched to the Appcmd command, as follows:
1: There are appcmd.exe tools in the System32 folder ,%windir%\system32\inetsrv\appcmd.exe
2: Open the DOS command window, navigate to the folder
3: Enter the view command:appcmd list WP, you can see all the w3wp process situation
This article original address: http://hi.baidu.com/yfyh1001/blog/item/f01ca4521ad1eb010df3e38b.html
View w3wp process in IIS6,IIS7