This question is locked. New answers and comments are not allowed.
Hi,
We've been using Telerik controls in an application and noticed a large memory footprint and potential memory leak in what we thought would be a fairly simple view. We found the footprint of the application growing by about 10MB per added view which consists of several MS Textboxes, 3 RadButtons, 2 RadDatePickers and 2 RadComboBoxes. The fact that we expect to be able to have quite a few of these views onscreen, combined with the memory leak is a serious issue. After investigating our own mistakes, theming and memory issues we made very little imapact until we removed all controls from the view.
I wrote a simple test application with a UserControl with the items our view contains, a collection of these and some add/remove (remove followed by some forced GC) buttons in a blank, unthemed Silverlight project. The application's managed memory increases by only 0.44MB per view however the unmanaged memory jumps by 4.65MB per view, which seems a lot for a handful of controls.
We also find that this memory is not cleaned up correctly. In adding and removing 10 controls we find an extra 26.4MB of unmanaged memory floating about and plenty of live instances within the Telerik namespace in our memory profiler, including 19 to the Office_BlackTheme. As we're heavily theming these controls this could be an issue.
All round there seems to be an awful lot of memory use around Telerik controls and they don't tidy up too well. There are no instances of the actual controls I used but there's hundreds of objects from the Telerik namespace left. Using Virtualizing panels isn't really an option as we expect our application to be used across multiple monitors with many of these views visible at any one time. Is there anything we can do to improve performance?
We've been using Telerik controls in an application and noticed a large memory footprint and potential memory leak in what we thought would be a fairly simple view. We found the footprint of the application growing by about 10MB per added view which consists of several MS Textboxes, 3 RadButtons, 2 RadDatePickers and 2 RadComboBoxes. The fact that we expect to be able to have quite a few of these views onscreen, combined with the memory leak is a serious issue. After investigating our own mistakes, theming and memory issues we made very little imapact until we removed all controls from the view.
I wrote a simple test application with a UserControl with the items our view contains, a collection of these and some add/remove (remove followed by some forced GC) buttons in a blank, unthemed Silverlight project. The application's managed memory increases by only 0.44MB per view however the unmanaged memory jumps by 4.65MB per view, which seems a lot for a handful of controls.
We also find that this memory is not cleaned up correctly. In adding and removing 10 controls we find an extra 26.4MB of unmanaged memory floating about and plenty of live instances within the Telerik namespace in our memory profiler, including 19 to the Office_BlackTheme. As we're heavily theming these controls this could be an issue.
All round there seems to be an awful lot of memory use around Telerik controls and they don't tidy up too well. There are no instances of the actual controls I used but there's hundreds of objects from the Telerik namespace left. Using Virtualizing panels isn't really an option as we expect our application to be used across multiple monitors with many of these views visible at any one time. Is there anything we can do to improve performance?