Skip to main content
Douglas McCarroll
Inspiring
May 7, 2013
Answered

AIR iOS app - how much memory consumption is too much?

  • May 7, 2013
  • 1 reply
  • 1049 views

Hi All,

I have a Flex-based AIR app that runs fine on Android.

On iOS (iPhone 4) it freezes after it's been running for a while, and I suspect that the problem is that the app is consuming too much memory.

I'm looking at System.totalMemoryNumber, and it is reporting that the app is using between 17 and 23 MB right before it freezes.

Is this a lot for an iOS app?

Is there a better way for me to examine/research/diagnose this? I've done a lot of searching and it doesn't appear that AIR apps get any warning from iOS that memory is getting low...

Thanks in advance! 

Douglas

This topic has been closed for replies.
Correct answer Douglas McCarroll

Hi All,

I'm answering at least part of my own question...

I created a test app that added 10K characters to a string on each enterFrame, then ran it until it crashed. It seems to consistently get up to around 175 MB (as reported by System.totalMemoryNumber) before it crashes.

This happened both with and without multiple other apps running in the background.

As mentioned above, this is on an iPhone 4.

So it appears that my current problem isn't caused by excessive memory consumption.

Douglas

1 reply

Douglas McCarroll
Douglas McCarrollAuthorCorrect answer
Inspiring
May 8, 2013

Hi All,

I'm answering at least part of my own question...

I created a test app that added 10K characters to a string on each enterFrame, then ran it until it crashed. It seems to consistently get up to around 175 MB (as reported by System.totalMemoryNumber) before it crashes.

This happened both with and without multiple other apps running in the background.

As mentioned above, this is on an iPhone 4.

So it appears that my current problem isn't caused by excessive memory consumption.

Douglas

chris.campbell
Legend
May 8, 2013

Hi Douglas,

Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code or an application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly (ccampbel@adobe.com). 

Once added, please post back with the URL so that others affected can add their comments and votes.  I'll also give the iOS team a heads up.

Thanks,

Chris