Solved

w3wp.exe process running frequently at 100% CPU

Posted on 2008-10-21
3
1,491 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now