Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to record the stack
Message
From
17/04/2007 12:35:10
 
 
To
17/04/2007 08:36:31
General information
Forum:
ASP.NET
Category:
Testing and debugging
Miscellaneous
Thread ID:
01216665
Message ID:
01216830
Views:
18
Hi,
>I have learned some more information on my memory problems. My program appears to work fine for hours on end with memory being allocated, released and collected as expected. But then at some point during operation (when no one is around so the system is not being used) memory stops being released and collected.
>
>I wrote a little routine that used the GC.GetTotalMemory method to record the memory in use every minute. I find spikes and valleys (as expected) most of the time but then after several hours the chart starts looking like stairsteps as memory stays exactly the same for almost an hour then creeps up and stays for an hour then creeps up again.
>
>It occurs to me that if the memory in use during one minute is the same as the memory in use during the last minute I could look at the stack or something to figure out what's in memory and that might give me a clue as to what's not being collected. But I don't know where to begin to do this. I found that I could dim an object as a stack but is that what I want? Anyone got a hint as to how i could do this?

Maybe System.Diagnostics.StackTrace ?

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform