wait little mix up... it does go down by itself but only if the application seems to increase the memory usage fast or something like that but even then that doesn't always work

On 24/08/06, sinatosk <[EMAIL PROTECTED]> wrote:
just want to say your not the only one... 2 other people have had the same sort of problem here and I have too... it's annoying to be honest. it does go down eventually but not by it self... I've left it running overnight ( one of my applications ) doesn't go down much


On 24/08/06, Rich Tretola < [EMAIL PROTECTED]> wrote:

Just try loading a large amount of buttons a few times and watch the memory go up and up.  When I went back to just a few buttons, the memory actually went up a little rather than dropping back down.

Rich

On 8/23/06, Rich Tretola < [EMAIL PROTECTED]> wrote:
The 300 megs is the application that I am working on, not the sample app.  The actual project app has about 20 or so repeaters, the sample was just a single version to demonstrate that the garbage collector is not working.

I have been able to get the sample app over 200 megs of ram usage by runnig 5000 buttons a few times, the app memory in the txt box shows about 185 megs  See the attached screen shots.  The 5000 was created 1st and then I updated the array to 5 buttons and waited and then took the 2nd screen shot.  The browser never releases the memory and neither does the flash player.




Rich



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

Rich,

 

No. I have yet to run this app and see 300MB of RAM consumed ever.  Mine gets a ceiling of like 12MB and never goes higher.

 

When the GC runs it destroys objects within the totalMemory within the player. When the player needs more memory for new objects, it adds memory if the gc cannot dispose of what is needed. It is true to say that on machines with ample resources, the player may accumulate more resources but this is true with all applications.

 

I have to say I think you may be looking at a bug specific to your os/system configuration. Is the behavior browser specific?

 

Just to be sure: 300 megabytes = 314,572,800 bytes

 

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 2:09 PM


To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe, Help Memory Leaking !!

 

I first noticed this issue while looking at the task manager and seeing firefox and IE memory usage going up and up to well over 300 megs of ram.  If I am running the app on a machine with less ram will the browser use less memory?  Is that what you are saying? 

Rich


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

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 f lash.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]> 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola
Sent: Wednesday, August 23, 2006 5:29 AM
To: flexcoders@yahoogroups.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




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




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




--
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