Minimize memory usage with a multi-frame MovieClip

I have a MovieClip in Flash with 100 frames. Each frame contains a certain icon I need to use in a project. I create instances of this icon MovieClip wherever I need an icon to appear, and gotoAndStop to a certain frame to display that icon.
Will storing a 100 icons in a single movieclip cause every single icon to be created in memory whenever I create an instance of the MovieClip? If I stored each icon in the library and attached only the icon that is needed, would that consume less memory than creating this MovieClip that has all the icons in it?

if you create an object in the ide (ie, by putting it on-stage), then it (roughly) only exists in memory while it is on-stage (or on the backstage).

Similar Messages

  • How to minimize memory usage with VM settings

    Using JDK 1.4.2, I am trying to minimize the memory usage of my application.
    Our GUI application consumes about ~20MB of heap space during normal operation, but it can easily grow to 50MB in some rare cases (Special feature accessed by user).
    We have to be able to run multiple instances (separate process/VMs) of this application on low end Windows PCs.
    The applications don't usually run for very long (less than 8 hours).
    Here is my problem.
    If I set the -Xms=20M -Xmx=64M, it works fine, but the GC is not very aggressive and soon, the application starts using a lot of memory, even if it is not really needed. And it never returns the memory to Windows OS.
    So each VM take more memory than really needed, which causes significant swapping on these low end PC (little RAM available).
    If I reduce the -Xmx flag, than I run out of memory in the rare cases where I need the full memory.
    Ideally, I would like to configure the GC to be more aggressive, i.e. the GC should collect instead of getting additional memory from the OS when possible.
    I read a few papers on Sun's web site about HotSpot tunning, but most of them are geared for large servers.
    Thanks!
    Francois

    And you are using the task manager to determine how "much" memory is being used correct?
    I suggest that you search out and read the numerous threads on this site that discuss that subject.

  • Norton reports high memory usage with firefox and it crashes often

    Norton antivirus 2011 has pop up warnings reporting high memory usage from Firefox. I have been getting theem often and my computer is crashing often after those pop up warnings. Thanks

    Safe mode did not help.
    I have disabled ALL extensions and plug-ins, but the problem with "zig-zag" memory usage still remains (I've not tried to leave browser open for the night yet).
    I think I'll do clean reinstall with completely new empty profile (without sync'ed information) to try this out. If this works, I'll start adding stuff (configuration, sync, features, etc) to see what causes the problem.

  • Very high memory usage with Yahoo Mail

    After using Yahoo Mail for an hour or so my memory usage increases to a very high level.
    Just now, after reading and deleting about 50 e-mails (newsletters etc.) I noticed Firefox 17 running slowly and checked the memory usage in Windows Task Manager (I am using XP) and it was 1.2 Gb. My older laptop only has 2 Gb of RAM. Yahoo Mail was the only thing open at the time.
    I never notice this problem with Gmail which I mainly use. However I use Yahoo Mail for quite a few newsletters etc. that are less important and which I only check once a week or so.
    I found the following bug report about 3 years old which almost exactly describes my problem.
    https://bugzilla.mozilla.org/show_bug.cgi?id=506771
    But this report involves a much earlier Firefox version, and at the end it seems to say that the problem was fixed. However it well describes my current issue with Firefox 17, especially the continual increase in memory while using the up/down arrow keys to scroll through Yahoo e-mails.
    Is this normal to have to shut down and reopen Firefox every hour or so to clean out the memory? For some reason I only notice this when using Yahoo Mail. After using many other sites and having multiple tabs open for several hours I rarely reach that kind of memory usage. About the highest I've seen with other sites after a couple of hours is 600 Kb which is roughly when I start notice slower response times.

    See also:
    *https://support.mozilla.org/kb/firefox-uses-too-much-memory-ram
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Excessive memory usage with FireFox 3.6.8

    Is it normal for the total memory footprint of FireFox.exe and Plugin-Container.exe to be 1.14GB (488MB and 651MB respectively)?
    When first opening FireFox, it's footprint is approx 30MB, but inexorably creeps upward as I browse (typically YouTube/Hulu/4chan/GMail), consuming nearly 60% of total system memory before performance loss demands a browser restart.
    Is there any workaround or update/patch or command-line argument that will cap memory usage? Will rolling back to an earlier version of FF solve the problem, or is it a problem with Flash? Any advice would be appreciated.

    This is caused by the Flag Fox add-on, you can either disable or uninstall it.
    # Open the add-ons manager - in the menus select Tools, then Add-ons
    # In the add-ons manager go to the Extensions panel
    # In the list of add-ons click on Flag Fox to select it, then either click on the Disable or Uninstall button
    # Re-start Firefox to complete the process
    Do you have Personas Plus 1.6 installed? If you do try disabling that one instead, it has been causing problems with add-ons.

  • WinXP and Vista memory usage with Illustrator CS2 - is Vista winning?

    Dear forum.
    I have an AI-template file where I insert some very large PNG files into it, modifies the template a bit and then I print the the resulting document in PS-format. The PNG files may be as large as 100 MB (24-bits, approx. 100 mil. pixels in total). It appears that while a Vista-based machine has no problem loading one or even two copies of these huge files into memory, a WinXP-based machine can't even load a single file into memory. Instead, I a dialog box with the message: "Could not read the file because the plug-in could not understand this file". Is it really a faulty plug-in or is it just CS2's way of saying "not enough memory" in a quirky way?
    All in all, I would like to hear whether someone has the same experience with Vista, ie. it seems to be better at memory management or better at allocating memory for Illustrator CS2, enabling it to load large PNG files.
    The specifications of the WinXP-based machine:
    Pentium 4 2.6 GHz
    3 GB RAM
    Virtual memory 4095 MB in a physically separate drive from the OS disk
    All Visual Effects are turned off
    Has Illustrator CS2, Adobe Acrobat 7 and Distiller installed (and a few auxilliary programs)
    The specifications of the Vista-based machine:
    Dell OptiPlex 740SF
    AMD x2 5000 (2.6 GHHz)
    2 GB RAM (667 MHz, 2 x 1 GB)
    250 GB SATA disk
    Windows Vista
    Adobe Creative Suite 2 Standard + Adobe Creative Suite 3
    Thanks!

    Hi, everyone
         I got a new t440p 20ANA00UHH (8GB RAM, win8 64bits) about one week ago. It works really well, but its memory usage  confused me. In Task Manager, the "Performance" option shows memory is 68% (5.4G in use), but "Users" option shows memory usage 66% (1019.5M in use). Is that normal ? I just opened some websites and word files.

  • Memory Usage with new Tab Apps and Panoramas

    I actually don't have a problem, just a question. I love the new tab apps and panorama features in FF4, but I am wondering how the CPU usage compares with e earlier versions of FF. (I never checked and I'm not going to :)) Are there any recommendations on how tab apps and panoramas should be used? My assumption is that the "dormant" panos will use less cycles than if they were all open on the desktop, is this true?

    CS3 is still 32-bit so the user address space is 3.5GB. However, the OS can still use additional memory for cache to help performance, which comes into play when working with larger files. You need to download and install the enable VMBuffer plug-in, otherwise VMBuffering is disabled.
    See: http://www.crn.com/software/197700697
    Adobe forums:
    http://www.adobeforums.com/cgi-bin/webx?14@@.3bc45977/5
    some benchmarks:
    http://www.barefeats.com/octopro1.html
    http://www.barefeats.com/octopro4.html

  • Performance/Memory usage with WAD Templates in BIW

    Hi All,
    We have an E-Portal application on a CERT environment where a user can log in and see the templates created in WAD through internet.
    Most of the templates are stateful to facilitate export to Excel,XML and CSV along with saving of Graphs and charts.
    As the templates are stateful, they consume a lot of memory and under stress testing, application tanks when there are more than 15 simultaneous users as each user consumes approx 1 gb of memory.
    The response time also is very high.
    Is there any way to increase the performance without making the templates stateless?
    If no, is there any way we can get the required functionality by making the templates stateless?
    Regards,
    Godhuli

    Hi gaurav,
    I am not sure how I am using these commands. I am currently using a STATELESS connection. Take a look at the code below:
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_PROPERTIES"/>
    <param name="TEMPLATE_ID" value="ZADHOC_V1"/>
    <param name="PROPERTIES_ID"
    value="ZQ_WEB_LIBRARY_TEMP_PROPERTIES"/>
    <param name="STATELESS" value="X"/>
    <param name="DATA_MODE" value=""/>
    <param name="DEVICE_OPTIMIZATION" value=""/>
    <param name="NO_SESSION_COOKIE" value="X"/>
    <param name="MENU_CHARACTERISTIC_PROPERTIES" value="X"/>
    <param name="USE_PAGE_WRAPPER" value="X"/>
    <param name="CMENU_LABEL" value="Print"/>
    <param name="CMENU_FUNCTION" value="callPrintHelpService"/>
    My question is how can I emulate the same functionality of a STATELESS Connection i.e. break the connection from the application server once the query has run? I do not want to run the STATELESS Connection anymore.
    Also, could you show how/where to use the cmd=log_off&session_cmd=cancel code that you sent earlier.
    Thanks,
    Rahul

  • How do I minimize memory usage?

    I'm relatively new to the computer world and really don't know hardly anything... but i have a "iStat Nano" widget that tells me how much memory i have left... i have 2gb of memory on this (15" macbook pro) and there was only about 19 to 11mb left!!! I only have about 1300 songs on here, and not too many pictures. Why do I have such little memory, and what can i do to reverse it? I've only had this computer for ... going on 2 months ... what is memory, and why do I only have 11mb left already?
    Thanks everyone!
    Message was edited by: nanochromaddict

    Hi nanochromaddict, welcome to Apple Discussions!
    Firstly, allow me to clarify the concept of "memory" for you, as there have been many misuses of this term by many people. Computers possess "memory" chips called RAM (Random Access Memory). The computer stores data in RAM that is currently being used by the computer, or has been recently used. For example, if you are browsing the internet, while typing a paper in Word, the computer will store the website's data and your document's data in RAM. This allows quick and easy manipulation of both, and the computer does this automatically for you. As you use the computer, the RAM will fill up as you open more applications. Luckily, Mac OS X is very good at allocating RAM for the fastest performance possible, again, automatically. As you close down applications, the RAM is freed up again if it is needed by some other task. So, there is constantly a dynamic re-allocation of RAM by the computer, as it is needed.
    You can upgrade the RAM in your computer so that you can do more things at once, more quickly. This is what RAM allows. If you run out of RAM during normal operation, the computer will simply start storing the data it needs on the hard disk, which slows things down considerably, because RAM is many many times faster than the hard disk. One thing you should remember is that RAM can be cleared out (or "reset") just by restarting the computer.
    The term "memory" is also used, quite incorrectly, by many people to refer to hard disk storage space. Hard disk storage is where all your data including documents, music, photos, etc. is all stored. Your hard disk storage is accessed through the "Macintosh HD" icon on your desktop, as you know. If you double click on that Macintosh HD icon, you'll see at the bottom of the window that opens the amount of storage space you have left. It is likely greater than 100GB, meaning that you have plenty of storage space remaining.
    When you see in iStat nano that you only have 11MB left, that is referring to your RAM, not to the hard disk storage space. If you only have 11MB left, you likely are running quite a few programs at once. You can increase the amount of free RAM by closing applications down that you aren't using anymore.
    I hope this makes sense to you! If you have any questions, please ask! Again, welcome to the forums.
    --Travis

  • VM memory usage with DOM objects

    Hi - I have a general question regarding VM memory use (and garbage collection) when using instances of XMLDocument (we're using the Java version of the parser, v2.0.2.6).
    Say we have an existing instance of XMLDocument containing a valid xml document. What happens when:
    a) XMLDocument is set to null? When will all the previous xml Node/Element instances that were referenced in the document structure be garbage collected? My understanding is that objects will only be garbage collected when there are no remaining references to them. How does this apply to the tree structure of references between Node instances in the XML document? I am guessing that by setting XMLDocument to null, this change will eventually cascade through all the other nodes, so eventually they are released?
    b) Secondly, what happens to the existing Node/Element instances referenced in an instance of XMLDocument if I assign it new document contents from getDocument() on an instance of DOMParser? Does this create a new document tree structure from scratch and create new instances of Nodes to represent the new document, or are the previous instances of Node etc from the previous document reused somehow?
    c) Following on from above, if the previous instances of Node from the previous document are not reused, when are these garbage collected?
    Thanks in advance,
    Kevin Hooke

    The XMLdocument object, although representing the entire document, is referenced solely to the root of the DOM tree. To clean up the DOM Tree, one should set all the references to the tree (doc, node, elements, ...) to null.
    Here are the specic answers to your questions:
    a) Setting XMLDocument to null will NOT have the cascading effect on the other Nodes/Elements.
    b) Yes, the previous DOM Tree still exists if there are any Node/Elements pointing to it even if you get a new document. When you get a new document, you get a new DOM Tree representation.
    c) Unfortunately, there is no way to guarantee when the garbage collection takes place in the JVM. Check out the method System.gc() to "suggest" to the JVM the invocation of the gabage collector.
    Oracle XML Team

  • Kernel memory usage

    Is there a way to see both the kernel virtual and the kernel real memory
    usage. I can see the real memory usage with "sar -k", or the "arena_size"
    in the "kmem_misc" kstat, or by looking at all the "kmem_cache" kstats
    like the crash "kmastat" command. But, can I find out how much is not
    "resident"?

    All of the kernel memory in use as reported by sar -k is resident and not paged (see kmem_alloc(9f)). That is why drivers must be careful how they use it.
    As for virtual address space, everything above the value of the kernelbase variable (see param.h)is kernel virtual address space.
    I think 0xE0000000 is the default for kernelbase on sun4d and Intel.
    Hope that helps. Regards,
    Ralph
    SUN DTS

  • Best GC options for minimum memory usage?

    It seems that the more -Xmx memory I set, the more memory my app is using. Alas, the garbage collector is controlling the memory by itself and even System.gc() does not garbage collect all unused objects.
    There are lots of parameters at http://java.sun.com/docs/hotspot/VMOptions.html, but what's the most aggressive one(s) to free unused memory as soon as possible?

    Hi Martin,
    please, let me tell you a few basic things first:
    - under good circumstances the GC runs only when some heap space is full and more
    memory is needed.
    - even if the GC frees memory it will usually not be returned to the OS immediately but only
    when some other process needs it. This means you will not see processes shrink
    immediately when the JVM reduces its heap sizes. This is certainly true for Solaris.
    - it is bad practice to call System.gc() in your Java code.
    - the smaller the configured heap the more time (in percent) the JVM will use for GC. This is
    because the memory in use has to be searched each time the GC runs
    - the heap actually used by your JVM adds to the real memory size of the process
    - the max values (-Xmx + -XX:MaxPermSize) add to the virtual memory size of the process
    even if these max values are not actually used
    Now, knowing these, to minimize your actual heap usage, I recommend you the following settings:
    -Xms20m # set this to the minimum you will need, omiting it only slows down JVM startup
    -Xmx200m # set this to the maximum you might need or can spare
    -XX:MinHeapFreeRatio=20 # minimum heap percentage free after a Full GC, default=40
    -XX:MaxHeapFreeRatio=40 # maximum heap percentage free after a Full GC, default=70
    -XX:NewSize=10m # don't make it too small because this will make GC less efficient, the
    # actual value depends on the nature of the app
    -XX:MaxNewSize=10m # ditto, you can only make it larger than NewSize
    -XX:SurvivorRatio=6 # try to compensate for small NewSize
    -XX:TargetSurvivorRatio=80 # don't waste survivor space memory
    I hope this helps. Please, keep in mind that a GC-based system is not really meant to
    minimize memory usage!

  • Problem with Firefox and very heavy memory usage

    For several releases now, Firefox has been particularly heavy on memory usage. With its most recent version, with a single browser instance and only one tab, Firefox consumes more memory that any other application running on my Windows PC. The memory footprint grows significantly as I open additional tabs, getting to almost 1GB when there are 7 or 8 tabs open. This is as true with no extensions or pluggins, and with the usual set, (firebug, fire cookie, fireshot, XMarks). Right now, with 2 tabs, the memory is at 217,128K and climbing, CPU is between 0.2 and 1.5%.
    I have read dozens of threads providing "helpful" suggestions, and tried any that seem reasonable. But like most others who experience Firebug's memory problems, none address the issue.
    Firefox is an excellent tool for web developers, and I rely on it heavily, but have now resorted to using Chrome as the default and only open Firefox when I must, in order to test or debug a page.
    Is there no hope of resolving this problem? So far, from responses to other similar threads, the response has been to deny any responsibility and blame extensions and/or pluggins. This is not helpful and not accurate. Will Firefox accept ownership for this problem and try to address it properly, or must we continue to suffer for your failings?

    55%, it's still 1.6Gb....there shouldn't be a problem scanning something that it says will take up 300Mb, then actually only takes up 70Mb.
    And not wrong, it obviously isn't releasing the memory when other applications need it because it doesn't, I have to close PS before it will release it. Yes, it probably is supposed to release it, but it isn't.
    Thank you for your answer (even if it did appear to me to be a bit rude/shouty, perhaps something more polite than "Wrong!" next time) but I'm sitting at my computer, and I can see what is using how much memory and when, you can't.

  • Problem with scanning and memory usage

    I'm running PS CS3 on Vista Home Premium, 1.86Ghz Intel core 2 processor, and 4GB RAM.
    I realise Vista only sees 3.3GB of this RAM, and I know Vista uses about 1GB all the time.
    Question:
    While running PS, and only PS, with no files open, I have 2GB of RAM, why will PS not let me scan a file that it says will take up 300Mb?
    200Mb is about the limit that it will let me scan, but even then, the actual end product ends up being less than 100Mb. (around 70mb in most cases)I'm using a Dell AIO A920, latest drivers etc, and PS is set to use all avaliable RAM.
    Not only will it not let me scan, once a file I've opened has used up "x" amount of RAM, even if I then close that file, "x" amount of RAM will STILL be unavaliable. This means if I scan something, I have to save it, close PS, then open it again before I can scan anything else.
    Surely this isn't normal. Or am I being stupid and missing something obvious?
    I've also monitored the memory usage during scanning using task manager and various other things, it hardly goes up at all, then shoots up to 70-80% once the 70ishMb file is loaded. Something is up because if that were true, I'd actually only have 1Gb of RAM, and running Vista would be nearly impossible.
    It's not a Vista thing either as I had this problem when I had XP. In fact it was worse then, I could hardly scan anything, had to be very low resolution.
    Thanks in advance for any help

    55%, it's still 1.6Gb....there shouldn't be a problem scanning something that it says will take up 300Mb, then actually only takes up 70Mb.
    And not wrong, it obviously isn't releasing the memory when other applications need it because it doesn't, I have to close PS before it will release it. Yes, it probably is supposed to release it, but it isn't.
    Thank you for your answer (even if it did appear to me to be a bit rude/shouty, perhaps something more polite than "Wrong!" next time) but I'm sitting at my computer, and I can see what is using how much memory and when, you can't.

  • Problem with JTree and memory usage

    I have problem with the JTree when memory usage is over the phisical memory( I have 512MB).
    I use JTree to display very large data about structure organization of big company. It is working fine until memory usage is over the phisical memory - then some of nodes are not visible.
    I hope somebody has an idea about this problem.

    55%, it's still 1.6Gb....there shouldn't be a problem scanning something that it says will take up 300Mb, then actually only takes up 70Mb.
    And not wrong, it obviously isn't releasing the memory when other applications need it because it doesn't, I have to close PS before it will release it. Yes, it probably is supposed to release it, but it isn't.
    Thank you for your answer (even if it did appear to me to be a bit rude/shouty, perhaps something more polite than "Wrong!" next time) but I'm sitting at my computer, and I can see what is using how much memory and when, you can't.

Maybe you are looking for

  • Is it god for the computer if you open and close it every 5 mins or less

    becuase im scared of burning my computers hardware and etc in their helpp plzz

  • Question on cl_gui_frontend_services= file_save_dialog

    Hi all,,,  need your help.. thank you i n ad vance .. why ist tht happen?  the default extension, 'txt' but  the "save as type" in the dialog box  shows 'XLS', excel file ?? CALL METHOD cl_gui_frontend_services=>file_save_dialog     EXPORTING       w

  • Payslip does not appear on the Self Service Page

    Hi all , I would like the system to display the Payslip of an employee on his self-service page so that when the user logs in he or she can view his/her Payslip. When i click on the Function Payslip it says ERROR on Page. I have Run International HRM

  • HyperLinkText in Crystal Report

    Hello, I have a hyperlinktext in a report which worked in previous versions. Now when I click the hyperlink at runtime he doesn't show all of the parameters. This is what is filled in in the property HyperLinkText of the report: CRdefault.aspx?report

  • Premiere elements 9 error [..\...SRC\EMS\WSEMSUTIL.CPP602]

    Premiere elements 9.0 error [..\...SRC\EMS\WSEMSUTIL.CPP602] My computer came preloaded with premiere elements 9 and will not allow me to access the program. I continue to get this error when I click on the shortcut. Basically the elements 9 will not