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

[Solved] Memory Leak Problem / Memory never released?

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian Garson
Top achievements
Rank 2
Brian Garson asked on 01 Feb 2010, 03:33 PM
Hello Telerik,

our company has recently revamped a new product for our customers using most of the Telerik Rad Controls.  We have a lot of instances of the Grid, ToolBars, Charts, Editors and Panels.  We're also using the RadAjaxManagers.  The problem we're facing now is that when a user visits a page, several MB of memory is allocated on the web server (or locally if we're testing on our own dev machines) and this memory is never released.   We're to the point where some pages are loading 10-20 mb into memory, so right now we're limited to 10 users per web server and it will eventually run out of memory. 

We are going through this article http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx to optimize as best we can, but something isn't right, is there any reason that the aspnet_wp.exe will keep Telerik resources in memory for ever?

It appears as though the MB's that are loaded into memory are never released.

Anyone else experience this and have any ideas?

This other post in the forums http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/memory-problems-using-telerik-controls.aspx describes exactly the same scenario we're facing.

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 04 Feb 2010, 09:20 AM
Hello Brian,

I'm pasting the reply to your ticket for reference:

Memory leaks are not at all common with RadControls and they almost always stem from inappropriate Session / Application state usage. In general references to controls shouldn't be stored in any of them as they prevent GC from working.

Please, see this blog post for more details:

http://blogs.telerik.com/atanaskorchev/posts/08-09-19/don_t_store_asp_net_controls_in_session_application_or_cache.aspx

I hope this helps.

Regards,
Tsvetomir Tsonev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
General Discussions
Asked by
Brian Garson
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Share this question
or