need some help with my profile

Memory profiling for .NET developers

need some help with my profile

Postby tperri » Tue Jul 20, 2010 10:05 pm

I'm new to this memory-leak hunting, so please bare with me.

WPF app, C#.

In my snapshot analysis, I'm seeing 1711 classes, but only a few that concern me. And out of those, really, only one does - System.String

Live Size bytes are 506,824 (yowch)
Live Instances - 7880

Now, if I go to the Class Reference explorer, I see that 51% of my Strings belong to System.Object[].

48% are GC Roots, 4% Collections.ArrayList

I am at a loss on what to do next.

I did look at the list of my almost 8000 objects, I see things like multiple instances of items in my resx files - that really stood out at me. But I'm not sure where to go from here.

I appreciate any insight and direction that anyone can give me try to cut these string objects down.

Thank you so much!
Posts: 3
Joined: Mon May 03, 2010 8:00 am
Location: Nevada

Postby nick.maidment » Thu Jul 22, 2010 9:13 am

Please can you save your results and email them to support @ with the reference F0036950 in the subject line?

If you haven't seen them already, there are a whole bunch of tutorial videos here: ... /video.htm

While they are not necessarily specific to wpf, the principles behind them can be utilized in the same way.
Posts: 74
Joined: Fri Jan 29, 2010 12:55 pm

Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests