Get free/used memory info

I'm writing code for a system that is very limited in it's memory. I've written some code to cache the data and movieclips used, but eventually I'll need to free some memory before I run out (and flash is terminated)
Is there a way to find out
- how much memory flash/my .swf is using in total?
- how much memory is free?
- how much memory an object or movieclip (including it's children) occupy?
I'm looking for something to decide wether or not I should release some memory. it doesn't need to be very precise, just anything I can use as an indicator in actionscript 2.0
I've found that in Flash Lite I can use
Code:
fscommand2("GetTotalPlayerMemory")
fscommand2("GetFreePlayerMemory");
but unfortunately I'm not using Flash Lite and these commands don't seem to exist in flash 7+.
Is there anything I could use?

The application is much like a browser: Pages (with text, images and some interactive elements) are defined on a server. The swf renders these pages and lets you navigate them.
When enough memory is available I can keep previous pages in memory, so revisiting a pages and reusing images does not require them to be reloaded (which can take more than 10 seconds for a complex page).
When memory is low, pages (except the current page) can be removed from the cache and they'll have to be reloaded when the user revisits them.
If I do not remove old pages/images from memory, eventually there will be a moment the swf runs out of memory and is killed. But if I remove pages too soon, revisiting them will be a wait. We've already seen situation where I can hold only 3 pages in memory simultaniously. It depends on the complexity of the page and the availablity of memory. As long as there is enough memory for 1 page, it'll work.
Basically I want to do as much caching as possible. The problem is finding out how much is possible.

Similar Messages

  • How to get the amount of free physical memory?

    How to get the amount of free physical memory?
    (without sudo or root)

    vmstat will give it to you.
    Although the question depends a bit on what you mean by free memory.
    The figure vmstat labels free (in any reasonably recent version of solaris) actually represents memory mostly filled with cached file contents. So it represents memory that can be easily released if needed by something more important.
    Like most unix versions, solaris will use any free memory to cache files thats have been read/written previously just in case they are needed again

  • I have the mac laptop ibook g4,and i wanted to know what music downloader can i download to get free music besides having to use itunes?

    I have the ibook g4 laptop! what music downloader can i download to get free music?,so i want have to use itunes.

    Given the OS X versions last supported by the old PowerPC based G4/G5 computers, there are a few players that work with music sites for OS X 10.4.11 or OS X 10.5.8. I have not researched these, and many of the web sites that promise a free player or access to free music offer 'adware' laden questionable products, no matter what OS X version a Mac could run.
    For just music, the Radio player in the iTunes application can give you several choices of music types, to include fairly recent songs. This will use bandwidth and there likely is no native way in the computer to capture the audio; and without a legal source, a question arises concerning illegal filesharing and the like, which is not a topic friendly to these discussions.
    However there some great music channels in the Radio portion of iTunes player that do not require the store to listen to them; these are streamed from servers and you may be able to locate other streaminsg sources and add them to the iTunes Radio player.
    There were some shareware or limited use utilities that could record any sounds in your Mac, including beeps, clicks and keyboard sounds. And any noises from web pages, etc. And save them. But some time has passed since I had anything like that. It was like a built-in recorder, and with a Mac microphone, even more so.
    However anything software involves the limitations of your computer hardware's upper limit in OS X version. And be wary of sites with several download links that say free or download, since softonic genieo and others can install adware and other hard to remove ailment prone background software in your mac along with their promised product; and their 'uninstaller' also will add hard to remove background stuff in your mac. So does mackeeper and cleanmypc kinds of stuff. Avoid installing these along with hoped-for great promises.
    Sorry to not be of much help, however anything that may
    contribute to illegal file sharing is a void issue here...
    Good luck & happy computing!

  • How could I get the used rates of cpu and main memory

    I want to get the used rates of the cpus and the memeoy?How could I do?
    I write the code on linux and got them by read the file /proc/meminfo and /proc/loadavg.
    Is there the similar file under solaris?
    Further more , under the linux os, I could make a system sound with function ioctl,which function could make a warning sound in Solaris?
    Thanks a lot!

    For memory usage call vmstat. Can't help with CPU usage.

  • Using OSX 10.5 with DynDNS...how do I get the silly host info from ISP out

    Hi There,
    As I said, running an OSX server from home. Connects using DHCP so it pulls all the host info from the ISP. I'm using DynDNS for a domain I have registered. I can access the server from internet using my domain but how do I get all the host info from the ISP out of the system and just use the domain I have setup.
    Thanks in Advance,
    Jeremiah

    The following is from this Apple document, iCloud: Photo Stream FAQ, and will help you understand how Photo Stream works:
    My Photo Stream
    When you take photos on an iOS device, or import photos from your digital camera to your computer, My Photo Stream can automatically upload your new photos to iCloud and push them to all of your other devices. 
    When do photos upload to My Photo Stream?
    How long are My Photo Stream photos stored in iCloud?
    The photos you upload to My Photo Stream are stored in iCloud for 30 days to give your devices plenty of time to connect and download them.
    How many photos are stored in My Photo Stream on my devices and computers?
    iCloud pushes all your photos to the My Photo Stream album on your devices and computers, and manages them efficiently, so you don’t run out of storage space.
    Your iOS devices keep a rolling collection of your last 1000 photos in the My Photo Stream album. From there, you can browse your recent photos or move the ones you like to your Camera Roll or another album to keep them on your device forever.
    Since your Mac and PC have more storage than your iOS devices, you can choose to have all of your My Photo Stream photos automatically downloaded. In iPhoto or Aperture preferences on your Mac, be sure to select Photo Stream > My Photo Stream > Automatic Import. All of your photo stream photos will be imported into your Events, Projects, Photos, Faces, and Places folders in iPhoto or Aperture. On your PC with Photo Stream enabled in the Control Panel, all of your photos will be imported into C:\Users\<user name>\Pictures\Photo Stream\My Photo Stream.
    OT

  • Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

  • How do I get into iPhoto to free up memory when I can't get in due to no memory?

    How do I get into iPhoto to free up memory when I can get in due to no memory?

    Are you being prevented booting into your MBP due to the HDD being full?  If so try a a safe boot:
    https://support.apple.com/en-us/HT201262
    If no success, try Target Disk Mode:
    https://support.apple.com/kb/PH10725?locale=en_US
    Or take out the HDD and install it in an enclosure.  Connect it to another Mac and take some data off of it so that you can boot to it when you re-install it.
    Ciao.

  • How do I get my pics off iPad to free up memory

    I have an IPad with (16 gig) with wifi. I have a lot of pics on my iPad and need to get them off to free up memory to upgrade to the ios7.
    I have a windows pc. I down loaded ITunes app on the pc, but can not figure how to get them onto the pc.
    Would appreciate any help.

    I upload photos and music to Dropbox (tap to enlarge image)

  • Can't get the current bitrate info use SMPTE-TT Plugin

    Using OSMF2.0 to stream a smil title.
    Add the MediaPlayerCapabilityChangeEvent.IS_DYNAMIC_STREAM_CHANGE event listener, after the event dispatch then add the DynamicStreamEvent.SWITCHING_CHANGE event listener.
    The bitrate info can be report, normal. But after I add the SMPTE-TT plugin and load it like this:
    var pluginResource:MediaResourceBase = new PluginInfoResource(new SMPTETTPluginInfo);mediaFactory.loadPlugin(pluginResource);
    The title can be stream correct and the quality of the video can be set by the bandwidth, but only the DynamicStreamEvent.SWITCHING_CHANGE event can not be dispatch, so I can't get the current bitrate info.
    I debug it in the OSMF source code and find the issue in the org.osmf.elements.compositeClasses.ParallelDynamicStreamTrait class line 323
    FYI:
    onSwitchingChange function that the numChildrenSwitching property always 0, so it can not call the setSwitching function and can not dispatch DynamicStreamEvent.SWITCHING_CHANGE event.
    So, I add some changes from line 333 to line 336 and it has be fix:
    Environment:Flex SDK 4.6 + flash player 11.8.
    I don't know it is a bug in the OSMF framework and I want to get more info about it.
    Thanks.

    can you turn off the message pane (F8) between restarts? I am guessing it will turn on again as well.

  • Hi i am using OS 10.8.5 i hv a problem moving items to trash when i delete any thing it deletes from specific folder but dosnt appear in trash n my hard drive space is not getting free kindly help me

    hi i am using OS 10.8.5 i have a problem moving items to trash when i move a specific thing to trash it deletes from that folder but does not appear in trash and my hard drive space is not getting free i am a new user to mac kindly help  me out

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • How. Do I get free apps on my iPad with out putting in  credit card info?

    Iam trying to get free apps without putting in a credit card how do I that please help!

    You can set up an account with the payment type of None.  If the current Apple ID you want to use was created more than 48 hours ago, you won't be able to change the payment type to None and will need to either create a new Apple ID account (using an previously unused email address) or provide a valid payment method to the account such as a credit/debit card or iTunes gift card.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    B-rock

  • I just watched my first movie using Apple TV and Netflix. Apple TV works great except for then I try to switch back over to tv mode I get the cable channel info on the bottom of the screen but no sound or picture. What did I I do wrong?

    I just watched my first movie using Apple TV and Netflix. Apple TV works great except for then I try to switch back over to tv mode I get the cable channel info on the bottom of the screen but no sound or picture. What did I I do wrong?

    It was easy to set up, easy to use, got done watching the movie.  Transferred from HDMI to TV and as my question above notes.  I am on TV, my cable information (show/channel/etc) show OM the banner on the bottom of the screen, I can view the channell guide, but, my screen is white, no picture no sound?  Other than that I got nothin

  • I purchased a used iphone4 and the phone displays the previous owners apple id and prompts me for the previous owners password. how do i get rid of his info....and install my own apple id number?

    I purchased a used iphone4 and the phone displays the previous owners apple id and prompts me for the previous owners password. how do i get rid of his info....and install my own apple id number?

    Login to the app store with YOUR ID. You can't use the app store without an Apple ID. If there are apps on the phone that were purchased with the original owners ID, you do NOT own them. The owner had no legal right to give them to you and they are permanently tied to the ID that was used to purchase them.
    ...i was also allowed to purchase an apple network id for this phone...
    I have absolutely NO IDEA what you mean by that. You can not "purchase an apple network id".

  • If I get my iphone unlocked can I buy a sim card in Spain and then use it there and get free 3g access

    If I get my iphone unlocked can I buy a sim card in Spain and then use it there and get free 3g access

    No. You can't activate any iPhone without a sim card installed. The sim card itself need not be activated, but it must be valid & present. Since you updated the software, the phone requires re-activation, thus you need a sim card. You can borrow one from someone, but bottom line, you need a sim card.

  • Getting to know used memory without garbage collectable objects

    Hi all,
    I would like to know what is the currently used memory without garbage, so only the objects that are still referenced.
    Is there a way to do that? Preferably using JConsole?
    Thanks,
    Kristof

    That is indeed a way but the problem is that you are never sure that all garbage will get collected... (JConsole indeed has a Force GC button)
    I suspect that the JVM only knows the amount of garbage when it performs a GC. And as this is an expensive operation is would not be effective from a performance point of view to constantly keep track of the amount of garbage in the heap. That is probably also the reason why there is no profiler that supports this.
    It makes it difficult to get to know the actual memory gain from one implementation versus another. The most reliable way to go I think is by running the application several times, lowering the max heap each time till it fails with OutOfMemoryException.

Maybe you are looking for

  • Mpeg video plays in iTunes, but no audio on iPod

    I have a 10 minute video that plays fine in iTunes 7.0.1.8 on Widows XP. I did the "Convert Selection for iPod", which then allowed me to download the video. However, when I play the video on the iPod, there is no sound. The article "iPod plays video

  • EH&S DATA MIGRATION

    Hi All,     Is there anybody who knows if it is possible to migrate Questionnaire with LSMW? What's the procedure? I want to be clearer. Actually I have, in another system, 600 Questionnaire with the same questions but different answers. Does exist a

  • How to validate for 2 decimal places

    How can I put a check while inserting into a number(5,2) field that user has entered only 2 decimal places. Right now if the user inserts records like 23.5456 it gets inserted as 23.56 . I want these type of records to error out. Is there an easy way

  • New laptop, ipod doesn't list music

    We set up a new ipod on a desktop then a few months later bought a laptop with vista. When plugging the i pod in it shows the user name but doesn't list what music is on the i pod. Memory at the bottom does indicate music saved as memory has been use

  • How can I update shockwave for director?

    Hi My Shockwave For Director plug-in is out of date but when I try to download it from Adobe's website stage 2 is skipped & the update will not even download let alone install.  Could anyone help please? I am currently using 12.0.4.14 Thank you!