Red Gate forums :: View topic - How to figure out why the private bytes is growing
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

How to figure out why the private bytes is growing

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
EddieL



Joined: 04 Aug 2009
Posts: 2

PostPosted: Tue Aug 04, 2009 4:39 pm    Post subject: How to figure out why the private bytes is growing Reply with quote

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,
Eddie
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6666

PostPosted: Thu Aug 06, 2009 9:32 am    Post subject: Reply with quote

Hi Eddie,

I see that you have already been in contact with 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:

http://blogs.msdn.com/tess/archive/2005/11/25/i-have-a-memory-leak-what-do-i-do-defining-the-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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group