Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to record the stack
Message
De
17/04/2007 12:35:10
 
 
À
17/04/2007 08:36:31
Information générale
Forum:
ASP.NET
Catégorie:
Test et débogage
Divers
Thread ID:
01216665
Message ID:
01216830
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform