Rich,

 

Ok got some information for you:

 

flash.system.System.totalMemory - The amount of memory (in bytes) currently in use by Adobe® Flash® Player.

 

A better way to think about this is allocated memory. When the player needs more memory it acquires it from the OS/Browser in use. The player doesn’t necessarily give the memory back. Within that memory in use are the objects being used. When GC runs, it disposes objects within the allocated memory but doesn’t give memory back to the OS/Browser.

 

The GC is running and collecting objects, but flash.system.System.totalMemory is not the right way to see this happening.

 

Ted Patrick

Flex Evangelist

Adobe Systems Incorporated

 

  


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola
Sent: Wednesday, August 23, 2006 12:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe, Help Memory Leaking !!

 

I am testing locally on a pentium m 1.6 2 gigs ram FP 9.16
I have tried firefox, and ie on winxp

On my sample, if you change the number to like 500 and create 500 buttons and then change it back to 3 buttons, why can I not recover the memory from the 497 buttons that are no longer being used?

This is a huge probolem on my app because it has like 30 Repeaters that are constantly changing dataProviders on user decisions and the memory is out of control, eventually crashing the browser (remember I have 2 gigs of ram).

Rich


On 8/23/06, Ted Patrick <[EMAIL PROTECTED]com> wrote:

Rich,

 

The app takes memory up 7MB then drops back to 5Mb on a GC run. There is no way to force the GC to run.

 

Can you also send me your browser, os, player version. Also are you on a dual-core machine?

 

Ted

 


From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Rich Tretola
Sent: Wednesday, August 23, 2006 5:29 AM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Adobe, Help Memory Leaking !!

 

I have an application that uses many repeaters where the repeater's
dataproviders are constantly updated which redraws the view. All look
fine visually, however the flash player continues to use more and more
memory.

I created a demo version of this at
http://www.everythingflex.com/flex2/MemoryTest/

I have buttons which up the amount of repeater items and then lower
them and also attemp to delete the arraycollection, delete the
dataprovider, etc but the memory never is recaptured.

The source is also provided.

Does anyone know how to get the garbage collection to run when the
repeaters content changes??

Rich




--
Rich Tretola
<mx:EverythingFlex/>
http://www.EverythingFlex.com

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to