link web application to a specific process

I have an iis7 web server which hosts about 6 different web applications.  One of them is using a large of amount cpu, as viewed in task manager.  How can I link a process to a specific web application?
dhenderson12Asked:
Who is Participating?
 
Paul MacDonaldDirector, Information SystemsCommented:
"so there's no way to determine which of the apps is using the greatest amount of cpu?"
Here's one way:

The first thing you should do is give each application its own Application Pool.  That will give you some isolation between web applications and make it harder for a problem on one to affect others.  

Then, get Process Explorer and install it on your web server.  Running Process Explorer will tell you (like Task Manager) what processes are using CPU cycles, memory, etc.  

Bringing up the properties of a web (w3wp) process and scrolling across the "Command line:" section should tell you the name of the Application Pool used by that process.  The name of the App Pool, in turn, tells you which web application is causing the problem.
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Try giving it its own AppPool.  I think that will break it out as a separate process.
0
 
dhenderson12Author Commented:
ok, but how would it be identified?  at the moment, all web apps have their own process, but the same name (w3wp.exe).
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
Paul MacDonaldDirector, Information SystemsCommented:
Yes, it will be difficult to identify a particular process, but you can use Task Manager to see the Process ID (go to View -> Select Columns) and leverage that.  

SysInternals also has a variety of tools (including Process Monitor and Process Explorer) that can tell you what applications are associated with what processes.
0
 
dhenderson12Author Commented:
I'm sorry, but I understand how to get process id from task manager.  I just don't understand how to link it to the specific web application. How can I do that?
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Well, you can't.  The process IDs are assigned as processes start.  What ID a process gets depends on the order of all processes starting.
0
 
dhenderson12Author Commented:
so there's no way to determine which of the apps is using the greatest amount of cpu?  How do web admins know which apps are eating up their server resources, then?  How do they know when to shut down an errant web app?
0
 
dhenderson12Author Commented:
now i understand.  that worked perfectly to identify the app pool.  thanks.
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Happy to help and good luck with your troubleshooting!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.