Skip navigation
Tony-Downey
Currently Being Moderated

How do I prevent AIR privateMemory from ballooning in Linux?

May 10, 2012 10:53 AM

Tags: #air #crash #leak #memory_leak #linux #2.7 #privatememory #air_2.7 #cron

Okay, so we're making an AIR 2.7 App that runs on Linux. It swaps out child swf files all the time, the same five files, all loaded into the app once and playing in sequence.

 

Running on a Mac, the privateMemory continually reads around 400MB, give or take. Linux... Linux is weird.

 

Linux will start at about 200MB, and balloon. If we're lucky, Linux will decide to reclaim some memory, and we'll go back down to 200MB. If we're not lucky, we'll escalate past 2100MB at which point the app will crash (even though the box has 4GB of RAM).

 

I understand that System.privateMemory and System.gc() (both called regularly) is highly dependant on the OS, that's fine. But all methods of freeing up memory on Linux have failed, including cron jobs running methods outlined here: http://www.linuxarticles.org/2010/10/release-memory-in-linux-unused-or -cached/

 

To be clear: there is no memory leak. We cannot reproduce the problems we are experiencing in Linux with any other setup. And Linux can decide to run for days, releasing memory, reseting to around 200MB.

 

Is there any way to...

  • Allow the AIR application to use the full amount of RAM, instead of crashing at 2GB
  • From AIR, explicity release memory back to the Linux OS (System.gc() doesn't work)
  • Via a cron command, explicity take memory from the AIR app?
 
Replies
  • Chris Campbell
    8,533 posts
    May 4, 2010
    Currently Being Moderated
    May 15, 2012 1:56 PM   in reply to Tony-Downey

    Not sure what could be going on here.  I'll forward this to the team that used to work on Linux to see if they have any ideas.  You might also want to create a new bug on this at bugbase.adobe.com.  If possible, please attach your application so we can reproduce the problem.  If you'd like to keep this private, please feel free to email it to me directly at ccampbel@adobe.com.

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Chris Campbell
    8,533 posts
    May 4, 2010
    Currently Being Moderated
    May 18, 2012 4:02 PM   in reply to Tony-Downey

    Thanks for logging a bug.  I did forward this to the old Linux team but I haven't heard anything back yet.

     

    Chris

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points