Accumulation of memory in InDesign: how to free the memory?

Hey guys,.

I'm fairly new to InDesign extendscript and quickly ran into a problem that I can't solve everyday.

I'm working on a flash (version with adobe extension builder) Panel which, among other things, automatically the thumbnails page on exports, adds some data and so on... during treatment of pages (true magazine with a lot of content), the memory raises up to 1.5 GB and InDesign crashes. When I try less grave InDesign pages not down, even after the completed export script, InDesign uses still some 1 GB of memory.

To get initially page thumbnails, I use the built-in function Document.fileExport (Menu-> export (JPEG)).

I absolutely do not understand the tricky part is, if I call with window options (Document.fileExport: showingOptions = true), the memory instantly drops about 10 MB. So I 'bypassed' this problem by exporting pages in bursts (10 pages at the time) and indicating the options for the export of 10 pages. This way memory relies for 10 pages, then descends and accumulates again. But never up to 1.5 GB of crash InDesign.

As you can guess, this workaround is real pain in the anus, because export is automated is no longer and need operator / monkey push-button every 5 minutes or up to prevent InDesign crashing. (reminds me of the TV series LOST )

I tried to call $. gc(), but absolutely nothing happened. Even when I created the button dedicated with single purpose: call $. gc() and kept pushing for 10 minutes after export was over - nothing happened, the memory was still upstairs.

I just reopen the old project (abandoned due to the accumulation of memory) and was really surprised that he was suddenly works fine. I did a little googling and discovered that there was an update of InDesign in August 2010 that included graphics export patches.

So, if anyone google this thread, it is more relevant if you update IDS 2010/10.

Way to go Adobe!

Thank you, Peter

Tags: InDesign

Similar Questions

  • How to free the memory through BlackBerry Webworks Code

    I am faced with the question as "the available memory on your device is low. Close to some of the items below. "When I close the application of phonegap webworks after a few shots. How to free the memory through BlackBerry Webworks Code.

    It is a good number that in the face of demand for the BB webworks. Very common when you dynamically load images or by using the browser in your application. Please visit this link for details...

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/device-memory-is-low-issue-for-a...

  • How to free the memory after the end VI

    The data is collected once in a loop and added to a table of data. The collection was completed after the loop ends and a data table was built. In the end, the data has been written to a file. The program ended naturally. I guess that all the variables are erased from memory after the end, but it wasn't. If I run the program twice without closing, I have a set of newly collected data added to the 'old', which was created in my last run. A third series has been added if I run it once more.

    I just want to keep the last function as my data and I don't want to close the program to set all my settings to similar races. How to do?

    A sample file is attached.

    Thank you.

    You need to wire a constant empty table to the Terminal (lower bound) of the feedback node initializer.

  • How to free the memory consumed by the Essvr.exe

    Hello
    Whenever we start a request will start a process called ESSVR.exe in the background and his memory, consumption will increase as and when we run the calculations. But after the calculation is performed should not reduce the memory consumption.
    Whats happening is that sometimes the calculation gets hanged and when I kill the process and start it again, it is run after a couple of times the calculation again gets hung, is possible to free this memory consumed by the process through calc only, script commands so that every time when a calc script finish the memory is released. We use essbase 9.3.1.

    When an application is started, the first thing it does is enter memory equal to what is defined as the key cache. This memory is never released until the application is stopped. He leaves also consumes memory for the data cache as she needs until he reached what is defined for this cache. Yet once that memory is not released until the termination of the application. In addition, additional memory can be consumed for different things while the demand is increasing. For example dynamic cache calculator will use memory during the execution of a calc, each user to make recovery uses a little memory (which can add up with many users). ASO data load buffers use memory, kinds of report and recoveries, etc., you get the picture. All these resources are released when the application terminates. (or should be, there have been cases of memory leak in some versions)

  • How to find the Bookmarks panel is enable or disable the use of Applescript?

    Hi all

    In Indesign, how to find the Bookmarks panel is enable or disable the use of applescript?

    Please any idea on this subject!

    Thank you

    John.

    Hi John,.

    Version CC 2015 (and I guess in earlier versions) you would use:

    Tell application "Adobe InDesign CC 2015"

    the visible isVisible value of "Bookmarks" Panel

    tell the end

    isVisible

  • How to free up RAM memory in my macbook pro

    Hello

    How to free up RAM memory in my macbook pro

    In the current Mac OS x versions, Apple realized that the FREE RAM is not useful for anything whatsoever. What is needed is "instantly available RAM", and they began to be implemented in a number of ways. Free-ing RAM is no longer applicable.

    Some of your RAM may be used by an element called cache. These are copies of files read previously, in the hope that you will need to see again them soon. This RAM is said to be immediately available when an Application makes a request for the new RAM. In addition, little RAM is compressed. If it is referenced, Mac OS X can decompress a lot faster than to a new reading of the disc.

    The important point to look at the activity monitor is graphics memory. If it is not green, you may have to look more carefully at how you use your Mac and its RAM. The telltale signs that you need more are using PageOuts or Swap (but these counters start at zero at the start, so if you have worked for days, some will have invariably been used).

  • How can I free the memory?

    I tried set 'NULL', but I can't free memory.

    How to free up memory after ' FileReference.addEventListener (Event.COMPLETE,...) '?

    See my code:

    hand. ACE

    package {}

    import com.mainpackage.LoaderTestCase;

    import flash.net.FileReferenceList;

    import flash.net.FileReference;

    import flash.net.FileFilter;

    import flash.events.MouseEvent;

    import flash.events.Event;

    import flash.display.MovieClip;

    main/public class extends MovieClip {}

    private var listFiles:Array;

    private var allTypes:Array;

    private var fileRef:FileReferenceList;

    public void main()

    {

    listFiles = [];

    allTypes = [];

    fileRef = new FileReferenceList();

    fileRef.addEventListener (Event.SELECT, SELECT);

    fileRef.browse (allTypes);

    }

    private void SELECT(e:Event):void

    {

    Table: list var = fileRef.fileList;

    var file:FileReference;

    for each {(file in the list)

    Insert (file);

    }

    }

    private void insert (file:FileReference): void

    {

    var fire: LoaderTestCase = new LoaderTestCase (leader);

    Fire.Destroy (function (): void {})

    fire = null;

    });

    }

    }

    }

    LoaderTestCase.as

    package com.mainpackage

    {

    import flash.net.FileReference;

    import flash.events.Event;

    import flash.display.Loader;

    public class LoaderTestCase

    {

    private var file:FileReference;

    private var loader: Loader;

    private var: callback function;

    public void LoaderTestCase(e:FileReference)

    {

    file = e;

    trace ("OPEN:" + file.name);

    file.addEventListener (Event.COMPLETE, loadFile);

    leader. Load();

    e = null;

    }

    public void loadFile(e:Event):void

    {

    file.removeEventListener (Event.COMPLETE, loadFile);

    trace ("LOAD:" + file.name);

    file = null;

    e = null;

    callback();

    }

    public void destroy(a:Function):void

    {

    reminder = a;

    }

    }

    }

    Amy, I reached my goal, see the results:

    1. Firefox/Safari (Flash plugin version 12.0.0.77): Insider with 9 MB, 135 MB back and trimmed to 17 MB.
    2. Google Chrome (PepperFlash version 12.0.0.70): initiated with 12 MB, goes up to 132 MB and trimmed to 17 MB.
    3. Flash Player (Adobe CS5/Release/FlashPlayer.exe version 10-12 without running CS5): initiated with 6 MB, 185Mb back and filled with 185Mb.

    I realized something, with FileReferenceList.fileList if I so FileReferenceList.fileList [5] = null; (when the "sixth" file no longer serves) Flash memory immediately release this specific FileReference.

    Has worked on all the desktop computer / Plugins / PepperFlash.

    package {
         import flash.net.FileReferenceList;
         import flash.net.FileReference;
         import flash.net.FileFilter;
         import flash.events.MouseEvent;
         import flash.events.Event;
         import flash.display.Sprite;
         import flash.display.Loader;
         import flash.display.Bitmap;
         import flash.display.BitmapData;
         import      flash.geom.Matrix;
    
         public class Main extends Sprite
         {
              private var listFiles:Array;
              private var allTypes:Array;
              private var fileRef:FileReferenceList;
              private var tmpFile:FileReference;
              private var i:uint=0;
              private var j:uint=0;
              private var timer:uint;
              private var imageTypes:FileFilter;
              private var enable:Boolean;
              private var imageLoader:Loader;
    
              public function Main()
              {
                   imageTypes      = new FileFilter(
                        "Images (*.JPG;*.JPEG;*.JPE;)", "*.jpg; *.jpeg; *.jpe;"
                   );
                   listFiles     = [];
                   allTypes     = [imageTypes];
    
                   eventBrowse(true);
              }
    
              private function eventBrowse(a:Boolean):void
              {
                   enable = a;
                   if(a===true) {
                        stage.addEventListener(MouseEvent.CLICK, browse);
    
                        fileRef = new FileReferenceList();
                        fileRef.addEventListener(Event.SELECT, select);
                   } else {
                        fileRef.removeEventListener(Event.SELECT, select);
                        fileRef = null;
    
                        stage.removeEventListener(MouseEvent.CLICK, browse);
                   }
              }
    
              private function browse(e:MouseEvent):void
              {
                   if(enable===true) {
                        fileRef.browse(allTypes);
                   }
              }
    
              private function select(e:Event):void
              {
                   listFiles = fileRef.fileList;
    
                   eventBrowse(false);
    
                   i=0;
                   j=listFiles.length;
    
                   if(j>0) {
                        loadNextFile();
                   }
              }
    
              private function loadNextFile():void
              {
                   if(!(i
    
  • How to query the current free memory in the shared pool

    Hello

    Someone please tell me how to check the current uses of shared pool.

    Any query/Tip/document would be appreciated?

    If you have found errors ORA-04030 then it is more likely at the PGA instead of the SGA. If you had problems with the shared pool you would probably see shared pool latch wait events and others.

    For the ORA-04030 errors, depending on your operating system, can be solved by adding more memory to the operating system or to reduce the amount of work that is performed.

    HTH!

  • How to reduce the amount of storage to free up more space

    How to reduce the amount of storage to free up more space

    There are several things you could do.

    Save your iPad to iTunes on a computer or create an iCloud account, find out how much storage space you need for data and if you need to buy storage space monthly, to do. Then save your iPad to iCloud.

    HOWEVER the data backup on your iPad using WiFi or Bluetooth wireless, local devices such as portable hard drives or small flash memory drives designed for use with mobile devices, like the iPad.

    Remove the applications that you use is no longer. If you start to use them in the future, you can re-download them the iOS App Store.

    Thin out / remove the amount of music and movies you have on your iPad.

    If you make a backup of your iPad, you can thin out / delete all images stored in the iOS App Photos.

    Thin out / remove all books electronic, iBooks, eMagazines, and PDF documents, you have stored on your iPad. Magazines and e-books can be redownloaded at a later date.

  • How to free up space in Windows XP?

    My PC hard disk space is down so much! It is now 6.55 GB and there restore points or the Windows.0 file taking up much of the space. Everyone on Microsoft Answers help?

    PS: I deleted my 2 operating systems.

    Details of my PC

    Dell Dimension 8200
    Windows XP Professional SP3
    37 GB
    Motorola Surfboard modem
    Belkin Wireless G more MIMO Router
    Canon MG5200 Series printer

    My PC hard disk space is down so much! It is now 6.55 GB and there restore points or the Windows.0 file taking up much of the space. Everyone on Microsoft Answers help?

    PS: I deleted my 2 operating systems.

    Details of my PC

    Dell Dimension 8200
    Windows XP Professional SP3
    37 GB
    Motorola Surfboard modem
    Belkin Wireless G more MIMO Router
    Canon MG5200 Series printer

    I have no idea what, "PS: I deleted my 2 operating systems ' means - please expand on this.

    Do a house cleaning and the dust of this hard drive:

    You can free up disk space (will also help get rid of the things that you do not use) through the following steps:

    Windows XP should take between 4.5 and 15 GB * with * an Office suite, editing Photo software, alternative Internet browser (s), various Internet plugins and a host of other things installed.

    If you are comfortable with the stability of your system, you can delete the uninstall of patches which has installed Windows XP...
    http://www3.TELUS.NET/dandemar/spack.htm
    (Especially of interest here - #4)
    (Variant: http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm )

    You can run disk - integrated into Windows XP - cleanup to erase everything except your last restore point and yet more 'free '... files cleaning

    How to use disk cleanup
    http://support.Microsoft.com/kb/310312

    You can disable hibernation if it is enabled and you do not...

    When you Hibernate your computer, Windows saves the contents of the system memory in the hiberfil.sys file. As a result, the size of the hiberfil.sys file will always be equal to the amount of physical memory in your system. If you don't use the Hibernate feature and want to reclaim the space used by Windows for the hiberfil.sys file, perform the following steps:

    -Start the Control Panel Power Options applet (go to start, settings, Control Panel, and then click Power Options).
    -Select the Hibernate tab, uncheck "Activate the hibernation", and then click OK. Although you might think otherwise, selecting never under "Hibernate" option on the power management tab does not delete the hiberfil.sys file.
    -Windows remove the "Hibernate" option on the power management tab and delete the hiberfil.sys file.

    You can control the amount of space your system restore can use...

    1. Click Start, right click my computer and then click Properties.
    2. click on the System Restore tab.
    3. highlight one of your readers (or C: If you only) and click on the button "settings".
    4 change the percentage of disk space you want to allow... I suggest moving the slider until you have about 1 GB (1024 MB or close to that...)
    5. click on OK. Then click OK again.

    You can control the amount of space used may or may not temporary Internet files...

    Empty the temporary Internet files and reduce the size, that it stores a size between 64 MB and 128 MB...

    -Open a copy of Microsoft Internet Explorer.
    -Select TOOLS - Internet Options.
    -On the general tab in the section 'Temporary Internet files', follow these steps:
    -Click on 'Delete the Cookies' (click OK)
    -Click on "Settings" and change the "amount of disk space to use: ' something between 64 MB and 128 MB. (There may be many more now.)
    -Click OK.
    -Click on 'Delete files', then select "Delete all offline content" (the box), and then click OK. (If you had a LOT, it can take 2 to 10 minutes or more).
    -Once it's done, click OK, close Internet Explorer, open Internet Explorer.

    You can use an application that scans your system for the log files and temporary files and use it to get rid of those who:

    CCleaner (free!)
    http://www.CCleaner.com/
    (just disk cleanup - do not play with the part of the registry for the moment)

    Other ways to free up space...

    SequoiaView
    http://www.win.Tue.nl/SequoiaView/

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/

    Those who can help you discover visually where all space is used. Then, you can determine what to do.

    After that - you want to check any physical errors and fix everything for efficient access"

    CHKDSK
    How to scan your disks for errors* will take time and a reboot.

    Defragment
    How to defragment your hard drives* will take time

    Cleaning the components of update on your Windows XP computer

    It is a good idea at this time to ensure that you continue to get the updates you need. This will help you ensure that your system update is ready to do it for you.

    Download and run the MSRT tool manually:
    http://www.Microsoft.com/security/malwareremove/default.mspx
    (Ignore the details and download the tool to download and save to your desktop, run it.)

    Reset.

    Download/install the latest program Windows installation (for your operating system):
    (Windows XP 32-bit: WindowsXP-KB942288-v3 - x 86 .exe )
    (Download and save it to your desktop, run it.)

    Reset.

    and...

    Download the latest version of Windows Update (x 86) agent here:
    http://go.Microsoft.com/fwlink/?LinkId=91237
    ... and save it to the root of your C:\ drive. After you register on theroot of the C:\ drive, follow these steps:

    Close all Internet Explorer Windows and other applications.

    AutoScan--> RUN and type:
    %SystemDrive%\windowsupdateagent30-x86.exe /WUFORCE
    --> Click OK.

    (If asked, select 'Run'). --> Click on NEXT--> select 'I agree' and click NEXT--> where he completed the installation, click "Finish"...

    Reset.

    Now reset your Windows with this FixIt components update (you * NOT * use the aggressive version):
    How to reset the Windows Update components?

    Reset.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in. Look for whatever it is you do not know using Google (or ask here.) You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory. This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    Now that your system is generally free of malicious software (assuming you have an AntiVirus application), you've cleaned the "additional applications" that could be running and picking up your precious memory and the processor, you have authorized out of valuable and makes disk space as there are no problems with the drive itself and your Windows Update components are updates and should work fine - it is only only one other thing youpouvez wish to make:

    Get and install the hardware device last drivers for your system hardware/system manufacturers support and/or download web site.

    If you want, come back and let us know a bit more information on your system - particularly the brand / model of the system, you have - and maybe someone here can guide you to the place s x of law to this end. This isn't 100% necessary - but I'd be willing to bet that you would gain some performance and features in making this part.

  • How to enable the memory full use in Win 7 Pro 64 Bit OS

    Hello.

    I have a desktop with Win 7 Pro 64 bit and its installed with 8Gigs of RAM above, but when I check in the properties of the computer it shows only 8 GM installed and 3.86 inuse.

    Can anyone suggest me how to get the memory of 8 GB in use. ?

    Concerning

    Ishaan

    Why do you need to use all of your RAM?

    Are you trying to find how to use "RAMDisk"? The link below is for one of the
    software available. A search can find a free version.

    http://memory.Dataram.com/products-and-services/software/ramdisk

    The first I've heard talk of RAMDisk was today in the thread below.

    "You not use RAMDisk?
    .

  • How to calculate the total memory used by oracle under Linux?

    Hi all

    In one of my server have 148 GB of total physical memory and 12 databases are running. For capacity planning, I need to know how the Oracle server use.

    How to calculate the use oracle database? I was perplexed because Yop out his show off 148 gb 128 GB are used.

    Below for your reference:
    ++++++++++++++++++++
    == > back to top
    top - 09:52:32 up to 151 days, 15:20, 3 users, load average: 6.11, 6.00 6.05
    Tasks: 7 running, 1314, 1321 total sleep, stopped 0, 0 zombie
    CPU: 37.8%us, 1.4%sy, 0.0%ni, 55.0%id, 5.6%wa, 0.1%hi, 0.2%si, 0.0%st
    MEM: 148290444 k total, 129368792 k used, 18921652 k free, 1450292 k buffers
    Swap: 50331632 k total, 1296188 k used, 49035444 k free, 114733336 k cached


    The memory allocated to each instance is: sga total == > 34 pga = > 48 GB gb
    +++++++++++++++++++++++++++++

    SGA PGA
    4 GB 4 gb
    4 GB 4 gb
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    3 gb 4 gb
    3 gb 4 gb
    4 GB 4 gb
    3 gb 4 gb
    3 gb 4 gb

    Thank you

    Try this - http://www.pythian.com/news/29703/oracle-instance-memory-usage/ for each of your instances.

    As far as I know, different instances may share only the binary code oracle and using libraries, so you should be able to easily understand the amount of memory of all instances of 12.

    Lordane Iotzov
    http://iiotzov.WordPress.com/

  • How to reduce the memory usage when loading bitmaps from the library?

    When I use BitmapData.loadBitmap () to load an image in the library, then attachBitmap() to add it to a MovieClip it takes a lot more memory instead of just to have the same image inside a MovieClip statically in a frame in the timeline.

    The dispose() function not only deletes the BitmapData object but also destroys the bitmap previously attached inside the MovieClip, so it cannot be used to free the memory.

    Is - this how it is supposed to be or there at - it another way to dynamically attach bitmaps with comparable rightly memory use have them on stage?

    You can do the same thing with movieclips: create a bitmapdata instance and use the draw() method to overlay as needed.

  • need to know how to cancel the free trial subscription Starz

    I have an iPhone 6 and need to know how to cancel the free trial subscription Starz.  Help, please

    Follow the instructions in this article to support > view, change or cancel your subscription - Apple Support

  • How to free more GB on computer laptop macbook pro retina display

    How to free up to several GB on my mac pro book, 15 "retina display? 251 GB I have only 95 GB of storage left. It shows that I have a lot of pictures in GB of storage & I tried to remove tons of pictures to a portable hard drive, but I still have a lot of pictures somewhere on my laptop which take a GB storage capacity. How do I free this storage upward space.

    You use iPhoto or some other app to manage the photos? How you are moving - where exactly?

Maybe you are looking for

  • Satellite A200: Need a free software to turn videos I use the chicony webcam

    Hello! I wanted to ask if there is any chance of finding a free program with which I could shoot some videos, movies etc with my Chicony 2.0 camera integrated on my Satellite.I will be really grateful if you can help! Thanks in advance! Kind regardsP

  • Qualcomm-Atheros AR5BWB222 Wireless Network adapt

    Hello I have trouble keeping my brand new Acer Aspire 5600U online.  The Ondaaah continues to go offshore, often.  I know that this is not my router because I never had this problem with the old computer.  Is this a known problem with the Qualcomm At

  • iPad 2, iPrint and JO 8500

    The 8500N is supported according to the list of compatible printers in iPrint. However, my iPad is unable to find the printer on the network, but I know that the printer is connected, because we print to it all the time with 2 different computers. Wh

  • Print HP Photosmart C4580 cartridges missing or not detected

    Hello. I have the HP Photosmart C4580 printer, printer all-in-one, and every time I turn on the printer, I would get the message that the cartridges are missing or are not detected. I tried the solution from the cartridge and the message still appear

  • "Officejet Pro 8600' vs"Officejet Pro 8600 N911n"

    When you set up several programs or applications, I am presented with a list of available printers found. I have attached to my router as a network printer, a printer, a premium of Officejet Pro 8600, but still these two entries in the list: 'Officej