I have a rather simple Silverlight application, lately we've been having reports from users of the application crashing after several hours of use (4+). We started digging into the application and noticed that the un-managed portion of memory being used by the application starts very high and continues to grow unchecked. The other heaps seem to be managed just fine. I've done a lot of research and even went as far removing all images from my application and the un-managed memory continues to grow.
I'm just confused at this point as to what exactly is consuming all the un-managed memory in my application and what I can do about it. Here is a snapshot of my application after initial load, as you can see it's already using over 100MB of un-managed memory space. I'm just looking for any guidance here on what objects could be in un-managed memory and what to do to reduce the amount of un-managed memory my application is using. Thanks!
I've taken another snapshot or two using the .NET Memory Profiler and it appears that the Kernel-HeapMemory is the largest chunk. Not sure if this helps much but I thought I would post it anyway.
Have you tried the CLR Profiler for Silverlight? I've used it with some success in the past to troubleshoot memory issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With