Freeing up Memory During CFFILE

I have a process that generates flat files using CFFILE. The
process uses a database reference table that feeds the query
parameters. I have several loops in this process which I thought
would be more efficient and free up memory after each CFFILE
"action append" but before execution of the next query. (execute
query then write all the files, loop to query then write all files,
etc....)
Problem is that it is not freeing up memory and I am getting
java.lang.OutOfMemoryError errors after about 15 minutes of run
time.
Current solution is to run this process in batches. This
unfortuantly requires someone baby sit the process and change a
parameter and submit.
Is there anyway after the one of the loops is complete (query
has completed and first group of files have been written) and
before the next execution of the query that I can free memory?
I need to trick the process in thinking that the page is
complete then immediately initiate the next query to process the
files.
We have tuned the box as best we can, applied all patches
(MX7) . Process runs great in batches, but, just can't handle the
volume. Millions of rows are being processed.
Thanks
Bill

Current solution is to run this process in batches. This
unfortuantly
requires someone baby sit the process and change a parameter
and submit.
java.lang.OutOfMemoryError means that there are too many
objects in memory at one time. However, it is difficult to remove
objects in one continuous process while it is still running.
The word
batches carries a hint. In the circumstances, I would break
the process up into smaller jobs and use cfschedule for each. Each
job could store the data that subsequent jobs need in a file or in
a database table specifically created for that purpose. Use cached
queries for static data. Coldfusion will then read the data from
memory, rather than from a file or database, sparing you the
creation of yet more objects.

Similar Messages

  • FIM: Freeing invalid memory in OCIServerAttach

    Hi,
    I have the following piece of code for making connection to Oracle server -
    retCode = OCIEnvCreate(envHandle, OCI_THREADED, (dvoid *)0, 0, 0, 0, (size_t) 0, (dvoid **)0);
    if(retCode == OCI_SUCCESS)
    isEnvAllocated = PMTRUE;
    retCode = OCIHandleAlloc( (dvoid *) envHandle, (dvoid *) &errhp, OCI_HTYPE_ERROR, (size_t) 0, (dvoid **) 0);
    // server contexts
    retCode = OCIHandleAlloc( (dvoid *) envHandle, (dvoid *) &srvhp, OCI_HTYPE_SERVER,(size_t) 0, (dvoid **) 0);
    retCode = OCIHandleAlloc( (dvoid *) envHandle, (dvoid *) &svchp, OCI_HTYPE_SVCCTX,(size_t) 0, (dvoid **) 0);
    pError = checkError(*envHandle, errhp, OCIServerAttach(srvhp, errhp, (ptext *)dbName, strlen(dbName), 0));
    Purify is reporting FIM: Freeing invalid memory in LocalFree {1 occurrence} and the stack trace is -
    [E] FIM: Freeing invalid memory in LocalFree {1 occurrence}
    Address 0x001430f8 points into a HeapAlloc'd block in unallocated region of the default heap
    Location of free attempt
    LocalFree [KERNEL32.dll]
    ??? [security.dll ip=0x76e71a7f]
    AcquireCredentialsHandleA [security.dll]
    naunts5 [orannts8.dll]
    naunts [orannts8.dll]
    sntseltst [oran8.dll]
    naconnect [oran8.dll]
    naconnect [oran8.dll]
    naconnect [oran8.dll]
    nsmore2recv [oran8.dll]
    nsmore2recv [oran8.dll]
    nscall [oran8.dll]
    niotns [oran8.dll]
    osncon [oran8.dll]
    xaolog [OraClient8.Dll]
    xaolog [OraClient8.Dll]
    upiah0 [OraClient8.Dll]
    kpuatch [OraClient8.Dll]
    OCIServerAttach [OraClient8.Dll]
    OCIServerAttach [OCI.dll]
    Does anyone has idea why it is giving that error.
    Also there is a leak associated with it too and the stack trace for that is -
    MPK: Potential memory leak of 4140 bytes from 2 blocks allocated in nsbfree
    Distribution of potentially leaked blocks
    Allocation location
    calloc [msvcrt.dll]
    nsbfree [oran8.dll]
    nsbfree [oran8.dll]
    sntseltst [oran8.dll]
    sntseltst [oran8.dll]
    nsdo [oran8.dll]
    nscall [oran8.dll]
    nscall [oran8.dll]
    niotns [oran8.dll]
    osncon [oran8.dll]
    xaolog [OraClient8.Dll]
    xaolog [OraClient8.Dll]
    upiah0 [OraClient8.Dll]
    kpuatch [OraClient8.Dll]
    OCIServerAttach [OraClient8.Dll]
    OCIServerAttach [OCI.dll]
    Is it a standard leak that is happening in OCI.dll or it is the usage issue so that it can be solved by using OCIServerAttach in a different way.
    Any help in this matter is greatly appreciated.
    Thanks
    Anil
    [email protected]

    I believe that both issues are actually the result of false positives. In general, it's not really possible to tell whether C++ code is actually leaking memory or freeing invalid memory handles. Tools like Purify, BoundChecker, etc. will generally give this sort of false positive when the code you're profiling does something 'dangerous'. I believe you can ignore both messages-- at least the Oracle ODBC driver development group did when I was there.
    Justin

  • Fpga: Re-Initialize Block Memory during Execution

    Hello,
    I am working on a project in labview fpga 2010, using the Spartan 3e board. At the present, I am using a large chunk of block memory in a VI and initialize it using an initialization VI that reads values from a spreadsheet and places them in the memory. It works for the first time, however I want to be able to re-initialize the memory during execution of the VI (i.e. I overwrite all the values in the table, then after a certain time I wish to reset them back to their initial values). Is there any way of accomplishing this on the FPGA without using double the memory and simply writing the changed values in a different location while leaving the originals unharmed? Thanks for your help

    I think the approach I would take to solve this would be as follows:
    Protect access to the block RAM with helper VIs that provide some level of locking (see http://zone.ni.com/devzone/cda/epd/p/id/6014 for some ideas)
    Lock the block RAM when you're about to change it, and the go ahead and push the new values to the FPGA, pull the old values to remember them on the host, or both
    Unlock when you've completed updating the RAM contents.
    Note that, depending on how large this block RAM is, this approach could be painfully slow (since the Spartan 3E boards don't support DMA, you'll have to create your own mechanism for pushing the data to the device)

  • Xi runing out of memory during Mapping runtime..

    Hi I have a a scenario where the a certian field in the source can result in multiple line items in the target... I saw that when the the line items increases to over 50,000 lines in the target I get thsi mapping exception -
    During the application mapping com/sap/xi/tf/_MM_Map1_2_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~
    When I reduce the number of potential line items that can be generated then the mapping runs fine... this mapping has a lot of queue java functions. This leads me to believe that that the issue is related to a memory issue...
    How can i overcome this? Are there parameters that can be set to provide more system resources during mapping runtime.

    Hi Aravind,
    your input file is too large thats why you are getting that error.
    Asks your BASIS team to increase the java heap memory.
    Check this link
    Start java engine failure: how to increase space for object heap
    Regards
    Ramesh

  • KEEP GETTING ORA-04030: OUT OF PROCESS MEMORY During import using DataPump

    Hi,
    I know I have several issues with my datapump during imp, but I am stuck again people :(
    We took a expdp from an external client and we are trying to append the data to our existing db. When we do this, we keep
    getting this.
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-31693: Table data object "IWORKS"."TBLEDIFILE_DTL" failed to load/unload and is being
    skipped due to error:
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-04030: out of process memory when trying to allocate 64528 bytes (sort subheap,sort key)
    and so on...for all the tables.
    I used 2 different impdp commands to see if I would get different results and they are:
    mpdp system@iworksdb directory=DATA_PUMP_DIR dumpfile=expdpgemdev.dmp
    job_name=impgemdev041708_01 INCLUDE=TABLE TABLE_EXISTS_ACTION=APPEND
    SCHEMAS=GEMDEV LOGFILE=IMPIWORKS_BOON.log REMAP_SCHEMA=GEMDEV:IWORKS
    REMAP_TABLESPACE=IWORKS_INDEX:IWORKS_IDX REMAP_TABLESPACE=IWORKS_IOT:IWORKS_IDX
    REMAP_TABLESPACE=IWORKS_TABLES:IWORKS_TABLES EXCLUDE=GRANT exclude=statistics
    STREAMS_CONFIGURATION=N
    impdp system@iworksdb directory=DATA_PUMP_DIR dumpfile=expdpgemdev.dmp job_name=impgemdev041708_02 SCHEMAS=GEMDEV
    LOGFILE=IMPIWORKS_BOON.log REMAP_SCHEMA=GEMDEV:IWORKS
    REMAP_TABLESPACE=IWORKS_INDEX:IWORKS_IDX REMAP_TABLESPACE=IWORKS_IOT:IWORKS_IDX
    REMAP_TABLESPACE=IWORKS_TABLES:IWORKS_TABLES EXCLUDE=GRANT exclude=statistics
    STREAMS_CONFIGURATION=N
    I have also enabled my 3gb limit on my Windows 2003 Server which has a total of 4gb of RAM and a 2.6 ghz dual core:
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    C:\Documents and Settings\rdgadmin>cd ../..
    C:\>type boot.ini
    [boot loader]
    redirect=UseBiosSettings
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows Server 2003, Enterprise" /noexecute=optout /fastdetect /3GB /redirect
    Here is my Parameter file as well so this will show you how I setup my memory allocation as well.
    # Memory Allocations
    iworksdb.__db_cache_size=0
    iworksdb.__java_pool_size=0
    iworksdb.__large_pool_size=0
    iworksdb.__shared_pool_size=0
    iworksdb.__streams_pool_size=0
    *.db_16k_cache_size=673741824
    *.db_block_size=8192
    *.db_recovery_file_dest_size=1147483648
    *.pga_aggregate_target=1010612736
    *.sga_max_size=1521225472
    *.sga_target=1321225472
    # Instance Parameters
    *.control_files='C:\ORACLE\FILES\IWORKSDB\control01.ctl',
    'R:\ORACLE\FILES\IWORKSDB\control02.ctl',
    'C:\ORACLE\FILES\IWORKSDB\control03.ctl'
    *.db_domain=''
    *.db_name='iworksdb'
    *._kgl_large_heap_warning_threshold=0
    *.compatible='10.2.0.4.0'
    *.job_queue_processes=20
    *.open_cursors=20000
    *.session_cached_cursors=8000
    *.processes=300
    *.remote_login_passwordfile='EXCLUSIVE'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.db_recovery_file_dest='c:\ORACLE\FILES\IWORKSDB'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=iworksdbXDB)'
    *.statistics_level=ALL
    *.db_writer_processes=4
    # CBO Settings
    *.optimizer_mode='FIRST_ROWS'
    *.optimizer_index_cost_adj=20
    *.query_rewrite_enabled=TRUE
    *.STAR_TRANSFORMATION_ENABLED=TRUE
    *._NEWSORT_ENABLED=TRUE
    *.OPTIMIZER_DYNAMIC_SAMPLING=4
    *.optimizer_index_caching=75
    *.optimizer_index_cost_adj=15
    Continued on the next post....

    Continuation....
    Here is my log file from the impdp:
    Import: Release 10.2.0.4.0 - Production on Thursday, 17 April, 2008 14:35:31
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYSTEM"."IMPGEMDEV041708_01" successfully loaded/unloaded
    Starting "SYSTEM"."IMPGEMDEV041708_01": system/********@iworksdb directory=DATA_PUMP_DIR dumpfile=expdpgemdev.dmp job_name=impgemdev041708_01 INCLUDE=TABLE TABLE_EXISTS_ACTION=APPEND SCHEMAS=GEMDEV LOGFILE=IMPIWORKS_BOON.log REMAP_SCHEMA=GEMDEV:IWORKS REMAP_TABLESPACE=IWORKS_INDEX:IWORKS_IDX REMAP_TABLESPACE=IWORKS_IOT:IWORKS_IDX REMAP_TABLESPACE=IWORKS_TABLES:IWORKS_TABLES STREAMS_CONFIGURATION=N
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    ORA-39152: Table "IWORKS"."SYS_TOKENTYPE" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-31693: Table data object "IWORKS"."TBLEDIFILE_DTL" failed to load/unload and is being skipped due to error:
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-04030: out of process memory when trying to allocate 64528 bytes (sort subheap,sort key)
    ORA-31693: Table data object "IWORKS"."TBLSUBSCRIBERBENEFITS_DTL" failed to load/unload and is being skipped due to error:
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-04030: out of process memory when trying to allocate 64528 bytes (sort subheap,sort key)
    ORA-31693: Table data object "IWORKS"."TBLROUTE_DTL" failed to load/unload and is being skipped due to error:
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-04030: out of process memory when trying to allocate 64528 bytes (sort subheap,sort key)
    ;;; Import> kill_job
    Job "SYSTEM"."IMPGEMDEV041708_01" stopped due to fatal error at 14:42:54
    So basically I have looked online at Metalink and they are telling me (VIA me opening a SR with them), that I should look at Note 233869.1 Diagnosing and Resolving ORA-4030 errors
    So I did this, and the only thing that can apply to me that I am thinking is maybe I have sized my SGA too big??? I mean what else can cause this issue?

  • Error Handling and Freeing-up Memory

    I'm trying to write my java programs as responsibly as possible. When an exception is caught and sent to my catch block, in order to properly free up memory do I need to set all objects (created prior to the error occurance in the try block) to null or does Java do this for me at the termination of the routine or thread? I used to do this in VB within my error handlers. For example, in VB, if I had created an XYZ object and an error occured later on, before I was done using object XYZ, as part of my error handler I would "Set XYZ = Nothing". Is something similar needed in Java?

    Well it is always good to do a clean up routine you can do this by makeing a method that will set things to null and such and you also can use finally after the exception handler has exit and close streams and such in the finally {} catch also you can forcing finalization and carbage collection
    here is a link for that
    http://java.sun.com/docs/books/tutorial/essential/system/garbage.html
    but I thank it is alway good programming practice to clean up after your self
    ps I hope this helps

  • Problems freeing up memory

    i've been having a problem of late with my iPhone 5s 16 GB. I have been receiving a warning box, advising me that my memory is low; problem is, no matter how many apps I delete, I'm still advised that I have no memory available despite the fact that I am sure I've deleted at least 3 GB of memory. Because the phone thinks that more memory should be freed up, I can't do anything of substance on the phone without getting hung up by the warning box. If anyone can shed any light on what is going on here and point to a possible fix, I would appreciate it.
    Thanks,
    Dave

    i've been having a problem of late with my iPhone 5s 16 GB. I have been receiving a warning box, advising me that my memory is low; problem is, no matter how many apps I delete, I'm still advised that I have no memory available despite the fact that I am sure I've deleted at least 3 GB of memory. Because the phone thinks that more memory should be freed up, I can't do anything of substance on the phone without getting hung up by the warning box. If anyone can shed any light on what is going on here and point to a possible fix, I would appreciate it.
    Thanks,
    Dave

  • OUT OF MEMORY - during loading images (JPEG's)

    Hallo,
    We use the OHJ (version 4.1.12) inside a Java/Swing application with JDK 1.3.1.
    Our online help contains a lot of larger JPEG images. When the user navigates through the online help - an out of memory occurs while loading the images.
    I tried to split the help pages in a lot of small HTML pages, but this doesn't help. It seems that the OHJ does not clear the memory
    when loading the next HTML page.
    Can the OHJ deal with larger images ?
    Any other possibilities ?
    Thanks
    Markus Pohle

    >
    It seems that the OHJ does not clear the memory when loading the next HTML page.
    Can the OHJ deal with larger images ?
    We have never seen such a problem with large images and OHJ. Could you send us a ZIP containing your help content by e-mail to [email protected] so that we can try to reproduce it?
    Thanks,
    -brian

  • Using ABAP memory during IDOC processing

    What are implications , issues of using ABAP memory in IDOC processing i.e. let say in inbound FM , I create implicit enhancement and I submit a report and return  and pass data to this report via abap memory. What are implications ? Is it recommended to use this approach since many number of IDOCs are hitting the system and orders are getting posted.
    Please suggest . Thanks in advance.

    Hello Jürgen,
    Thanks a lot for this OSS Note. So it seems the issue is some kind of a program error that requires source code correction. I am in process of getting this note applied in our SAP environment. Hopefully, it solves my problem. I will definitely keep you posted.
    Thanks again for your quick help.
    Regards,
    EssKay

  • Freeing up memory for windows

    As I was deleting some un-needed programs on my computer to free up some memory on my hard drive, I came across 3 Ipod for Windows Programs dated 01/10/2006, 10/13/2005, and 9/06/2005. The first two averaged 200mb of ram, and the third was 100mb. Neither of these three are Itunes or QuickTime themselves because those two are listed separately down the list and only consume about 30mb. Exactly what are these three programs? Are they updated firmware for my Ipod? Can I delete all of them, or keep just the most recently dated one. The reason I’m asking is that I would hate to delete them and having my Itunes and music database corrupted. Any thoughts would be appreciated. In addition, I’m in no mood to burn 10 cds to backup all my music.

    well i can't be sure, but i beleive those may be te installers for itunes, if your worried about deleting then you could move them to a CD, delete them and see if anything happens, you can even save the CD for music later on by not formatting it once you've burned the files to it. formatting a CD make the files accessable to other computers or peripherals...i think. uhh, maybe it's not worth the risk, just format it. anyway that'll clear up the memory unless you need to put it back on

  • Freeing up memory

    I have a Blackberry Curve 9300. I've had it for almost a year now and it freezes up a lot. I've been trying to free up some memory and I came across Blackberry Identity in my application list. It says it has never been used and I wanted to know if it is safe to delete it. I've searched online for its use but came up with nothing so I'm asking if anyone out there may know what this application is necessary for to please share. Thanks

    Hello rereichie890
    NO ! Never delete your BlackBerry Identity from that list  !
    Read this : KB23716 : What is a BlackBerry ID
    It is the Master key for all BlackBerry Services.If you're try to free up some device memory then try deleteing any Unused apps, messages , transfer your media files to your Media Card etc. 
    Also go through this Knowledge Base :
    KB14320 How to maximize battery life and free memory on the BlackBerry smartphone
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • System out of memory during deployment

    Hello everybody,
    I have a J2EE project and a respective EAR-project to deploy my application on the WebAS 6.40 (SP13).
    Since yesterday I have the problem that when I add a new entity bean to my J2EE project I got the following error during deployment.
    If I remove the entity bean there is no problem to deploy the project.
    I tried a lot of things, e.g. changing the heap size of the developing workspace or of the sdm, but no results. Has someone an idea?
    Is there probably a limit for beans in a J2EE project?
    ===========================================================================
    Deployment started Wed Aug 17 11:58:00 CEST 2005
    ===========================================================================
    Starting Deployment of HPMisEAR
    Aborted: development component 'HPMisEAR'/'com.hp'/'localhost'/'2005.08.17.11.51.27':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application com.hp/HPMisEAR.. Reason: Errors while compiling:
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    ; nested exception is:      com.sap.engine.services.ejb.exceptions.deployment.EJBFileGenerationException: Errors while compiling:
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of HPMisEAR finished with Error (Duration 51252 ms)
    Thanks for help,
    Paulo
    Message was edited by: Paulo Calado

    Hi,
    thank you very much, it works now.
    Best regards,
    Paulo

  • Disposing a jframe, and freeing up memory

    Greetings,
    I hope this is the proper forum for memory issues.
    I have an enterprise database reporting desktop application that I am developing. The GUI application reports on a huge set of data that results in the app taking up to 125 MB worth of memory when fully loaded. There are moments in using the application that all of the data will need to be refreshed entirely, and the JFrame that reports it be reloaded in the process.
    I am wondering how to dispose the JFrame and release all of the data associated with it. I use NetBeans to develop my GUI, and so all of the data that is needed for the JFrame is a class variable of the JFrame (so the data can be accessed as it is needed). But, when the frame is disposed, I no longer need anything associated with the JFrame that gets disposed. The Javadoc for Window.dispose() seems to imply that not all of the resources will be released and GC'd when you call dispose, because it says "The Window and its subcomponents can be made displayable again by rebuilding the native resources with a subsequent call to pack or show." which to me says that the data is being remembered and not collected by the GC.
    Anyone have any tips for GUIs and memory management? It seems like any GUI app could get pretty large pretty fast if there's no way to release the data associated with the GUI.
    Here's the code I've tested that doesn't seem to be releasing the memory (stress tests of closing and re-opening the window multiple times shows the java.exe process eating more and more memory):
        public void reset(){
            this.dispose();
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new PartsDashboard(partNum, dateFrom, dateTo);
            try{
                this.finalize();
            } catch (Throwable t){
                t.printStackTrace();
        }Thanks in advance.

    Three things you can always count on in life: Death, Taxes, and AndrewThompson64 telling people to post an SSCCE. =)
    Just poking fun.
    Anyways, this problem has gone from probably-should-deal-with-soon to critical issue. Here is the SSCCE to illustrate the problem. NOTE: My client is using Windows and I am using Windows, so how this acts on Linux/Mac isn't important to me. Also, a few of my client's machines are not well equipped (512 MB RAM), so they have agreed to up their hardware a bit.
    But the big problem, on my end, is that disposed windows DO NOT free up resources once disposed. My program is very data-heavy. I have considered grabbing less data from the database but this would mean the program would have to go to the database more often. The ultimate dilemma of time vs space, essentially.
    To explain the SSCCE: There is a main window with a button. If you click the button, it launches another window with a String array that is 500,000 items large (to simulate a lot of data), and a JList to view those strings. Closing the data-heavy child window does not free up the memory that it uses, and if you launch a bunch of the child windows in the same program instance (close each child before launching a new one) then you will see the amount of memory piling up.
    Am I doing something wrong? Has anyone else experienced similar problems? Does anyone have suggestions? Thank you.
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    * @author Ryan
    public class MemoryLeak {
        public static void main(String[] args) {
            // Launch Base Frame
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new BaseFrame().setVisible(true);
    class BaseFrame extends JFrame{
        public BaseFrame() {
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setPreferredSize(new Dimension(300,300));
            JPanel panel = new JPanel();
            panel.setLayout(new FlowLayout(FlowLayout.CENTER, 150, 5));
            JButton button = new JButton("Launch Data-Heavy Child");
            // JButton will launch Child Frame
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    java.awt.EventQueue.invokeLater(new Runnable() {
                        public void run() {
                            // Notice no references to ChildFrame, period.
                            new ChildFrame().setVisible(true);
            panel.add(button);
            add(panel);
            pack();
    class ChildFrame extends JFrame{
        public ChildFrame() {
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            setPreferredSize(new Dimension(300,600));
            JPanel panel = new JPanel();
            panel.setLayout(new FlowLayout());
            // Simulate lots of data.
            String[] dataArr = new String[500000];
            for(int i = 0; i < dataArr.length; i++) {
                dataArr[i] = "This is # " + i;
            // Something to display the data.
            JList list = new JList(dataArr);
            JScrollPane scrollPane = new JScrollPane(list);
            scrollPane.setPreferredSize(new Dimension(200, 550));
            panel.add(scrollPane);
            add(panel);
            pack();
    }

  • Error: out of memory during render

    Hi,
    I am attempting to write a non-self contained quicktime movie from a sequence in FCP 6.03. The sequence was originally edited in AIC 720p, then onlined to 8 bit uncompressed via the .m2v files.
    When rendering I receive an "error: out of memory" message.
    I am wondering what might have caused this, as I have not experienced it before. I have done a search within mac forums, but none of the threads I found seemed to address my specific issue.
    Any thoughts??
    Thanks,
    -Tom

    Onlined to 8 bit uncompressed SD? or HD?
    You likely have a corrupted media file involved. It's usually the same percentage in from the head of the sequence, as the failure is reported... i.e, the failure is reported after 50% complete? then look half way into your sequence, and re create or re capture that area of the sequence.
    Jerry

  • Regarding memory allocation & deallocation of memory during portal access.

    Dear  Experts,
    Please help me with the below simple query.
    I am working on webydnpro abap for develpment. Lets suppose, If i have 2 links/applications in sap portal , both are individual sap webdynpro components. If i click 1st link/application in portal, then it will call the url of web dynpro abap component. If i click 2nd link immediately after 1st link, then it navigates and opens the 2nd application. But the memory is still open for 1st application as well as 2nd application. So the load is getting increased though the user may acess the application or not .
    So could anyone suggest on what should be done, for terminating the memory allocation of 1st application while accessing 2nd application and vice versa.
    Regards,
    Murali.

    I can't offer much in the way of details, but you might want to investigate USBTMC (USB Test and Measurement Class). With a driver written to this spec, you use VISA commands to the USB instrument in exactly the same manner as a GPIB device (i.e. VISA Write "*IDN?", VISA Read "response"). Drivers that implement this are much easier to use than exposing USB Raw. This will take more work on your end but will end up with greater customer satisfaction. This is the route we're taking with some instruments developed for internal use. They may never be commercially released but the current customer (me), is very happy. The developer started by googling USBTMC and went on from there.

Maybe you are looking for