W3wp.exe Associate Process ID with Application Pool
If you noticed your website is running slow, probably one of the first things you do is log into your web server, open Task Manager and check what’s going on. Usually you will see a process called w3wp.exe (or several instances of it) running and using high cpu utilization.
W3wp.exe is the worker process that Internet Information Services (IIS) uses for the application pools on your site. Each application pool, is assigned a separate worker process. That way an exception or crash in one of your application pools doesn’t affect other sites running in a different app pool.
To identify which w3wp process belongs to which application pool, here is what you will need to do. NOTE: this is specific for IIS 7.
In Task Manager, switch to the Processes tab. From the top menu, click on View and then Select Columns…, ensure that PID (Process Identifier) is checked.
Now open a command window (Start -> Run -> cmd.exe) and change directory to the following path,
cd c:\windows\system32\inetsrv
*notice that inetsrv may be inetsrv32 or inetsrv64 depending on your specific version of Windows Server.
Once in this directory, type the following:
appcmd list wp
The output will appear with the Process ID (PID from Task Manager) and the associated application pool belonging to it.
Another helpful command is: appcmd list requests
This will list all current requests and other useful information, such as time in milliseconds to help you identify long running requests.
No Comments
Comments RSS
TrackBack Identifier URI
No comments. Be the first.
Leave a comment