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

RadGrid Deadly Memory Consumption

2 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Asif
Top achievements
Rank 1
Asif asked on 06 Jul 2010, 09:14 PM

Hi,
We had OOM(Out Of Memory) exceptions on the server. My friend took a few tests on pages where RadGrid is being used. She tells me that the memory usage increases rapidly on all grid pages.

On her report I did ASP.NET Memory profiling. And in the function calling tree what I saw was surprising. We were doing custom paging and using 100 records to show per page. I tested SQL Query in SQL Profiler and it was perfect. No issues in the database or DAL. What I saw was that the 57MB was the overall memory used by the one single request. Pages without RadGrid are using like 10MBs of data which is way less than the Grid pages. I am attaching the screen shot of calling tree

From that report I can tell that
RadGrid Render method takes 35 MB memory
UNDER Telerik.WebControls.GridClientObjectBuilder.AddPropertiesFromObjectInternal(Object o) takes 31MB
 
Check the file attached and analyze memory consumption.

Thanks


2 Answers, 1 is accepted

Sort by
0
Asif
Top achievements
Rank 1
answered on 07 Jul 2010, 03:14 PM
bump, any luck ... ???
0
Radoslav
Telerik team
answered on 12 Jul 2010, 08:09 AM
Hi Asif,

I could not reproduce the described issue. Could you please send us a simple runnable example (or share your code) demonstrating the problem. In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.
Also on the following link, you could find an online example of the RadGrid with custom paging. The request when user performs paging is 20kb and there is not out of memory exception.

Looking forward for your reply.

Sincerely yours,
Radoslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Asif
Top achievements
Rank 1
Answers by
Asif
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or