How do I prevent AIR privateMemory from ballooning in Linux?

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?

We tested this on a less powerful Linux box with only 2GB of RAM (compared to 4GB of RAM in our good Linux boxes). It works fine.
In the stupidest fix I've ever seen, we are now theorizing that if we either physically remove or disable all but 2 GB of RAM, Linux will be forced to swap memory more often, thereby avoiding the issue that AIR 2.7 seems to have, where it crashes itself if it begins using more than 2GB of memory.
Is this behaviour expected in AIR or a bug? Is it a failsafe or an unexpected behavior?
Logging a bug: https://bugbase.adobe.com/index.cfm?event=bug&id=3192706 (Upvote if you've encountered this as well)

Similar Messages

  • How can i prevent my pro from over heating?

    How can i prevent my pro from over heating?

    Don't use the computer in your lap, or on a blanket or pillow. The case bottom is part of the heat dissipation system so it needs air underneath. If you must use the computer in your lap, get a lapboard. There are cheap, even more so if you make one yourself.
    If the computer is a older MBP with silver keys, avoid "clamshell" mode when using an external monitor. Those models let a lot of heat escape through the keyboard. The black-key Unibody versions don't seem to rely so much on the keyboard as a vent.
    Like eww said, what feels hot to you may not threaten the computer's well-being. Get a temperature monitoring utility. I like this one:
    http://bresink.com/osx/TemperatureMonitor.html
    It runs politely in the background and puts the readout in the menubar:
    so you don't have to invoke Dashboard like some other temp monitors require. As Dashboard loads all its widgets as soon as it's invoked, the extra widget processes can run up the temps and you don't get a true average use temp.
    If you use Dashboard a lot, those processes stay active after the first launch and can eat processor cycles as well as increase temps. I use DashQuit, a widget that shuts down Dashboard when I'm done without requiring a computer restart. It's here:
    http://www.apple.com/downloads/dashboard/status/dashquit_berenguierduncan.html

  • How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    @How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    This sounds like you are using Photoshop Elements, and the Photoshop Elements forum would be best at answering that.
    Photoshop Elements
    Gene

  • How do I prevent iTunes 11 from syncing apps with my devices?

    I want to be able to sync music to my iPad and iPod but I do not want to store their apps on my computer. Since iCloud remembers which apps I own, this is (in my mind) unnecessary. How do I prevent iTunes 11 from syncing my apps? This did not use to be a problem because in iTuens 10 it was an option. Now it seems that it isn't.

    Cate Kurtis wrote:
    Well, in fact the application stopped opening automatically for no reason that is clear to me. For about 5 days after I updated the software it opened automatically when I plugged in or unplugged my phone. Then it suddenly stopped. All I did between the last automatic open and the time that it ceased was, in the options window, uncheck the "manually manage music and videos" option and then check it again without clicking "apply" and also checking "sync only checked songs and videos" and unchecking again without clicking apply.
    I can't really recall now, but I thought that I played around with those settings and no matter what, I never saw the Option for Automatically Sync when Connected in iTunes.
    I can think of no reason why this would halt the automatic opening but it has definitely stopped. Yet I still don't have the option listed in the options window to "prevent itunes from opening automatically when device is connected."
    This is all very strange to me but I can think of nothing to pursue it further.
    I can't think of any reason why it would trigger that behavior and of the other 170+ views that this discussion has received, I suppose that nobody else had anything to offer either.
    I can't think of anything else to pursue it further either and as long as it is working the way that you want it to work now, I can't think of any need to pursue it further.

  • How can I prevent deleted mail from ending up in "All Mail"     and "Archives"?  To my horror, I've emptied these boxes and lost all my mail from all my boxes  (and why do I need to enter this question three times?"

    How can I prevent deleted mail from ending up in "All Mail" and "Archives"? 
    To my horror, I emptied these boxes and lost all my mail from all my boxes .
    All mail also disappeared from my iPad, I suppose because they are "synched"
    (Also, no offense, but why do I need to enter this question multiple times?)
    Thanks for any thoughts.

    I'm having a similar but slightly different problem. My company just migrated to Gmail, and it's saving mail drafts every 30 seconds into my Trash folder.
    I unchecked the "Show in IMAP" preference in the Gmail settings, but my Drafts folder completely disappeared. I went back and checked it and the folder reappeared (with my drafts still in there).
    I like the idea if starting an email on my laptop and having the option of finishing it on my iPhone or iPad, so only saving Drafts locally would not be ideal.

  • How do I prevent my iphone from downloading my entire email address book from my computer when I do my "updates" .  My contact list is transfered to my iphone and then I have the laborous task of manuely deleting the unwanted unnecessary "contacts" now.

    How do I prevent my iphone from downloading my entire computer email address book when I "update" my phone by plugging it into my computer and do the update procedure.  I am having my phone "contacts" swamped with the entire contacts in my email on my computer and then I am having to manually delete them each time I update my phone...? thanks for any assistance on this...mm

    Thank you for your rapid...excellent answer!!  I feel abit foolish...but I am in a learning process and you are a wise teacher! thanks...mm

  • How do I prevent a website from opening another window

    A couple of websites I occasionally visit open up a second window to a spam website. I have put an entry in my Hosts file to prevent Firefox from connecting to the spam websites, so the second window is empty. However, it's still a little annoying.
    I have pop-up blocking turned on. Is there anyway to completely block the opening of the second window?
    If not, why not?

    Thank you for taking the time to reply. I really do appreciate it.
    Unfortunately, the link you posted tells me exactly nothing. My question is "How do I prevent a website from opening unwanted windows". These are full Firefox windows, just like you would get if you right clicked on a link and selected "open in a new window".
    There are only two possible answers:
    (A) To block unwanted windows, do this ________ (insert answer)
    or
    (B) It's not possible.
    If the answer is (B) then the follow-up question is -- Why Not?

  • How can we prevent a user from entering a value in Parameter Field?

    how can we prevent a user from entering a value in Parameter Field and Select-options Field?

    make it invisible, make it inactive, make it display only.
    if the field is not there or not to be seen the user WILL have problems inputting data.
    BUT once the field is there you can NOT prevent that the user fills it with data.
    all you can do is on PAI check if the data the user inputted was good or bad, and clear his inputs, but you can NOT prevent him inputting something.

  • How can I prevent my iPhone4 from starting after connecting to Power?

    How can I prevent my iPhone4 from starting (booting) after connecting to Power?

    You can't so far as I know. You can however, shut it down after it's connected to power and it should not power back on as long as it's connected. If the power is disconnected/reconnected, it will power back on.
    If you just want to avoid calls, etc. while it's plugged in, you could just put it in airplane mode.

  • How do you prevent the computer from shutting down when in sleep mode?

    How do you prevent the computer from shutting down when in sleep mode and plugged in?

    Thanks tjk.
    Those are great suggestions and got me looking in places I had not considered before. Unfortunately, the problem remains. The System Preferences did not have the shut down option activated and there are no parental controls active on the computer.
    Any other suggestions are welcome.
    Brian

  • How can I prevent all workbooks from opening automatically when Excel starts?

    I am using Office 2011 (14.2.1) service pack 2 on Mac os X 10.7.3. Whenever I open Excel, all my workbooks open.  How can I prevent all workbooks from opening automatically when Excel starts?
    Please Help, Thanks

    You can look at: Stop Autoplay: https://addons.mozilla.org/firefox/addon/1765

  • I have checked around the internet, but still can't find any answers. How can I prevent incoming mail from interrupting the music I am listening to on my iPhone? That 1-second muting function drives me insane, especially when a lot of mail is coming in.

    I have checked around the internet, but still can't find any answers. How can I prevent incoming mail from interrupting the music I am listening to on my iPhone? That 1-second muting function drives me insane, especially when a lot of mail is coming in.

    If you want to hear your music on iPhone without interruption, switch Settings > Airplane Mode: ON.

  • We have 2 ipods and 1 ipad with different apps all synced to one computer.  How do I prevent these apps from automatically being synced to all three devices each time I do a backup/sync?

    We have 2 ipods and 1 ipad with different apps all synced to one computer.  How do I prevent these apps from automatically being synced to all three devices each time I do a backup/sync?

    Uncheck the option to automatically sync new apps to the device.
    Other than that, syncing is by device.
    Connect one device, tell iTunes what to sync, then sync.
    Connect second device, repeat.
    Connect third device, repeat.

  • I keep getting the message "mail cannot connect to the server-." when it clearly can and does. How do I prevent these messages from appearing?

    See the title
    I keep getting the message "mail cannot connect to the server…." when it clearly can and does. How do I prevent these messages from appearing?
    help

    On your iPad or a Mac?
    You posted in the iMac community but your profile indicates an iPad 2.

  • On a MacBook, in Messages, how do you prevent your IMs from being sent as texts?

    In Messages, how do you prevent your messages from being sent as texts?

    Shootist007 wrote:
    Not sure how and why this type of thing started but it seems every program you install these days likes to start part of itself when the system starts.
    That started with Lion and progresses with the hillside feline. Ever since that pair got a personality disorder and can't make up their mind whether they're computers or phones, the world went to the dogs.  "Always on" paradigm my azz!

Maybe you are looking for