GUYINTHECHAIR
04-08-2008, 05:16 PM
I'm profiling our application in Flex 3, looking for memory hogs and leaks that might be causing the memory problems in our application. The Flex profiler says the application doesn't go above 25 megs of RAM, but the totalMemory (in flash.system.System.totalMemory) reports memory usage of anywhere from 100-300 megs depending on how heavily you are using the app.
I have tested this on Windows (IE, Firefox, Safari, Opera) and Mac (Safari, Firefox), and they all give the same results. When looking in the task manager in Windows and the activity monitor in Mac, I confirm that the browsers are using hundreds of megs of RAM, in line with what the flash player is reporting.
So what gives? Why does the Flex 3 profiler tell me the app is only using 25 megs when it's clearly using more? If it's the overhead from the Flex framework, and the stuff I've written is OK, is there anything I can do?
I have tested this on Windows (IE, Firefox, Safari, Opera) and Mac (Safari, Firefox), and they all give the same results. When looking in the task manager in Windows and the activity monitor in Mac, I confirm that the browsers are using hundreds of megs of RAM, in line with what the flash player is reporting.
So what gives? Why does the Flex 3 profiler tell me the app is only using 25 megs when it's clearly using more? If it's the overhead from the Flex framework, and the stuff I've written is OK, is there anything I can do?