This is a migrated thread and some comments may be shown as answers.

Questions about memory management

5 Answers 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 09 Nov 2010, 11:05 PM
Hi, I have a SL4 application which is basically a data mining engine with search results reported in a grid.  When my app first loads is uses about 100MB, each time I run a search the memory useage jumps by 80-100MB, it does not decrease unless the app sits idle for a long time.  Until now I have put pretty much zero thought into memory management so I am sure I have made some mistakes and hopefully they can be resolved easily.  By the way the results sets I am testing with contain about 2500-5000 items.

1. I know this is hard to gauge without knowing more about my app, but is this type of memory usage unusual?
2. At the very least I would expect for usage to fluctuate rather than just climb.  For example say I start a new search, what do I need to do to make sure everything from the previous search is removed from memory?  I am using an observable collection to store the search results and then bind them to the grid, clearing the collection doesn't seem to have any impact. 

I realize you probably need more info but I am also looking for pretty general guidance and "best practice" tips. 

I am using "RadControls_for_Silverlight_4_2010_2_0714_DEV_hotfix" on a windows 2003 server, C#, IE 8.

5 Answers, 1 is accepted

Sort by
0
Kjell
Top achievements
Rank 1
answered on 09 Nov 2010, 11:08 PM
Just to be clear, I am taking about memory useage on the client side.
0
Kjell
Top achievements
Rank 1
answered on 10 Nov 2010, 12:01 AM
Here is another example though not related to the gridview:  I open a popup, memory jumps by 2-4mb, close it, memory stays the same, open it, memory goes up again.  So I can ratched up the memory useage just by opening and closing the popup over and over. I'm thinking that something needs to happen in the close, all I do is set popup.IsOpen = false, but how do I properly dispose it?
0
Vlad
Telerik team
answered on 15 Nov 2010, 11:09 AM
Hi Kjell,

 My suggestion is to check the application for memory leaks using Windbg. We had such problems however all of them were fixed - some already in the Silverlight it self (GDR2 release), some directly in our own code

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kjell
Top achievements
Rank 1
answered on 15 Nov 2010, 11:01 PM
Thanks I think I'm on my way to resolving this, I'v at least isolated the problem to a couple radcombo boxes in my grid.
0
Kjell
Top achievements
Rank 1
answered on 15 Nov 2010, 11:02 PM
deleted
Tags
GridView
Asked by
Kjell
Top achievements
Rank 1
Answers by
Kjell
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or