Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2006

Tip: Looking for answers? Try searching our database.

Need utility to compare !DumphHeap results from two dump files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Loy - 28 Sep 2006 10:38 GMT
Before I write this utility myself - I thought someone must have
written such things - so why inventing the wheel?

Problem: Memory leak in large application
 Memory profiler does not handle the load or affect the application
performance
 Memory profiler can't be installed on customer site

Due to the above limitation - I simulate the memory profiler work using
comparison of dump files
Since the same investigation type repeat from time to time, I thought
it is time to automate things up.

The main output I need is a list of allocated types sorted by the
DIFFERENCE between the two dumps

Please point me to code or tool that can do this

Thanks

Loy
Michael Nemtsev - 28 Sep 2006 17:46 GMT
Hello Loy,

See there http://support.microsoft.com/default.aspx?scid=kb;en-us;164151

L> Before I write this utility myself - I thought someone must have
L> written such things - so why inventing the wheel?
L>
L> Problem: Memory leak in large application
L> Memory profiler does not handle the load or affect the application
L> performance
L> Memory profiler can't be installed on customer site
L> Due to the above limitation - I simulate the memory profiler work
L> using
L> comparison of dump files
L> Since the same investigation type repeat from time to time, I thought
L> it is time to automate things up.
L> The main output I need is a list of allocated types sorted by the
L> DIFFERENCE between the two dumps
L>
L> Please point me to code or tool that can do this
L>
L> Thanks
L>
L> Loy
L>
---
WBR,
Michael  Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
Loy - 04 Oct 2006 08:38 GMT
Hi Michael
Sorry for not responding earlier (I was out of office for few days)

Thanks for your reply - but I couldn't find the needle in the hay stack
 I searched your page for "compare" or "dump" or "dumpheap" or "dh" or
"leak" and found nothing

Could you be more specific - or quote specific lines?

Thanks

Loy

> Hello Loy,
>
[quoted text clipped - 27 lines]
> "At times one remains faithful to a cause only because its opponents do not
> cease to be insipid." (c) Friedrich Nietzsche
Loy - 04 Oct 2006 08:47 GMT
I was looking at the wrong site, but the other one is not answering my
question as well

I understand - from the lack of responses - that there is actually no
tool to compare two dump files, and specifically compare the outputs of
!sos.dh -stat -cache

I'll find the time to write such utility - please let me know if more
people need it
(or is it just crazy me)

Loy

> Hello Loy,
>
[quoted text clipped - 27 lines]
> "At times one remains faithful to a cause only because its opponents do not
> cease to be insipid." (c) Friedrich Nietzsche
Willy Denoyette [MVP] - 07 Oct 2006 16:04 GMT
When redirecting !dumpheap output to a file, you could use windiff.exe (part
of the platform sdk) to compare it with a previous !dumpheap output.

Willy.

|I was looking at the wrong site, but the other one is not answering my
| question as well
[quoted text clipped - 40 lines]
| > "At times one remains faithful to a cause only because its opponents do not
| > cease to be insipid." (c) Friedrich Nietzsche
Loy - 08 Oct 2006 10:33 GMT
Hi Willy
Thanks for your response but it does not answer my issue

Since the output of dumpheap is ordered by size and not by MT - windiff
will show lots of false differences just because lines moved up or down
of total size changed by a bit

As I wrote - I need to align two outputs of that kind (according to MT)
and then sort them according to Count or Size

Loy

Does anyone else need such utility (Do let me know)?

> When redirecting !dumpheap output to a file, you could use windiff.exe (part
> of the platform sdk) to compare it with a previous !dumpheap output.
[quoted text clipped - 46 lines]
> not
> | > cease to be insipid." (c) Friedrich Nietzsche

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.