How to figure out why the private bytes is growing

Memory profiling for .NET developers

Moderators: StephenC, Alex.Davies, AndrewH, melvyn.harbour

How to figure out why the private bytes is growing

Postby EddieL » Tue Aug 04, 2009 4:39 pm

Hi there,

I have been using this excellent tool to try to track down a problem that appears in one of our .NET application. Our application is written in C# but uses a managed C++ .dll that wraps some standard C++ code (an auto generated gSOAP client, if you need all the details). What I have observed is that after a few days or weeks of running smoothly, the number of private bytes start growing, all of a sudden. The memory usage, when the application starts hovers around 58 MB and stays like this for days and weeks. Then it starts to grow and it constantly goes up. With the help of the profiler, I was able to pinpoint the problem on the number of private bytes. The green line is flat for x days and then turns into an inclined plain, climbing higher and higher. Currently, the memory used by this app grew to over 600 MB, when it only started at 58 MB. I read that the private bytes include unmanaged memory. Is there a way I can find out more about that? Idealy would be to know what's the type of the objects that are making up these private bytes.

Any help will be highly appreciated.
Best regards,
Posts: 2
Joined: Tue Aug 04, 2009 4:28 pm

Postby Brian Donahue » Thu Aug 06, 2009 9:32 am

Hi Eddie,

I see that you have already been in contactwith Andrew about this. I don't have much to add myself except that you may be able to get at least a bit more info at no cost to you using Windows Debugging Tools (windbg). Tess covers this pretty extensively in her blog: ... where.aspx

Also, I believe that our own Memory Tracker can show you, graphically, if there is a bunch of free space in your LOH.
Brian Donahue
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests