How often is garbage collected and can I control it.

The code I write tends to have a lots of graphics, video, audio all that stuff that uses lots of memory so I need to tidy up after myself. Are there any commands that force immediate collection? Any recommendations appriciated.

So I would need CS4 to explicitly control?  I found a interesting link about garbage http://gskinner.com/talks/resource-management/    I also read that gc happens very differently in IE than FF which seems odd as they both use the same vm.

Similar Messages

  • I am getting the PowerPC applications are no longer supported error, so I downloaded Libreoffice and can not find it on my hard drive anywhere. It did say install to Applications but it's not there. How do I find it and can I put it in my dock?

    I am getting the PowerPC applications are no longer supported error, so I downloaded Libreoffice and can not find it on my hard drive anywhere. It did say it would install to Applications, but it's not there. How do I find it and can I put it in my dock?

    In Safari's preferences:
    Look in the folder displayed where you see the arrow. The actual Downloads folder is found in your Home (user) folder.

  • I have smurf village on my ipod and just downloaded new smurf village to my ipad, but it has reset my game on the ipod.  how to l fix this and can l get my original game position back.

    i have smurf village on my ipod and just downloaded new smurf village to my ipad, but it has reset my game on the ipod.  how to l fix this and can l get my original game position back.

    If it is the same app for the iPod and the iPad (universal or iPod/iPhone app) and not a iPad only app, the only way is to restore the iPad from the backup of the iPod.  That will wipe out all the app data currently on the iPad though.
    If the iPad is an iPad only app, then there is no way.

  • My sons ipad uses my user name (i have an ipad and iphone).  I want to set his up with his own username and password.  How do i do that and can it be done without losing any of his apps, songs or video?

    my sons ipad uses my user name (i have an ipad and iphone). i want to set his ipad up with his own username and password.  How do i do that, and can it be done without losing any of his apps, music or video?

    Go to http://appleid.apple.com.
    To clarify, the mere act of changing the Apple ID on the device will not remove any content. But you cannot update the apps or re-sync them if they get deleted without the old Apple ID. It may be best to download them again with the new ID.

  • How to reinstate F10, F11 and F12 to control sound?

    How to reinstate F10, F11 and F12 to control sound?h

    System Preferences  >  Keyboard
    Under Keyboard tab uncheck "Use all F1, F2 keys as standard function keys".

  • Garbage Collection and Constant CPU Usage

    Hello,
    We have a load balanced environment running ColdFusion 10 Enterprise with 5 instances currently running. Currently we only have one instance being actively used but have been encountering a problem within a time frame of 12 to 36 hours (calculated on the times we have had to restart CF to come back online) the garbage collection is running almost constantly and CPU holds at 50% until the server just becomes unresponsive until the CF instance is restarted.
    I have been monitoring the server via VisualVM to watch the CPU and Heap usage since I have found that running the server monitoring systems build into CF 10 Enterprise accelerate the problem to cause a crash within 4 to 5 hours.
    This issue has been occuring regardless if there is heavy load or not on the server. I have been seeing some odd behaviour when running CF Stat where I am seeing 4 Requests Queued and Running Requests never shows anything other than 0. I increased the Minimum Heap Size to 512 MB and Maximum Heap Size to 1024 MB and below is our JVM arguments
    -server -XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch -Dcoldfusion.home={application.home} -Dcoldfusion.rootDir={application.home} -Dcoldfusion.libPath={application.home}/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random -Dcom.sun.management.jmxremote.port=8701 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
    We are running on a Windows 2008 64 Bit and IIS 7.5 on both of the load balanced servers and have updated the server to ColdFusion 10 Update 2. I am aware of the issues that are being fixed in Update 3 that was removed last week by Adobe due to bugs introduced.
    If anyone has any insight in how to fix this issue, I would be greatly appreciative.  This is affecting a production server that did not show these problems when we put the servers under load when we did pre launch settings.

    Further from your images - while it shows CF CPU at 50% the GC activity is 0%.
    So could be your not garbage collecting more than necessary and something else CF wise is taking CPU time.
    What would be interesting is the Jconsole Memory tab Details section. It shows the time spent in minor and major GC's.  eg:
    HTH, Carl.

  • I am about to buy a 13" MacBook Pro with 256 GB SSD drive.  I want a i am about to buy a MacBook Pro Windows partition set up.  How large should it be, and can I use XP Pro or does it need to be Win 7 or 8?

    I am about to buy a 13" MacBook Pro with 256 GB SSD.  I want a Windows partition set up.  What size should it be, and can I load Win XP Pro or does it need to be Win 7 or 8?

    You can use XP but it has to be in a Virtual Machine and OS X as the host instead of as a dual boot system with XP in its own partition. That is how I run Windows on my Mac, in a Virtual Machine.
    Take a look at VritualBox from Oracle. It's free and works very well.

  • How to View by Collection AND Tag - Newbie Needs Good Documentation

    I am a self-study student trying to decide whether upgrading to Elements (or better) is worth it. I am comparing Adobe and Microsoft products.
    In Album Starter 3.2, all I want to do is one simple task: View pictures by Collection AND category. (I've been looking for help for over an hour - aaaagh!)
    1. For ex., I have a collection called Abstract. I also use color tags. I'd like to view only the photos in the Abstract collection that are Pink.
    Is this possible?
    ALSO before I buy any product I have to be convinced that the value I'll receive is worth the price.
    2. Can I view the documentation of the Adobe software package before I purchase it?
    3. Do the Adobe products have software documentation help that doesn't require going online? I'm looking for help files similar to those provided on Word, Excel, etc. 3a. Do they exist?
    4. Is there a list of specific Features/Benefits that compares the different versions of Adobe? (I have looked on the product sales sites and what I found was far too general.)
    Thank you so much for your time. I think this software might be what I'm looking for BUT since I don't take classes, good documentation is something I can't live without. It'd be great if you could add a "newbie section on your website. I think more "newbies" like me would either buy or become "devoted users" if they knew what they could do. Thanks again!

    There is a site on Adobe.com that has online video of various training sessions of using the products. Most clips are 2-3 min. Look for video workshop. If you have Vista Advanced Find (shortcut windows key and F) works good for sorting.

  • How to use Bulk Collect and Forall

    Hi all,
    We are on Oracle 10g. I have a requirement to read from table A and then for each record in table A, find matching rows in table B and then write the identified information in table B to the target table (table C). In the past, I had used two ‘cursor for loops’ to achieve that. To make the new procedure, more efficient, I would like to learn to use ‘bulk collect’ and ‘forall’.
    Here is what I have so far:
    DECLARE
    TYPE employee_array IS TABLE OF EMPLOYEES%ROWTYPE;
    employee_data  employee_array;
    TYPE job_history_array IS TABLE OF JOB_HISTORY%ROWTYPE;
    Job_history_data   job_history_array;
    BatchSize CONSTANT POSITIVE := 5;
    -- Read from File A
    CURSOR c_get_employees IS
             SELECT  Employee_id,
                       first_name,
                       last_name,
                       hire_date,
                       job_id
              FROM EMPLOYEES;
    -- Read from File B based on employee ID in File A
    CURSOR c_get_job_history (p_employee_id number) IS
             select start_date,
                      end_date,
                      job_id,
                      department_id
             FROM JOB_HISTORY
             WHERE employee_id = p_employee_id;
    BEGIN
        OPEN c_get_employees;
        LOOP
            FETCH c_get_employees BULK COLLECT INTO employee_data.employee_id.LAST,
                                                                              employee_data.first_name.LAST,
                                                                              employee_data.last_name.LAST,
                                                                              employee_data.hire_date.LAST,
                                                                              employee_data.job_id.LAST
             LIMIT BatchSize;
            FORALL i in 1.. employee_data.COUNT
                    Open c_get_job_history (employee_data(i).employee_id);
                    FETCH c_get_job_history BULKCOLLECT INTO job_history_array LIMIT BatchSize;
                             FORALL k in 1.. Job_history_data.COUNT LOOP
                                            -- insert into FILE C
                                              INSERT INTO MY_TEST(employee_id, first_name, last_name, hire_date, job_id)
                                                                values (job_history_array(k).employee_id, job_history_array(k).first_name,
                                                                          job_history_array(k).last_name, job_history_array(k).hire_date,
                                                                          job_history_array(k).job_id);
                                             EXIT WHEN job_ history_data.count < BatchSize                        
                             END LOOP;                          
                             CLOSE c_get_job_history;                          
                     EXIT WHEN employee_data.COUNT < BatchSize;
           END LOOP;
            COMMIT;
            CLOSE c_get_employees;
    END;
                     When I run this script, I get
    [Error] Execution (47: 17): ORA-06550: line 47, column 17:
    PLS-00103: Encountered the symbol "OPEN" when expecting one of the following:
       . ( * @ % & - + / at mod remainder rem select update with
       <an exponent (**)> delete insert || execute multiset save
       merge
    ORA-06550: line 48, column 17:
    PLS-00103: Encountered the symbol "FETCH" when expecting one of the following:
       begin function package pragma procedure subtype type use
       <an identifier> <a double-quoted delimited-identifier> form
       current cursorWhat is the best way to code this? Once, I learn how to do this, I apply the knowledge to the real application in which file A would have around 200 rows and file B would have hundreds of thousands of rows.
    Thank you for your guidance,
    Seyed

    Hello BlueShadow,
    Following your advice, I modified a stored procedure that initially was using two cursor for loops to read from tables A and B to write to table C to use instead something like your suggestion listed below:
    INSERT INTO tableC
    SELECT …
    FROM tableA JOIN tableB on (join condition).I tried this change on a procedure writing to tableC with keys disabled. I will try this against the real table that has primary key and indexes and report the result later.
    Thank you very much,
    Seyed

  • Garbage Collecting and freeing memory in JTree

    Suppose you have a JTree with a model that takes a lot of memory. after you are finished using the tree you want to free this memory. so you go on and use the
    tree.setModel(null) method, hoping everything will be fine. to be extra sure you even set the root to null.
    what happens is that the tree view is cleared but the memory isn't.
    my conclusion is that somwhere in the tree package there are refrences to the tree root, model or whatever that keeps it from been garbage collected. to make sure my code doesn't keep any refrences to the tree model I am using a very thin class that only instantiates a tree and fills it with data. this class keeps no members, listeners, refrences and so on.
    calling system.gc() does nothing.
    Is there a simple way to clear memory in a JTree ?
    without using weak refrences and other unwanted complexities.

    Hi, thanks for the response.The C API version is 6.5.3 or 6.5.4.2, depending on the environment.I'll paste the code in here, but it is completely based on the sample programs so I'm not sure where else we could free up memory (any insights appreciated!):ESS_MEMBERINFO_T *pChildMemberInfo = NULL;sts = ESS_Init();if(sts == ESS_STS_NOERR){ sts = ESS_Login(srvrName, adminUserName, password);if(sts == ESS_STS_NOERR){// set the active dbsts = EssSetActive(hCtx, appName, dbName, &Access);if(sts == ESS_STS_NOERR){memset(&Object, '\0', sizeof(Object));// open the outline for use in subsequent callsObject.hCtx = hCtx;Object.ObjType = ESS_OBJTYPE_OUTLINE;Object.AppName = appName;Object.DbName = dbName;Object.FileName = dbName;sts = EssOtlOpenOutline(hCtx, &Object, ESS_FALSE, ESS_FALSE, &hOutline);if(sts == ESS_STS_NOERR){// get member names from outline, so// this section includes a number of // sts = EssGetMemberInfo(hCtx, // category, &pChildMemberInfo);// calls to query member names.// Then some calls are made to free // these resources:if(pChildMbrInfo){EssOtlFreeStructure(hOutline, 1, ESS_DT_STRUCT_MBRINFO, pChildMbrInfo);}if(pChildMemberInfo){EssFree(hInst, pChildMemberInfo);}EssOtlCloseOutline(hOutline);}}ESS_Logout();}ESS_Term();}

  • Garbage collection and closure

    I am running a remote script from bridge that opens a complex dialog in photoshop. I need to run the dialog in photoshop because it displays fonts, styles and actions, which are not available in bridge.
    When I close the dialog I return to my bridge script. If I repeated open the remote script with the complex dialog I continue to use up resources and the dialog opens more slowly each time.
    If I run the remote script directly from the ESTK I still lose reources and it slows down, but not as significantly as when run as a remote script via bridgetalk.
    I think this is caused by inner functions in my dialog, which are creating closures, which in turn are preventing garbage collection.
    Has anyone experienced this and do you have any tips to prevent the performance degradation?

    Rory,
    I've never seen that before. In PS, the script that displays the dialog executes, then the engine that ran it supposed to be destroyed. Should be no need for garbage collection. Running the script directly in ESTK still uses BridgeTalk, so I would expect little difference.
    I'd be curious to know what's happening because each time you run the script, it should be using a fresh scripting engine in PS. Perhaps there's something preventing PS from releasing the engine when BridgeTalk is involved. It that's the case, it would be a bug.
    I do have a suggestion - instead of switching to PS, why not ask PS to give you lists of fonts, styles, and actions? You could write a script that put all three into a an array:
    // up here create the arrays
    var a = new Array();
    a[0] = fontArray;
    a[1] = styleArray;
    a[2] = actionArray;
    a.toSource();
    eval'ing the message body in the onResult handler would give you all the info you needed to show your dialog in Bridge. Both Bridge and PS use scriptUI, so the dialog you have written should work in either (once you get the information necessary to display it in Bridge).

  • TS3219 I SOME HOW LOCKED UP MY IPAD AND CAN NOT GET IT TO SLIDE TO UNLOCK. CAN ANYONE HELP?

    I some how locked up my IPAD and I can not slide it to unlock it! Is there anyone that can help me get it unlocked?

    Hold both Home and sleep button for around 10secs until you see the Apple logo appears then release both fingers.  Wait until it reaches back the Home screen.  It should be OK to go.

  • How do I import collections and previous editing into a new copy of Lightroom 5?

    I've recently installed Lightroom 5 on a new computer.  I chose not to install my old Lightroom 3.6 on the new computer, but imported the catalog and photo folders from external drives into Lightroom.  My collections and editing did not appear to have been imported along with the catalog and photos.  What to do??

    In LR5, File->Open Catalog and then point to the location of your LR 3.6 catalog

  • I upgraded to Firefox 7.0 on Win 7 32-bit system and can no longer download personas. I setup a collection and can't use that either.

    I finally upgraded from Firefox 3.6.8 to Firefox 7.0 this morning. I don't like the default theme, so I tried to download a new persona and do not see a "wear this" button any longer. On the screen where I should see a button that installs it on my desktop, I have an option to download Firefox or to add the persona to a collection. I created a collection and added 2 themes, but even that won't allow me to actually install the persona in Firefox.

    Try a reset ...
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    No data is lost due to a reset.

  • Suddenly getting "unsupported image fomat" on RAW files that have been working perfectly.  How do I fix it and can I get those images back?

    I am suddenly getting "unsupported image file" for RAW images that have been working just fine.  How do I fix this and how do I get those images back?  Version 3.4.5, Canon 7D, everything up to date and no updates since files were loaded into Aperture.

    Would it help to buy a separate external hard drive for Aperture?
    That would be by far the best solution. And it would make the backup easier. You could include the "Aperture" drive in your Time Machine backup. With the original files stored on your Time Machine volume there is no way that Time Machine could back them up.
    Use Disk Utility to format the new drive "MacOS X Extended (Journaled)".
    Set the "Ignore Ownership on this Volume" flag. (select the drive in the Finder, use "File > Get Info ⌘I)
    In the "Get Info" panel your drive should look like this:

Maybe you are looking for

  • MBP 2010 6,2 battery is dying not holding charge so it seems

    My MBP is < 1 yr old. The battery "normally" is ok BUT usually I have it plugged in the charger when ever I use it. I just left and shutdown (I never put to sleep) and was gone for about 1.25 hours. When I came back I just turned it on and the batter

  • AI CS3 Plugin: How to get the file format that is selected in the "save as" dialog??

    Hi, Someone please help me in getting the file format that is selected in the "save as" dialog. I wanted to retrieve it in the string format. I tried sAIDocument->GetDocumentFileFormat. But i'm unable to implement it correctly. Is there a better way

  • My iTunes gift card wont redeem, it says that it's invalid.

    my friend bought me an itunes gift card for my birthday, and when I tried to redeem it it said that the code is invalid. I tried 6 or 7 times and it still won't work. Is there any way that I can get it activated somehow without going to a store?

  • Can't Create OC4J Instance

    Hi, Oracle Application Server 10.1.3.3.0 While creating new OC4J instance we got the following error: "Creation of OC4J instance "App" failed due to the error: Caught exception calling invoke on oc4j:name=Singleton,type=OpmnConfig" Any ideas ? Thanks

  • Drill Down Report using Crystal reports in eclipse and jspviewer

    Hi I want to understand how to write a drill down report since I have a requirement for my project, so I tried to run the sample drill down.rpt that is available with Crystal Reports 2008 Complete Reference book by George Peck. I can see the results