Solved

link web application to a specific process

Posted on 2013-02-06
9
375 Views
Last Modified: 2013-02-12
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?
0
Comment
Question by:dhenderson12
  • 5
  • 4
9 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 38861749
Try giving it its own AppPool.  I think that will break it out as a separate process.
0
 

Author Comment

by:dhenderson12
ID: 38868768
ok, but how would it be identified?  at the moment, all web apps have their own process, but the same name (w3wp.exe).
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 38868840
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:dhenderson12
ID: 38871990
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
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 38876646
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
 

Author Comment

by:dhenderson12
ID: 38880462
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
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 38880585
"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
 

Author Comment

by:dhenderson12
ID: 38881037
now i understand.  that worked perfectly to identify the app pool.  thanks.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 38881159
Happy to help and good luck with your troubleshooting!
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
extended monitor print screen 8 33
Sent email using Shared Mailbox from outlook in C# 5 24
what about DCpro 2 29
transaction in asp.net, sql server 6 33
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question