HighTechTalks DotNet Forums  

Need utility to compare !DumphHeap results from two dump files

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Need utility to compare !DumphHeap results from two dump files in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Loy
 
Posts: n/a

Default Need utility to compare !DumphHeap results from two dump files - 09-28-2006 , 05:38 AM






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


Reply With Quote
  #2  
Old   
Michael Nemtsev
 
Posts: n/a

Default Re: Need utility to compare !DumphHeap results from two dump files - 09-28-2006 , 12:46 PM






Hello Loy,

See there http://support.microsoft.com/default...b;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 Nietzsche



Reply With Quote
  #3  
Old   
Loy
 
Posts: n/a

Default Re: Need utility to compare !DumphHeap results from two dump files - 10-04-2006 , 03:38 AM



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


Michael Nemtsev wrote:
Quote:
Hello Loy,

See there http://support.microsoft.com/default...b;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 Nietzsche


Reply With Quote
  #4  
Old   
Loy
 
Posts: n/a

Default Re: Need utility to compare !DumphHeap results from two dump files - 10-04-2006 , 03:47 AM



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

Michael Nemtsev wrote:
Quote:
Hello Loy,

See there http://support.microsoft.com/default...b;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 Nietzsche


Reply With Quote
  #5  
Old   
Willy Denoyette [MVP]
 
Posts: n/a

Default Re: Need utility to compare !DumphHeap results from two dump files - 10-07-2006 , 11:04 AM



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.


"Loy" <l.oyolox (AT) gmail (DOT) com> wrote

Quote:
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

Michael Nemtsev wrote:
Hello Loy,

See there http://support.microsoft.com/default...b;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 Nietzsche




Reply With Quote
  #6  
Old   
Loy
 
Posts: n/a

Default Re: Need utility to compare !DumphHeap results from two dump files - 10-08-2006 , 05:33 AM



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)?


Willy Denoyette [MVP] wrote:
Quote:
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.


"Loy" <l.oyolox (AT) gmail (DOT) com> wrote in message
news:1159948032.716308.326160 (AT) i42g2000cwa (DOT) googlegroups.com...
|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
|
| Michael Nemtsev wrote:
| > Hello Loy,
|
| > See there http://support.microsoft.com/default...b;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 Nietzsche
|


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.