I have a C# .NET Console application which, in spite of garbage collection
and the fact that I'm pretty sure I have no lingering references, slowly
takes more and more memory as it runs (as shown in the task manager) until it
slows to a crawl.

Can anyone suggest a good profiler that I might use to discover what this
memory's being allocated to?

b.t.w. the app uses a database, does other filesystem operations, and may
call into a c++ library occasionally (the HTML Tidy libaray, for those of you
familiar with it... actually NTidy, the .NET wrapper.)

Thanks,

Andrew

RE: Memory by joewood

joewood
Wed Dec 15 13:29:02 CST 2004

Hi Andrew

Check this blog entry all about memory leaks and dumping the heap:
http://blogs.msdn.com/ricom/archive/2004/12/10/279612.aspx
You may want to start by just running the CLR Profiler.


"Andrew" wrote:

> I have a C# .NET Console application which, in spite of garbage collection
> and the fact that I'm pretty sure I have no lingering references, slowly
> takes more and more memory as it runs (as shown in the task manager) until it
> slows to a crawl.
>
> Can anyone suggest a good profiler that I might use to discover what this
> memory's being allocated to?
>
> b.t.w. the app uses a database, does other filesystem operations, and may
> call into a c++ library occasionally (the HTML Tidy libaray, for those of you
> familiar with it... actually NTidy, the .NET wrapper.)
>
> Thanks,
>
> Andrew