473,804 Members | 4,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspnet_wp.exe (100%) cpu leak

Luk
Hi,
we have got a problem with asp.net and we don't know what to do

Usually aspnet_wp.exe under medium/high load uses a maximum of 40% cpu
power.
Suddently even when requests are not so high it starts using 100% cpu.
Pages are so served in many seconds each (instead of few cents),
process threads and memory grows for all user new requests due to the
low speed or complete non working site. However we have not memory
problems (there is always enough free mem).
We can't understand what is using cpu and how to solve this problem.

It remains in this state for many minutes (sometimes hours...) if we
don't kill aspnet_wp.exe before. Even after process restarts aspnet
compile aspx files and in this moment the cpu is normally high for few
seconds.Then the cpu is on normal values also with many requests.
This problem returns sometimes after hours, often after few minutes.

In machine.config:

<processModel
enable="true"
timeout="Infini te"
idleTimeout="In finite"
shutdownTimeout ="0:00:05"
requestLimit="I nfinite"
requestQueueLim it="600"
restartQueueLim it="10"
memoryLimit="60 "
webGarden="fals e"
cpuMask="0xffff ffff"
userName="machi ne"
password="AutoG enerate"
logLevel="Error s"
clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t"
comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00"
maxWorkerThread s="20"
maxIoThreads="2 0"
/>

But we tried many configuration here with no useful results:
maxWorkerThread s and maxIoThreads from 13 to 100, and
requestQueueLim it from 300 to 5000. aspnet_wp.exe goes to 100% when it
wants and goes down only after several minutes (this could be more

We monitored some info in performance counters but didn't find
anything useful.

We don't use monitors, software lock, or critical section in the code.
We store a lot of data at application level (using global.asax), and
some in session state (with cookie, inProc).
All exception we can handle are saved, and there is nothing strange.

Help us please... Thanks

Server is:
- dual Xeon 2.8 GHz (with HT active), 2GB RAM,
- Win2k server SP3 (and other patchs...) + IIS 5
- .NET Framework v1.1.4322
- isapi filter used : flatcompression (www.flatcompression.org) and
urlscan
- MySQL driver used: MyOdbc-3.51.06 and MySQLDriverCS-3.0.13
Nov 18 '05 #1
3 4785
have you changed or updated the running code recently? to fix a bug or
something? I'm thinking this is buggy code introduced into the system

what do your application event logs say?

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Luk" <lu**@libero.it > wrote in message
news:51******** *************** ***@posting.goo gle.com...
Hi,
we have got a problem with asp.net and we don't know what to do

Usually aspnet_wp.exe under medium/high load uses a maximum of 40% cpu
power.
Suddently even when requests are not so high it starts using 100% cpu.
Pages are so served in many seconds each (instead of few cents),
process threads and memory grows for all user new requests due to the
low speed or complete non working site. However we have not memory
problems (there is always enough free mem).
We can't understand what is using cpu and how to solve this problem.

It remains in this state for many minutes (sometimes hours...) if we
don't kill aspnet_wp.exe before. Even after process restarts aspnet
compile aspx files and in this moment the cpu is normally high for few
seconds.Then the cpu is on normal values also with many requests.
This problem returns sometimes after hours, often after few minutes.

In machine.config:

<processModel
enable="true"
timeout="Infini te"
idleTimeout="In finite"
shutdownTimeout ="0:00:05"
requestLimit="I nfinite"
requestQueueLim it="600"
restartQueueLim it="10"
memoryLimit="60 "
webGarden="fals e"
cpuMask="0xffff ffff"
userName="machi ne"
password="AutoG enerate"
logLevel="Error s"
clientConnected Check="0:00:05"
comAuthenticati onLevel="Connec t"
comImpersonatio nLevel="Imperso nate"
responseDeadloc kInterval="00:0 3:00"
maxWorkerThread s="20"
maxIoThreads="2 0"
/>

But we tried many configuration here with no useful results:
maxWorkerThread s and maxIoThreads from 13 to 100, and
requestQueueLim it from 300 to 5000. aspnet_wp.exe goes to 100% when it
wants and goes down only after several minutes (this could be more

We monitored some info in performance counters but didn't find
anything useful.

We don't use monitors, software lock, or critical section in the code.
We store a lot of data at application level (using global.asax), and
some in session state (with cookie, inProc).
All exception we can handle are saved, and there is nothing strange.

Help us please... Thanks

Server is:
- dual Xeon 2.8 GHz (with HT active), 2GB RAM,
- Win2k server SP3 (and other patchs...) + IIS 5
- .NET Framework v1.1.4322
- isapi filter used : flatcompression (www.flatcompression.org) and
urlscan
- MySQL driver used: MyOdbc-3.51.06 and MySQLDriverCS-3.0.13

Nov 18 '05 #2
Thank you for your reply

I have always had this problem. But once it happened 1 time a week. Now
it's much more frequent, and in the last weeks even several times a
day...

There's nothing on the application event log, process don't recycle on
his own (i have to kill it, or wait a lot...)

Code changes frequently for new services or improvements. I tried to
isolate and modify some features that could have been heavy to manage
(that used monitor to access to a global resource, now with an external
mysql heap table).
I still store a lot of data in global objects (some hashtables taking
about 700 mb on high load), but i dont think this is a problem.

What could i monitor in performance counter to understand what is using
cpu?
I noticed that both GC counters and exceptions/s reports same values in
both cpu situations.
I dont know if it's a code loop or a performance issue connected to a
bug, or something else...

thanks
Re: aspnet_wp.exe (100%) cpu leak
From: Alvin Bruney [MVP] have you changed or updated the running code recently? to
fix a bug or
something? I'm thinking this is buggy code introduced into
the system what do your application event logs say?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Are you pumped? Roll up your sleeves because this will make you sweat, more
like cry out for mamma. (it's a lot of work basically)

start here
http://www.microsoft.com/technet/pro...t/tshicpu.mspx

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"F. L." <lu**@libero.it > wrote in message
news:Ou******** *****@TK2MSFTNG P09.phx.gbl...
Thank you for your reply

I have always had this problem. But once it happened 1 time a week. Now
it's much more frequent, and in the last weeks even several times a
day...

There's nothing on the application event log, process don't recycle on
his own (i have to kill it, or wait a lot...)

Code changes frequently for new services or improvements. I tried to
isolate and modify some features that could have been heavy to manage
(that used monitor to access to a global resource, now with an external
mysql heap table).
I still store a lot of data in global objects (some hashtables taking
about 700 mb on high load), but i dont think this is a problem.

What could i monitor in performance counter to understand what is using
cpu?
I noticed that both GC counters and exceptions/s reports same values in
both cpu situations.
I dont know if it's a code loop or a performance issue connected to a
bug, or something else...

thanks
Re: aspnet_wp.exe (100%) cpu leak
From: Alvin Bruney [MVP]

have you changed or updated the running code recently? to
fix a bug or
something? I'm thinking this is buggy code introduced into
the system

what do your application event logs say?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4858
by: Wendy S | last post by:
We've been provided a Java app to use for a homework assignment on databases. It's my own fault for writing inefficient queries, but it keeps taking 100% of my CPU and it takes several minutes to get the Task Manager open and kill it. Is there a way, maybe with command line argument, to restrict the amount of resources it can consume? Thanks, --
5
2360
by: Ken Barrett | last post by:
I apologize in advance for cross-posting, but I have noted that others have experienced similar issues and was hoping that someone could help. Briefly, I am working on an ASP.NET content management application written in C#. running on .NET Framework 1.1/W2K/IIS5. The application uses the Microsoft WebService Behavior to generate a tree of "folders" in a frame on the left hand side. The user can click on a "folder", and the contents...
1
1179
by: caulker | last post by:
i have an asp.net that seems to be leaking memory somewhere. in an attempt to find it, i create a blank test.aspx page with one label on it, and made this the default page for the site. every time i refresh test.aspx the memory ussage for aspnet_wp.exe increases. why?
1
1227
by: Richie | last post by:
Folks, We have an intermittent error in our asp.net application which is driving us all crazy. In our app, we need to view the reports frequently. Now once every week, what happens is when we want to view these reports, it shows this error saying "Invalid Field name". The EXPORT method has the problem. At this point, the memory usage of ASPNET_WP.EXE is approx 300 MB. The server is running continiously ... FYI.
2
5166
by: RaptorsFan | last post by:
aspnet_wp process accumulates memory usage up to the point when it's more than 60% of available RAM (2G) and none of .NET applications function. Sometimes user is able to login, navigate between the pages but can't perform any operations that generate thing like PDF files using Crystal Reports etc. Sometimes the application can't even be loaded and sign-in page stays blank. There are no events that are logged in the event viewer to point to...
2
2195
by: Sidharth | last post by:
Hello, We are experiencing some issues with the aspnet_wp process on our live servers. The problems are intermittent and we cannot reproduce it on our dev and test servers. Currently around twice a day the aspnet_wp process takes 100% of the cpu and causes the whole website to come to a stand still. We then have to end the process for the website to become useable. Once the aspnet_wp process recycled itself and in the event logs it...
2
2000
by: Marcin Belczewski | last post by:
I have a problem with aspnet_wp.exe on my Windows XP. When I start any of my web applications, webservices or even try to create asp.net project under vs.net - aspnet_wp.exe process starts - consumes 50% of CPU and works for a long time doing nothing - web applications, vs.net seem to hang. After some time aspnet_wp.exe spawns and another aspnet_wp.exe consumes CPU without processing requests properly. Overnight I had 30 aspnet_wp...
2
2184
by: Rishan | last post by:
Hi, I'm trying to debug a memory leak on a production application for one of my clients. The aspnet_wp.exe, if left to grow, will eventually consume enough memory to throw an out of memory exception. The thing that was unexpected is that most of the memory is not in the heap. The current usage stats are: total memory consumption of aspnet_wp.exe: 400MB
2
1665
by: ruca | last post by:
Hi gurus, Can anyone tell me please when I really must setup the value of memory that aspnet_wp or w3wp must use in IIS server machine? What I mean is that we have clients that have diferent specificatiosn in their server machines that have IIS to runnning WebApplications. This can change for example in RAM memory that is available. One have 1GB, other 2GB and another 4GB. I.e., how can I know when I must change any configuration in...
0
9707
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10586
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.