Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Our memory leaks?

Reply
Thread Tools

Our memory leaks?

 
 
James Hunter Ross
Guest
Posts: n/a
 
      10-20-2005
Friends,

I've been watching or W3WP process size (using Task Manager), and it grows
and grows when using our application. I am the only one on our server. I'll
end my session, either through timeout or logout, and the process size never
goes down. I could understand that if the next time I logged in the size
didn't change, implying that the process was big but had "headroom". But,
things start growing again.

I guess that we have leaks! I didn't think it was easy for a ASP.NET/C#
implmentation to leak? I've seen bad programming where a reference is held
so an object lives longer than one might expect, but once an object is
destroyed, (such as when the Session goes away), it should be freed.

Should I conclude that my app is leaking in an extreme way? How might I
ever find these things, the code looks good to us?

A friendly word or two will be very much appreciated. Thanks in advance!

James


 
Reply With Quote
 
 
 
 
Jeff Siver
Guest
Posts: n/a
 
      10-20-2005
I believe that what you are seeing is normal. The memory requested by
ASP.NET stays allocated to it. When garbage collection runs, the memory is
marked as available but ASP.NET doesn't return the memory to the operating
system, it keeps it so that it can be allocated to later tasks.

"James Hunter Ross" <> wrote in message
news:...
> Friends,
>
> I've been watching or W3WP process size (using Task Manager), and it grows
> and grows when using our application. I am the only one on our server.
> I'll end my session, either through timeout or logout, and the process
> size never goes down. I could understand that if the next time I logged
> in the size didn't change, implying that the process was big but had
> "headroom". But, things start growing again.
>
> I guess that we have leaks! I didn't think it was easy for a ASP.NET/C#
> implmentation to leak? I've seen bad programming where a reference is
> held so an object lives longer than one might expect, but once an object
> is destroyed, (such as when the Session goes away), it should be freed.
>
> Should I conclude that my app is leaking in an extreme way? How might I
> ever find these things, the code looks good to us?
>
> A friendly word or two will be very much appreciated. Thanks in advance!
>
> James
>



 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      10-20-2005
actually they are pretty easy to get.

you need to determine if you are leaking managed or unmanaged memory.
failing to call dispose on component objects or not calling
Marshal.ReleaseComObject() on com objects is a sure way to "leak" unmanaged
memory. managed memory "leaks" happen when too much data is stored in inproc
sessions (takes 20 minutes to be released), statics holding references.

here is an article to get you started:

http://msdn.microsoft.com/library/de...ml/dbgch02.asp

-- bruce (sqlwork.com)


"James Hunter Ross" <> wrote in message
news:...
> Friends,
>
> I've been watching or W3WP process size (using Task Manager), and it grows
> and grows when using our application. I am the only one on our server.
> I'll end my session, either through timeout or logout, and the process
> size never goes down. I could understand that if the next time I logged
> in the size didn't change, implying that the process was big but had
> "headroom". But, things start growing again.
>
> I guess that we have leaks! I didn't think it was easy for a ASP.NET/C#
> implmentation to leak? I've seen bad programming where a reference is
> held so an object lives longer than one might expect, but once an object
> is destroyed, (such as when the Session goes away), it should be freed.
>
> Should I conclude that my app is leaking in an extreme way? How might I
> ever find these things, the code looks good to us?
>
> A friendly word or two will be very much appreciated. Thanks in advance!
>
> James
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I have 2 IP addresses on our internal interface on our cisco pix firewall bgamblin@spvg.com Cisco 1 09-08-2005 08:54 PM
How do we stamp our names onto our photos? Kim Digital Photography 6 01-06-2005 06:12 AM
Where do we get our MCDST symbols to put in our outlook signature? sb20056 MCDST 1 04-09-2004 09:40 PM
Re: C# memory problem: no end for our problem ? Ted Miller ASP .Net 0 09-13-2003 08:45 PM
Andre - A response to your post in the "C# memory problem: no end for our problem ?" thread Andreas Suurkuusk ASP .Net 0 07-27-2003 09:04 PM



Advertisments