Simple Example (code attached) :
I have a page with two buttons : on that creates a ListGrid with Data and the other that destroys it.
With FF3 (all addons/plugins disabled),
when i create the List, the memory of the browser increases.
when i destroy the List, the memory of the browser stays the same.
(In IE, the memory decreases but not to the level it was before creating the list; and, on creation, the memory increases more than in FF).
In the documentation for Canvas.destroy (),
"
Permanently destroy a Canvas.
This does everything that clear() does, but unlike clear(), the Canvas cannot be draw()'n again, cannot be referenced by it's global ID, and is eligible for garbage collection (assuming that application code is not holding a reference to the Canvas).
"
In my example, the application code is not holding a reference to the Canvas. But the memory of the browser stays the same.
The greater part of the increase in memory is due to the data (i checked by removing the data).
When the ListGrid is destroyed, is the data destroyed or should it be done explicitely ?
I have put a simple example but in my application, the user can open several tabs with each containing such a list so after a certain usage time, FF or IE takes much memory (which, u can imagine, is not very well accepted by the users...)
I've been looking at this issue for several days now and i've not made any progress...
[There are also other type of contents in a tab with the same memory issue but for now, i will be happy to resolve this one...]
Do u think it is only related to the browser Garbage Collector ? Or could it be related to the code ?
More generally, can u recommend a tool or way to chech for memory usage of SmartClient applications and trace these kind of issues ?
Thank you
I have a page with two buttons : on that creates a ListGrid with Data and the other that destroys it.
With FF3 (all addons/plugins disabled),
when i create the List, the memory of the browser increases.
when i destroy the List, the memory of the browser stays the same.
(In IE, the memory decreases but not to the level it was before creating the list; and, on creation, the memory increases more than in FF).
In the documentation for Canvas.destroy (),
"
Permanently destroy a Canvas.
This does everything that clear() does, but unlike clear(), the Canvas cannot be draw()'n again, cannot be referenced by it's global ID, and is eligible for garbage collection (assuming that application code is not holding a reference to the Canvas).
"
In my example, the application code is not holding a reference to the Canvas. But the memory of the browser stays the same.
The greater part of the increase in memory is due to the data (i checked by removing the data).
When the ListGrid is destroyed, is the data destroyed or should it be done explicitely ?
I have put a simple example but in my application, the user can open several tabs with each containing such a list so after a certain usage time, FF or IE takes much memory (which, u can imagine, is not very well accepted by the users...)
I've been looking at this issue for several days now and i've not made any progress...
[There are also other type of contents in a tab with the same memory issue but for now, i will be happy to resolve this one...]
Do u think it is only related to the browser Garbage Collector ? Or could it be related to the code ?
More generally, can u recommend a tool or way to chech for memory usage of SmartClient applications and trace these kind of issues ?
Thank you
Comment