Re: [flexcoders] DataGrid not releasing memory on removeAll()

2009-06-07 Thread Guillaume Aveline
Be sure you remove all references to your data removed..


For instance : is there eventlistener on them you didnt remove?


Or did you set a variable wi line as reference?


Regards


Joky


 


Pedro Sena sena.pe...@gmail.com Ecrivait:
 








The memory is not necessarily released just after you remove the items from
datagrid.

Removing them, you make them eligible by the garbage collector, but this
does not necessarily means that it will be collected.

HTH,

PS

 


On Sat, Jun 6, 2009 at 3:02 PM, Dharmendra Chauhan a
href=mailto:chauhan_i...@yahoo.com;chauhan_i...@yahoo.com/a wrote:
blockquote style=1px:  class=gmail_quote





Hi All,
My DataGrid based application running into a Memory issue.The issue is
dataGrid does not release the memory even after emptying it.
Initially I thought Its my code which is causing the issue, but later I
crated a sample application with just a dataGrid and a ArraCollection (no
eventListener) and found the same issue.

Memory should come down at least some MB when I remove all item from data
provider.

Memory usage with 10k row - 220 MB

Memory usage after removing all item - STILL 220 MB

Is this the standard behavior of datGird or do i need to apply some
workaround to get rid of this ?

Regards,
Dharmendra

 


 



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer 
* Sun Certified Web Component Developer
*/
 






--
Guillaume Aveline
Ingénieur Développement
Pikko.fr




Re: [flexcoders] DataGrid not releasing memory on removeAll()

2009-06-06 Thread Pedro Sena
The memory is not necessarily released just after you remove the items from
datagrid.

Removing them, you make them eligible by the garbage collector, but this
does not necessarily means that it will be collected.

HTH,

PS

On Sat, Jun 6, 2009 at 3:02 PM, Dharmendra Chauhan
chauhan_i...@yahoo.comwrote:



 Hi All,
 My DataGrid based application running into a Memory issue.The issue is
 dataGrid does not release the memory even after emptying it.
 Initially I thought Its my code which is causing the issue, but later I
 crated a sample application with just a dataGrid and a ArraCollection (no
 eventListener) and found the same issue.

 Memory should come down at least some MB when I remove all item from data
 provider.

 Memory usage with 10k row - 220 MB

 Memory usage after removing all item - STILL 220 MB

 Is this the standard behavior of datGird or do i need to apply some
 workaround to get rid of this ?

 Regards,
 Dharmendra

  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/