Simon Cope schrieb:
Hello Sebastian,

Hi Simon,


This may not be relevent to the IE memory problems in qooxdoo.

I did some research yesterday and found the following undocument global
method in IE:

CollectGarbage();

Apparently this forces the IE GC to run.


Looks interesting. I will try to call this method after each "dispose" call. Can you send the urls of the pages where you have found this?

Unfortunately this will NOT solve all the memory problems in IE.  What I
read (which I'd never heard before) indicates that attaching JS function
closures in IE onto DOM nodes (eg, event handlers such as onload etc) will
leak both objects if you have a circular reference because DOM nodes have a
different GC than JS objects and they don't deal with circular references
caused by closures.  You need to remove the function closure before
unreferencing the DOM node.  In most cases Qooxdoo seems to do this although
some of the examples leak under IE (eg, Image1 works fine, GalleryList1
leaks ~1.5MB per refresh) so there may be some cases where this happens.

QxGalleryList and QxGallery would propably need a check to fix some more issues. They were just ported to renderer without major rework some parts. I will take a look at them.


The qooxdoo app I'm working on runs fine under FF, but under IE one
particular page leaks 30MB per reload and dozens of MB using the page and
quickly slows to a crawl, so I'd better spend some time to modify my code
and see if I can find any leaks I can attibute to specific qooxdoo objects.

Is this also true for renderer? I can detect a +2MB leak per reload in renderer if I use the combined qooxdoo.js files. In the source version there is no detectable leak in common examples here.

Please don't use your qooxdoo own apps to detect memory leaks in qooxdoo. qooxdoo's disposer does not help to dispose your application code. If you create circular references or DOM connections there, you must dispose them yourself.

Sebastian



regards

---
Simon Cope
Chief Software Architect
ER Mapper
Phone: +61 8 9388 2900
Fax: +61 8 9388 2901
Email: [EMAIL PROTECTED]

Mosaic, Balance and Compress your images with new ER Mapper MBC
Visit:  www.ermapper.com for details http://www.earthetc.com



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to