473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

aspnet_wp.exe memory leak questions...

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

# bytes in all heaps: 180MB
gen 0 heap size: 12 MB
gen 1 heap size: 1MB
gen 2 heap size: 160 MB
Large object heap size: 8MB
Other info:

-.Net framework 1.1
-Total physical memory: 4 GB
-Server only hosts the one asp.net application, database exists on another
server
-Session State is SQL Server, so all session information is stored on the
database.
-about 40 concurrent users.
-it grew to 400MB in about 7 days.

My question is: What is making up this extra 200 MB? (stack information?)

Thanks in advance,

Rishan
Mar 27 '06 #1
2 2171
First thing you should do is configure your application pools so that you
don't get the out of memory exception. It can happen a lot with vanilla
Windows servers with 3-4 GB of ram. Read more about it here:
http://www.developmentnow.com/blog/2...th-aspnet.html

To dig into th ememory some more, you could try out the demo version of Red
Gate's ANTS profiler:
http://www.red-gate.com/products/ant...iler/index.htm
It'll show you exactly where all the memory is going. I wouldn't worry so
much about the 200mb (that's small), but more about what's leaking. You're
probably getting the exceptions when your pool hits 1.6-1.8gb of memory.
That's a lot.

--
Benjamin Strackany
http://www.developmentnow.com
"Rishan" <an**@anon.com> wrote in message
news:eu**************@TK2MSFTNGP14.phx.gbl...
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

# bytes in all heaps: 180MB
gen 0 heap size: 12 MB
gen 1 heap size: 1MB
gen 2 heap size: 160 MB
Large object heap size: 8MB
Other info:

-.Net framework 1.1
-Total physical memory: 4 GB
-Server only hosts the one asp.net application, database exists on another
server
-Session State is SQL Server, so all session information is stored on the
database.
-about 40 concurrent users.
-it grew to 400MB in about 7 days.

My question is: What is making up this extra 200 MB? (stack information?)

Thanks in advance,

Rishan

Mar 27 '06 #2
Ok, i believe I've answered my own question...

I took two "dumps" of the aspnet worker process. One last week when it was
200MB, one this morning when it was 400MB.

The private bytes has consistently been about 170 MB for both dumps, and is
170MB right now...

The managed heap size has made up the difference in size. This week it was
180 MB, last week it was 100 MB, right now it's 30MB (it's been an hour
since the worker process was recycled).

So, it looks like I have a leak in my managed code. Looking at the heap
details, the main difference is the number of allocated System.String
objects (which are probably rooted elsewhere). The strings don't seem to be
rooted in Datasets or Datarows (80,000 allocated for both dumps)...so I'll
have to dig a little deeper for more info...

Rishan

"Rishan" <an**@anon.com> wrote in message
news:eu**************@TK2MSFTNGP14.phx.gbl...
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

# bytes in all heaps: 180MB
gen 0 heap size: 12 MB
gen 1 heap size: 1MB
gen 2 heap size: 160 MB
Large object heap size: 8MB
Other info:

-.Net framework 1.1
-Total physical memory: 4 GB
-Server only hosts the one asp.net application, database exists on another
server
-Session State is SQL Server, so all session information is stored on the
database.
-about 40 concurrent users.
-it grew to 400MB in about 7 days.

My question is: What is making up this extra 200 MB? (stack information?)

Thanks in advance,

Rishan

Mar 27 '06 #3

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

Similar topics

1
by: | last post by:
We have about 4 .net applications on a windows 2000 IIS5 server, and recently the memory of the aspnet_wp.exe process has been increasing quickly until the process is automatically recycled do to...
0
by: Scott | last post by:
We have about 4 .net applications on a windows 2000 IIS5 server, and recently the memory of the aspnet_wp.exe process has been increasing quickly until the process is automatically recycled do to...
3
by: Luk | last post by:
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...
1
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...
6
by: Trapulo | last post by:
On my server (dual XEON 1GB ram) aspnet_wp is using a lot of ram: 500MB ram, 585MB virtual. The server reports only 7.5MB ram free and 30MB system cache. Is this normal? Why garbage collector...
2
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...
9
by: Anton | last post by:
{Willy Skjveland} Hi, how can I trace a Memory leak in aspnet_wp.exe? {Rheena} One moment please while I search it for you. It may take me a few moments {Willy Skjveland} I need to find out...
2
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...
0
by: xievvv | last post by:
We are experiencing a memory leak in one of our applications. It is a web-based reporting system that produces large (> 500mb) PDF reports. It takes approx 4 hours to run the largest of these reports...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.