Solved

w3wp.exe process running frequently at 100% CPU

Posted on 2008-10-21
3
1,512 Views
Last Modified: 2008-11-11
I have two IIS web servers hosting a lot of custom developed ASP.NET web applications. The two web servers are hosting the same content in a load balanced manner.

Very frequently the CPUs on both boxes spin up to 100% utilisation and the offending process is the w3wp.exe process. I believe that the problem is to do with the code in one of these ASP.NET applications but I am not sure how to identify which one.

I'm currently running ~30 Applications in the one DefaultAppPool and the w3wp.exe process is regularly taking up 300 MB of RAM.

What can I do to identify the problem code?

Thanks

Mat
0
Comment
Question by:it-services
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Expert Comment

by:AnthonyP9618
ID: 22773070
Download the IIS Debug tools... Probably the most helpful in looking for IIS problems and offending code.

http://www.microsoft.com/downloads/details.aspx?FamilyID=01c4f89d-cc68-42ba-98d2-0c580437efcf&DisplayLang=en
0
 
LVL 4

Accepted Solution

by:
Interserv earned 500 total points
ID: 22773332
We recently ran into a similar issue.  w3wp.exe is the process for the application pool.  If you can split the application pool between the 30 different Applications it will be easier to debug.  I found IISstate and DebugDiag1.1 the easiest tools for debugging.  Use IISstate for gathering a dump and DebugDiag for looking into the dump.

DebugDiag:
http://www.microsoft.com/downloads/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&displaylang=en

IISstate:
http://www.iisfaq.com/default.aspx?view=P197

You can also use a Sysinternal called Procexp.exe or process explorer.  It is like Task Manager on steroids.  You can take a look at memory and CPU utilization of each w3wp.exe process running (one for each application pool).  This will help you identify which app pool is spiking system resources and narrow down the code.  Then you can run your debug with the tools already mentioned.

This was somewhat helpful in understanding thing more:
http://blogs.msdn.com/david.wang/archive/2005/08/29/HOWTO_Understand_and_Diagnose_an_AppPool_Crash.aspx

0
 
LVL 1

Author Comment

by:it-services
ID: 22937112
Thanks Interserv

I split up the Applications into different app pools which helped me identify which one had the problem code.


0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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