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

Memory Leak When Loading Kendo in IFRAME

1 Answer 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
JT
Top achievements
Rank 1
JT asked on 07 Jun 2017, 03:16 PM

Our site uses an iframe to display content and when the user clicks on an item in our nav bar the parent page loads the new url in the iframe. We have noticed the memory has been growing every time the iframe loads a page, even if it is just loading the same page over and over. Much of the increase is garbage collected but some remains which means if the user navigates around for a while the memory usage can get pretty high. I have been struggling with this issue for a couple days now. I have searched and found a few workarounds such as deleting the iframe and creating a new one every time the user navigates but nothing has improved the problem so far. In order to make sure it wasn't something we were doing wrong in our code I created a very simple sample to demonstrate the issue.The sample loads an iframe every time you click a button with a very simple page that includes the js files for the kendo libraries we use. In this example the memory grows slowly but steadily. Obviously with a more complex page it will grow faster. I left some commented code in there with one of the workarounds I tried.

Any help would be greatly appreciated.

Thanks,

Andrew

Deepak Subhedar
Top achievements
Rank 1
commented on 23 Feb 2022, 07:07 AM

HI Andrew,

Please share how the issue was resolved.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 09 Jun 2017, 09:14 AM
Hi,

Thank you for sharing the issue. Would you please share which exactly memory tool are you using and may be share a video of the issue at your end so we could inspect exactly the same issue and be more helpful with a possible solution?

Regards,
Plamen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Deepak Subhedar
Top achievements
Rank 1
commented on 23 Feb 2022, 07:07 AM

Please share how the issue was resolved.
Tags
General Discussions
Asked by
JT
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or