Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1543
  • Last Modified:

w3wp.exe process running frequently at 100% CPU

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
it-services
Asked:
it-services
1 Solution
 
AnthonyP9618Commented:
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
 
InterservCommented:
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
 
it-servicesAuthor Commented:
Thanks Interserv

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


0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now