HighTechTalks DotNet Forums  

How to examine objects on Gen 2 heap?

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


Discuss How to examine objects on Gen 2 heap? in the Dotnet Framework (CLR) forum.



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

Default How to examine objects on Gen 2 heap? - 04-04-2006 , 09:20 AM






Hi,

ENV: .Net 1.1, VS 2003, Windows Server 2003 SP1

We are seeing some issues with the Gen 2 heap unexpectledly increasing over
a lengthy period in an ASP.Net application. To troubleshoot this we've been
using the 1.1 CLR profiler, this shows allocations, but I am unable to find
out which objects are being retained in Gen 2. How can I do this?

Many thanks,
Stuart



Reply With Quote
  #2  
Old   
Jim Cheshire
 
Posts: n/a

Default Re: How to examine objects on Gen 2 heap? - 04-04-2006 , 02:02 PM






On Tue, 04 Apr 2006 17:32:49 +0200, Mattias Sjögren
<mattias.dont.want.spam (AT) mvps (DOT) org> wrote:

Quote:
How can I do this?

I think you can do it with the Sos.dll debugger extensions.


Yes, you can. You can run the following command in SOS to get that
info:

!dumpheap -gen 2 -stat

Jim


Reply With Quote
  #3  
Old   
Stu Carter
 
Posts: n/a

Default Re: How to examine objects on Gen 2 heap? - 04-05-2006 , 07:57 AM



Cheers all!

"Jim Cheshire" <contactme (AT) mysite (DOT) com> wrote

Quote:
On Tue, 04 Apr 2006 17:32:49 +0200, Mattias Sjögren
mattias.dont.want.spam (AT) mvps (DOT) org> wrote:


How can I do this?

I think you can do it with the Sos.dll debugger extensions.



Yes, you can. You can run the following command in SOS to get that
info:

!dumpheap -gen 2 -stat

Jim



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.