Re: Tracking a memory leak.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Frank,

You should be looking at the performance counters here to see what the
memory consumption of .NET is. You should look at the ".NET CLR Memory"
category.

--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"Frank Rizzo" <none@xxxxxxxx> wrote in message
news:OPTBaFDlHHA.3280@xxxxxxxxxxxxxxxxxxxxxxx
I have an object tree that is pretty gigantic and it holds about 100mb of
data. When I set the top object to null, I expect that the .NET framework
will clean up the memory at some point. However, I am looking at the Task
Manager and I don't see the MemUsage column decreasing even after an hour
or two. I know that TaskManager may not be the best place to see what is
the true way to gauge memory usage and/or presense of memory leaks. So I
am looking for a pointer on what I should use to see whether setting an
object to null really will at some point free up memory.

Regards


.



Relevant Pages

  • Re: [PATCH] A new entry for /proc
    ... A fine grain memory control ... work on optimising memory consumption. ... We intend to test this new patch and see how it works with more applications. ...
    (Linux-Kernel)
  • Re: IIS 6 Site Hang after IdleTimeout Shutdown
    ... We have some fears on memory consumption if we were to allow no idle timeout. ... If you mean having recycle by a Memory limit, these sites show no sign of a memory leak and are recycled twice daily automatically, just in case we don't catch this restart issue. ... Each connection raised the Ram usage on the WorkerProcess about 20K, and Incremented "Current Anonymous Users" perf counter under Web Service by 1. ...
    (microsoft.public.inetserver.iis)
  • Re: maximum .net process can use
    ... reduce memory consumption. ... I would say that your only option is to live with process recycling. ... > You did change your code to reduce the memory consumption, ... > such that there is less fragmentation of the LOH. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Memory Consumption
    ... You are correct in your assumption as to the memory consumption. ... loaded the CLR and the FCL dlls for the System, ... ran that app, the memory footprint would be enormous. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Slow Debugger
    ... Ok, but that's the memory taken by your application only, right?. ... look at the total memory consumption when run from VS? ... only since I reinstalled Windows XP SP2 Fully Patched and went ... | In my current install of windows, ...
    (microsoft.public.dotnet.languages.csharp)