Memory not released on close

Ever since jupdating to CS3 5.03, When I close down InDesign, about 30% of the it doesn't want to start up again and I have to go into Task Manager's "processes"( Not "applications," since it doesn't show there) and delete InDesign. Then it starts and works okay. This is getting annoying. What can be the cause?

Jim,
I don't think this is ID directly causing a problem, but some other interaction. I'm using 5.0.3 on XP pro SP2 and the exe disappears from processes about 2 or 3 seconds after close.
What version of Windows are you running?
Peter

Similar Messages

  • Memory not released on disconnections

    Hi,
    We are developing a pro*C++ application to connect to an Oracle 8i database running in Windows 2000 . The application will run in HP-UX. When the application try to connect to the database, either the connection fails or successes, a memory segment is allocated to the connection, and even when we do a rollback release before the disconnection, the resources allocated are not released, so the memory allocated to the application grows without a limit (every 60 connections it takes 128 kb).
    We´ve tried with a rollback/commit release before every disconnection (depending on the failure or success of the associated processes), analising the tnsnames parameters to avoid any waiting time, increasing the timer period between connection tests, but the memory is not being released after disconnections... any idea about what is happening? why even when the connection with the database is not possible there is any memory allocated to it? how could we release it? do you know how to test that the database/listener are alive so the connection is possible, other than try to connect and examine the possible error messagges?
    Thanks a lot!
    Ana

    Jim,
    I don't think this is ID directly causing a problem, but some other interaction. I'm using 5.0.3 on XP pro SP2 and the exe disappears from processes about 2 or 3 seconds after close.
    What version of Windows are you running?
    Peter

  • LR 2.3RC - Memory not released from Develop

    I am running 2.3RC under Windows XP. It's going fine but it still has a memory issue that I observed under 2.2.
    After going from Library Grid to Develop, then going back to Grid without doing any actions in Develop (actually, it doesn't matter whether you do anything or not), I see approximately an extra 180M in the VM size in Windows Task Manager. If I then go into Print the VM size stays about the same - about 180M bigger than it should be.
    However, if instead, once I return to Grid from Develop, I then use the arrow key and select another image, the memory is released. I can then go back to the original image and the memory does not increase. Then I can go to Print and, once again, the memory does not increase (some minor change - in fact, on my machine, it goes down!).
    Looks like as long as the original image is selected, memory from Develop is not being released. As I said at the outset, this is not new in 2.3RC - it also happened in 2.2.
    Also - no local adjustments were or have been made to the image in question.
    Anyone else see this on their machines?
    Selby Shanly

    Ian and Simon - you are correct, it is not a leak. Please note that is 180M - not 180K.
    Of course, as users, we simply don't know whether or not it is cached information that actually gets reused, or just a mistake.
    The Print Spooler under XP takes a good chunk of memory - why fight for it with LR? What about Photoshop? Often the next thing I do after Develop is go to PS to do soft proofing. PS could use that memory.
    The question to Adobe is whether or not this is an oversight. If it is then they alone are in the position to evaluate the risks of changing the code - it might be utterly trivial. If it is deliberate and provides efficiencies then at least it would be interesting to know!
    Even with the size of current machines, 180M of memory (YMMV) is still not something to use up lightly for no benefit. And for users who are tight on memory and at the knee of the performance curve, it might make a noticable difference.
    But all of this is speculation on my part - let's see what Adobe says.
    I do appeciate the comments. Thanks.
    Selby

  • Dynamic memory not released to host

    Dear Techies,
    Ours is a small Hyper V virtual server infrastructure with three DELL power-edge physical hosts(Windows server 2012 Datacenter) and around 15 virtual machines running on top of it. The hosts are added to fail-over cluster. Each host has 95 GB RAM. All the
    VMs are running Windows server 2012 standard edition.
    We have installed terminal services(TS licensing, TS connection broker, TS session host) in four VMs with the following dynamic memory settings:
    Start-up RAM : 2048 MB
    Minimum RAM : 2048 MB
    Maximum RAM : 8192 MB
    Below mentioned applications are configured in the server:
    Nova Application Installed
    SQL Developer Tool is Configured (ODBC Connection established for Database communication)
    FTPs communication allowed for File Transfer
    McAfee Agent is configured (Virus Scanner)
    Nimsoft Robot Agent Configured – Monitoring
    Terminal Service
    Enabled Multiple terminal sessions based on customer requirement
    BGinfo tool configured through group policy for customized desktop background
    The average memory utilization in the terminal servers are 3.6 GB. As per dynamic allocation the maximum RAM requirement/allocation till date is 4GB. As seen in Hyper V console, the current RAM demand is 2300 MB and assigned memory is 2800 MB.
    However, the earlier assigned RAM in the server is ballooned/faked to the VM as driver locked memory. This is by design. Despite the memory being released back to the host, the server still shows up the 4Gb which makes the memory utilization report from
    monitoring tools look 80% (3.2 GB out of 4 GB).
    As a result, the memory utilization report is always based on the current dynamically allocated RAM and not calculated based on the maximum assigned RAM(8GB in this case). To make it clear: If the
    currently assigned RAM is 4Gb and utilization is 3.2 GB the utilization % is reported as 80%. However, if calculated in accordance with maximum RAM capacity of the server it would be 40% ((3.2/8)*100).
    Is there any way to release the driver locked memory from the VM.?
    Regards, 
    Auditya N

    I am not really clear on the point of your question.
    Allocated RAM is what is currently in use / allocated to a VM out of the physical RAM pool.  It is Demand + Buffer.  The demand is based on the applications in the VM and what they think they need and how efficiently they return unused memory
    to the machine.  This has nothing to do with in-application paging (which happens a lot with Terminal Servers).
    So yes, the memory utilization is accurate in relation to physical RAM utilization.
    Dynamic Memory is about efficiency, not about over-allocation.  Hyper-V can never give VMs more RAM than is in the physical RAM pool.  The VMs can be configured to have more RAM than is in the physical RAM pool - but the VMs will hit the top of
    the pool and not be allowed to have any more.  There is no ballooning or paging to disk.
    So, you maximum allocated could go beyond what is possible.  But that would mean that your utilization would be artificially low if this was used in the calculation.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Interface operator : Memory not released

    Hello,
    In the interface operator provided by Ni “Full-Featured \ CVI”,
    it would seem that the memory is not released correctly.
    By adding the
    following lines of codes at the end of the hand, one realizes that the
    number of block and byte are not to 0.
    #ifdef _CVI_DEBUG_
        unsigned int
    NbByte;
        unsigned int NbBlock;
        CVIDynamicMemoryInfo (“Fine of the Hand”,
    &NbBlock, &NbByte, DYNAMIC_MEMORY_SHOW_ALLOCATED_MEMORY);
     #endif
    A priori that comes from the function:
    errChk
    (TS_LoadMenuBarResourceStrings (gMainWindow.engine, GetPanelMenuBar
    (gMainWindow.panel), 0, “TSUI_OI_MAIN_PANEL”, errMsg));
    In spite of my
    research, I do not manage to solve the problem.
    Somebody would have it
    the solution or then a track to be exploited.
    Thank you in advance for
    your assistance

    Hello Dave.
    I found this KB for your problem.
    I hope it will help you.
    Let me know if it's ok for you.
    Have a nice day.
    Regards.
    Romain D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    NIDays 2010 : Conférence mondiale de l'instrumentation virtuelle
    >>Détails et Inscription<<

  • Memory not released using dbms_xmldom. free_document()

    Hi:
    I'm using Oracle 10.2.0 under Windows 2003 server 32 bits (Oracle Dedicated Connection)
    I have a PL/SQL stored function that builds a Dom Document from the result of a SQL query and at the end store its content in a Clob variable which is returned to the caller. I’m using the DBMS_XMLDOM package to manipulate the Dom document and at the end I make a call the dbms_xmldom.free_document (domDoc) to free the resources associated to the Dom Doc.
    For some reason when I run several times the PL/SQL stored function I’ve notice that the PGA keeps growing and is never released even when I call "dbms_xmldom.free_document"
    Here is the pl/sql code:
    FUNCTION  sfLerColCenCarga (pId IN INTEGER, pTipoSerie IN VARCHAR2) RETURN CLOB AS
                CURSOR cCenCarga IS
                  SELECT CgCen.IdCgCen, CgCen.IdX, CgCen.Nom, CgCen.TpS, CgCen.EtI, CgCen.EtF,
                         CgCen.Fnt, CgCen.DtR, CgCen.DtA, CgCen.Arq, CgCen.Obs,
                         PeCad.IdX PeCadIdX
                    FROM CgCen, PeCad
                   WHERE PeCad.IdPeCad = CgCen.IdPeCad
                     AND CgCen.IdCgCen = DECODE(pId, NULL, CgCen.IdCgCen, pId)
                   ORDER BY CgCen.DtA DESC;
                regCenCarga cCenCarga%ROWTYPE;
                -- Atributos para manipular o XML
                domDoc                      DBMS_XMLDOM.DOMDocument;
                noRaiz                      DBMS_XMLDOM.DOMNode;
                noObjeto                    DBMS_XMLDOM.DOMNode;
                noColecaoObjeto             DBMS_XMLDOM.DOMNode;
                e                           DBMS_XMLDOM.DOMElement;
                xmlData                     CLOB;
            BEGIN
                dbms_session.free_unused_user_memory;
                domDoc := DBMS_XMLDOM.newDOMDocument;
                noRaiz := DBMS_XMLDOM.makeNode(domDoc);
                e := DBMS_XMLDOM.createElement(domDoc, 'ColecaoCenCarga');
                noColecaoObjeto := DBMS_XMLDOM.appendChild(noRaiz, DBMS_XMLDOM.makeNode(e));
                OPEN cCenCarga;
                LOOP
                    FETCH cCenCarga INTO regCenCarga;
                    EXIT WHEN cCenCarga%NOTFOUND;
                    e := DBMS_XMLDOM.createElement(domDoc, 'CenCarga');
                    -- Define valores dos atributos do elemento
                    DBMS_XMLDOM.setAttribute (e, 'Id', regCenCarga.IdCgCen);
                    DBMS_XMLDOM.setAttribute (e, 'IdX', TRIM(regCenCarga.IdX));
                    DBMS_XMLDOM.setAttribute (e, 'Nom', TRIM(regCenCarga.Nom));
                    DBMS_XMLDOM.setAttribute (e, 'Fnt', TRIM(regCenCarga.Fnt));
                    DBMS_XMLDOM.setAttribute (e, 'TpS', regCenCarga.TpS);
                    DBMS_XMLDOM.setAttribute (e, 'EtI', TRIM(regCenCarga.EtI));
                    DBMS_XMLDOM.setAttribute (e, 'EtF', TRIM(regCenCarga.EtF));
                    DBMS_XMLDOM.setAttribute (e, 'Aut', TRIM(regCenCarga.PeCadIdX));
                    DBMS_XMLDOM.setAttribute (e, 'Org', 'X');
                    DBMS_XMLDOM.setAttribute (e, 'OrgX', 'Externa');
                    DBMS_XMLDOM.setAttribute (e, 'DtR', TO_CHAR(regCenCarga.DtR,'dd/mm/yyyy HH24:MI'));
                    DBMS_XMLDOM.setAttribute (e, 'DtA', TO_CHAR(regCenCarga.DtA,'dd/mm/yyyy HH24:MI'));
                    DBMS_XMLDOM.setAttribute (e, 'Arq', TRIM(regCenCarga.Arq));
                    DBMS_XMLDOM.setAttribute (e, 'Obs', TRIM(regCenCarga.Obs));
                    noObjeto := DBMS_XMLDOM.appendChild(noColecaoObjeto, DBMS_XMLDOM.makeNode(e));
                END LOOP;
                CLOSE cCenCarga;
                dbms_lob.createTemporary(xmlData, TRUE, DBMS_LOB.CALL);
                DBMS_XMLDOM.writeToClob(domDoc, xmlData);
                DBMS_XMLDOM.freeDocument(domDoc);
                RETURN xmlData;
            END;Could somebody please tell me if I should call some other method to release my memory or is it a leak in the DBMS_XMLDOM package?
    Thanks in advance,
    André Granville

    You left off the final number in your version, but I'm going to assume it is .1 - .3. You are running into a bug in Oracle.
    http://anononxml.blogspot.com/2010/09/memory-leaks.html
    I would suggest upgrading to .4 or .5 (should be out for all versions) as the first step to fix your problem.

  • Memory not released using DBMS_XMLPARSER

    Hello,
    I'm using Oracle 9.2.0.3 under HPUX 11 (64 bit)
    I want to process XML messages stored as CLOB in a table
    When I run several times the following piece of code I notice that the PGA keeps growing and is never released even when I call "dbms_session.free_unused_user_memory"
    Here is the code
    DECLARE
    v_parser DBMS_XMLPARSER.PARSER := NULL ;
    v_msg CLOB := NULL ;
    CURSOR C_xml IS
    SELECT myXml
    FROM XML_TABLE ;
    PROCEDURE processXml (
    p_Xml IN CLOB,
    p_parser IN DBMS_XMLPARSER.PARSER )
    IS
    v_doc DBMS_XMLDOM.DOMDOCUMENT := NULL ;
    v_DocElt DBMS_XMLDOM.DOMElement := NULL ;
    BEGIN
    DBMS_XMLPARSER.parseClob(p_parser, p_Xml) ;
    v_doc := DBMS_XMLPARSER.getDocument(p_parser) ;
    DBMS_XMLPARSER.freeParser(p_parser) ;
    v_DocElt := DBMS_XMLDOM.getDocumentElement(v_doc) ;
    v_DocElt := NULL ;
    DBMS_XMLDOM.freeDocument(v_doc) ;
    v_doc := NULL ;
    END processXml ;
    BEGIN
    v_parser := DBMS_XMLPARSER.newParser ;
    DBMS_XMLPARSER.setValidationMode(v_parser, FALSE) ;
    FOR R_xml IN C_xml LOOP
    processXml(R_xml.myXml, v_parser) ;
    END LOOP ;
    v_parser := NULL ;
    END ;
    I checked the v$pgastat and v$mystat views I noticed that the memory is never released and that the freable_pga_memory stay at 0.
    Could you please tell me if I should call some other method to release my memory or is it a leak in the DBMS_XML* packages
    Thanks a lot
    David Coste

    I ran this in 10g with the following results...
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> set long 100000
    SQL> --
    SQL> select resource_monitor.gather_statistics()
    2 from dual
    3 /
    RESOURCE_MONITOR.GATHER_STATISTICS()
    <statisticsSnapshot>
    <operatingSystemPID>2880</operatingSystemPID>
    <databasePID>18</databasePID>
    <databaseSID>159</databaseSID>
    <snapshotTimestamp>26-MAY-04 04.45.13.576000000 PM</snapshotTimestamp>
    <tempSpaceUsed>257949696</tempSpaceUsed>
    <PGA>
    <Current>498252</Current>
    <Maximum>563788</Maximum>
    <Used>403610</Used>
    <Allocated>730298</Allocated>
    RESOURCE_MONITOR.GATHER_STATISTICS()
    <Freeable>0</Freeable>
    <Max>730298</Max>
    </PGA>
    <UGA>
    <Current>152184</Current>
    <Maximum>217648</Maximum>
    </UGA>
    <LOBS/>
    </statisticsSnapshot>
    SQL> --
    SQL> DECLARE
    2 aParser DBMS_XMLPARSER.PARSER ;
    3 aDoc DBMS_XMLDOM.DOMDOCUMENT ;
    4 aElement DBMS_XMLDOM.DOMELEMENT ;
    5 myXml CLOB :=
    6 '<?xml version=''1.0'' encoding=''UTF-8''?>
    7 <TEST>
    8 <subtest name="dummy">12</subtest>
    9 <subtest name="dummy">12</subtest>
    10 <subtest name="dummy">12</subtest>
    11 <subtest name="dummy">12</subtest>
    12 <subtest name="dummy">12</subtest>
    13 <subtest name="dummy">12</subtest>
    14 <subtest name="dummy">12</subtest>
    15 <subtest name="dummy">12</subtest>
    16 <subtest name="dummy">12</subtest>
    17 <subtest name="dummy">12</subtest>
    18 <subtest name="dummy">12</subtest>
    19 <subtest name="dummy">12</subtest>
    20 <subtest name="dummy">12</subtest>
    21 <subtest name="dummy">12</subtest>
    22 <subtest name="dummy">12</subtest>
    23 <subtest name="dummy">12</subtest>
    24 <subtest name="dummy">12</subtest>
    25 <subtest name="dummy">12</subtest>
    26 <subtest name="dummy">12</subtest>
    27 <subtest name="dummy">12</subtest>
    28 <subtest name="dummy">12</subtest>
    29 <subtest name="dummy">12</subtest>
    30 <subtest name="dummy">12</subtest>
    31 <subtest name="dummy">12</subtest>
    32 <subtest name="dummy">12</subtest>
    33 <subtest name="dummy">12</subtest>
    34 <subtest name="dummy">12</subtest>
    35 <subtest name="dummy">12</subtest>
    36 <subtest name="dummy">12</subtest>
    37 <subtest name="dummy">12</subtest>
    38 <subtest name="dummy">12</subtest>
    39 <subtest name="dummy">12</subtest>
    40 <subtest name="dummy">12</subtest>
    41 <subtest name="dummy">12</subtest>
    42 <subtest name="dummy">12</subtest>
    43 <subtest name="dummy">12</subtest>
    44 <subtest name="dummy">12</subtest>
    45 <subtest name="dummy">12</subtest>
    46 <subtest name="dummy">12</subtest>
    47 <subtest name="dummy">12</subtest>
    48 <subtest name="dummy">12</subtest>
    49 </TEST>' ;
    50 BEGIN
    51 aParser := DBMS_XMLPARSER.newParser ;
    52 FOR i IN 1..5000 LOOP
    53 DBMS_XMLPARSER.parseClob(aParser, myXml) ;
    54 aDoc := DBMS_XMLPARSER.getDocument(aParser) ;
    55 aElement := DBMS_XMLDOM.getDocumentElement(aDoc) ;
    56 aElement := NULL ;
    57 DBMS_XMLDOM.freeDocument(aDoc) ;
    58 aDoc := NULL ;
    59 END LOOP ;
    60 DBMS_XMLPARSER.freeParser(aParser) ;
    61 aParser := NULL ;
    62 END ;
    63 /
    PL/SQL procedure successfully completed.
    SQL> show errors
    No errors.
    SQL> --
    SQL> select resource_monitor.gather_statistics()
    2 from dual
    3 /
    RESOURCE_MONITOR.GATHER_STATISTICS()
    <statisticsSnapshot>
    <operatingSystemPID>2880</operatingSystemPID>
    <databasePID>18</databasePID>
    <databaseSID>159</databaseSID>
    <snapshotTimestamp>26-MAY-04 04.45.21.487000000 PM</snapshotTimestamp>
    <tempSpaceUsed>257949696</tempSpaceUsed>
    <PGA>
    <Current>2136652</Current>
    <Maximum>2202188</Maximum>
    <Used>1752054</Used>
    <Allocated>2958522</Allocated>
    RESOURCE_MONITOR.GATHER_STATISTICS()
    <Freeable>0</Freeable>
    <Max>2958522</Max>
    </PGA>
    <UGA>
    <Current>1199608</Current>
    <Maximum>1265072</Maximum>
    </UGA>
    <LOBS>
    <Cached>0</Cached>
    <nonCached>0</nonCached>
    <Abstract>0</Abstract>
    RESOURCE_MONITOR.GATHER_STATISTICS()
    </LOBS>
    </statisticsSnapshot>
    SQL> quit
    Note I had to move freeParser() call outside of the loop otherwise the code failed in the second iteration...
    The definition of gather_statistics follows...
    alter session set current_schema = SYS
    create or replace package resource_monitor
    authid definer
    as
    function gather_statistics return XMLType;
    function get_Lob_Stats(stats XMLTYPE) return XMLType;
    function get_Time(stats XMLTYPE) return timestamp;
    procedure initializeTimer;
    function getElapsedTime return INTERVAL DAY TO SECOND;
    end;
    show errors
    create or replace package body resource_monitor
    as
    START_TIME timestamp;
    function gather_statistics
    return XMLType
    as
    time timestamp;
    ORA_PID number;
    ORA_SID number;
    OS_PID number;
    SESSION_PGA_MEMORY number;
    SESSION_PGA_MEMORY_MAX number;
    SESSION_UGA_MEMORY number;
    SESSION_UGA_MEMORY_MAX number;
    PGA_USED_MEMORY number;
    PGA_ALLOC_MEMORY number;
    PGA_FREEABLE_MEMORY number;
    PGA_MAX_MEMORY number;
    CACHE_LOBS number;
    NO_CACHE_LOBS number;
    ABSTRACT_LOBS number;
    TEMP_FILE_USAGE     number;
    statistics XMLType;
    begin
    select distinct SID
    into ORA_SID
    from V$MYSTAT;
    select PID,SPID,
    PGA_USED_MEM,PGA_ALLOC_MEM,PGA_FREEABLE_MEM,PGA_MAX_MEM
    into ORA_PID, OS_PID,
    PGA_USED_MEMORY, PGA_ALLOC_MEMORY, PGA_FREEABLE_MEMORY, PGA_MAX_MEMORY
    from V$PROCESS p, V$SESSION s
    where p.addr = s.paddr
    and s.sid = ORA_SID;
    select value
    into SESSION_PGA_MEMORY
    from v$mystat st,v$statname n
    where n.name = 'session pga memory'
    and n.statistic# = st.statistic#;
    select value
    into SESSION_PGA_MEMORY_MAX
    from v$mystat st,v$statname n
    where n.name = 'session pga memory max'
    and n.statistic# = st.statistic#;
    select value
    into SESSION_UGA_MEMORY
    from v$mystat st,v$statname n
    where n.name = 'session uga memory'
    and n.statistic# = st.statistic#;
    select value
    into SESSION_UGA_MEMORY_MAX
    from v$mystat st,v$statname n
    where n.name = 'session uga memory max'
    and n.statistic# = st.statistic#;
    begin
    select l.cache_lobs, l.nocache_lobs, l.abstract_lobs
    into CACHE_LOBS, NO_CACHE_LOBS, ABSTRACT_LOBS
    from v$temporary_lobs l, v$session s
    where s.audsid = SYS_CONTEXT('USERENV', 'SESSIONID')
    and s.sid = l.sid;
    exception
    when others then
    null;
    end;
    select sum(USER_BYTES)
    into TEMP_FILE_USAGE
    from DBA_TEMP_FILES;
    select systimestamp
    into TIME
    from dual;
    select xmlElement
         "statisticsSnapshot",
    xmlForest
         OS_PID as "operatingSystemPID",
         ORA_PID as "databasePID",
         ORA_SID as "databaseSID",
    TIME as "snapshotTimestamp",
    TEMP_FILE_USAGE as "tempSpaceUsed"
    xmlElement
    "PGA",
    xmlForest
    SESSION_PGA_MEMORY as "Current",
    SESSION_PGA_MEMORY_MAX as "Maximum",
    PGA_USED_MEMORY as "Used",
    PGA_ALLOC_MEMORY as "Allocated",
    PGA_FREEABLE_MEMORY as "Freeable",
    PGA_MAX_MEMORY as "Max"
    xmlElement
    "UGA",
    xmlForest
    SESSION_UGA_MEMORY as "Current",
    SESSION_UGA_MEMORY_MAX as "Maximum"
    xmlElement
    "LOBS",
    xmlForest
    CACHE_LOBS as "Cached",
    NO_CACHE_LOBS as "nonCached",
    ABSTRACT_LOBS as "Abstract"
    into statistics
    from dual;
    statistics := statistics.extract('/');
    statistics := xmltype(xmltype.getCLOBVal(statistics));
    return statistics;
    end;
    function get_Lob_Stats(stats XMLTYPE) return xmltype
    as
    val xmltype;
    begin
    return stats.extract('/statisticsSnapshot/LOBS');
    end;
    function get_Time(stats XMLTYPE) return timestamp
    as
    begin
    return to_Timestamp
    stats.extract('/statisticsSnapshot/snapshotTimestamp/text()').getStringVal()
    end;
    procedure initializeTimer
    as
    begin
    START_TIME := sysTimeStamp;
    end;
    function getElapsedTime return interval DAY TO SECOND
    as
    END_TIME timestamp;
    ELAPSED_TIME INTERVAL DAY (2) TO SECOND (6);
    begin
    END_TIME := sysTimeStamp;
    ELAPSED_TIME := END_TIME - START_TIME;
    START_TIME := sysTimeStamp;
    return ELAPSED_TIME;
    end;
    end;
    show errors
    grant execute on resource_monitor to public
    create or replace public synonym resource_monitor for resource_monitor
    desc resource_monitor
    set pages 50
    set long 2048
    select resource_monitor.gather_statistics
    from dual
    spool off
    Can you run this and see what you get. For 9.2.x you'll need to remove the references to abstract_lobs...

  • Vector renewed but memory not released

    Hi,
    Please see the following code:
    Vector v = new Vector(10000000);
    // from windows task manager, it seems it takes 40 Mb of memory.
    // there is a need to do the following after some code
    v = new Vector(10000000);
    // now the memory taken is around 80 Mb
    It would be useful if the program releases the earlier memory of 40 Mb. May be it does not work that way? Any thoughts are welcome.
    Regards
    Chandra.

    Thank you all folks. Each suggestion helps me understand vectors and memory in a better way than before. I have noted setting the heap and also the 'clear' function.
    When I repeat the code several times, it seems that initially there is an increase in memory up to a certain limit (in my case it is 128 Mb) but there is no increase after that, how many times I repeat the code. (Repeating the code is to find when the out of memory problem occurs). It works okay for now.
    Thanks to all again.
    Regards
    Chandra.

  • Internal memory not released after moved to SD card

    After installed from market, it was first it on the internal memory. I moved it to SD card and noticed the Manage applications page show the size changed to 128KB. But when I go to Settings -> Storage, the available space has not changed. It is still 12 - 13MB less than what is was before install Firefox Mobile.
    Has any one else got the same problem?

    A restart solved this problem. After restart the available space amount is correct.

  • BCP memory not releasing.

    Hi, I am running BCP command to copy the data from a file to the database in a while loops. as the number of iterations goes up, the memory usage is grown to the extreme and it consumed all my 64 GB space. My system is crashed. 
    How could I release the memory or How could I force the SQL Server to release the memory used by the BCP
    declare @currentIteration int
    set @currentIteration = 1
    while @currentIteration <=5000
    begin
    exec master..xp_cmdShell 'bcp MyDB.dbo.Invoice01 in "D:\DataFiles\DataToDump_100.txt" -e"D:\DataFiles\error100.txt" -b 100  -t"|" -T -c'
    end

    Hello,
    Could you try to use bcp with the tablock hint instead?
    http://msdn.microsoft.com/en-us/library/ms162802.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SAPFactory  (release or close connections)

    Hello,
    I have problems with a page designed in Visual Composer. all the datasources in our Visual Composer Model are SAPFactory, that indicate the model is extracting data from SAP backend systems only.
    That means the model need a connection available for each backend
    to extract the data. When the available connections to backend are busy the information does not appears in the page, this is a normal system behavior.  In this case i need to increase the number of available connections to backend and also the lifetime of those connections, to do that, i  need:
    1. Start a session in the Visual Administrator (with Reflexion tool).
    2. I enter to the next path:
    Server(N) --> Services  --> Connector Container  --> sap.com/com.sapportals.connectors.sap --> SAPFactory -->  Managed Connection Factory -->  Connection Definition.
    3. In the option Maximum Connections, i increased one the connections.
    4. I save the changes.
    When i do this or when i restart the Portal the problem is solved.
    I need to do it automatically, maybe with a program, which runs every period of time, to release or close the SAPFactory connections. How can i do this?????
    Exist any api or code in java to do this??????
    How can i release or close a SAPFactory connection with a program?????
    Exist another way to do it??????
    Thanks!!!!
    Giovanni Bello

    Hello Giovanni,
    did You solve Your problem?
    I've exactly the same issue...it seems to be that backend connections are not released when close Iview build with Visual composer.
    Thanks in advance.
    Tiziano Cracco

  • XML,CLOB  AND MEMORY : CONSUMED BUT NOT RELEASED !!!

    Hi,
    I'm working with XMLGEN Package and XSLT Processor to produce XML Document on Oracle 8.1.7.3 server, I use 9i XML and Java packages.
    I'm facing the following BIG MEMORY problem :
    Environment : I must generate an XML parsed with an XSL document of 80Mo (nearly 22 000 rows),
    as XMLGEN is on DOM parsing method, I extract my XML by 500 Rows and I loop until 22 000 rows. I use DBMS_JOB with jobs who read and execute export each minute.
    The algorithme is :
    keeprow=22000
    while keeprow>0
    Create 3 clob (DBMS_LOB Package) : one for XSL Sheet, one for XML and one for result
    GetXML (XMLGEN Package)
    Transform in XSL (XSL Processor)
    Write to disk (UTL_FILE Package)
    Free the 3 Clob ((DBMS_LOB Package))
    keeprow =keeprow-500
    loop
    The problem : The process start at 250Mo ot total memory and END at 1000 Mo of used memory and NEVER RELEASE 1 ko of memory.
    So often I get a JavaOutOfMemoryError (I've allocated 1Go Ram to my JAVA process).
    Any help will be very very appreciated !
    My derived problem is 22 000 rows is not enough I've some export of 200 000 rows to do (And I cannot allocate 10 Go of RAM !!!)
    Following My PL/SQL Code.
    Regards
    Fred
         PROCEDURE DO_EXPORT_XML(
                   P_JOB_ID JOB_PARAMETRE.JOB_ID%TYPE,
                   P_JOB_ID_ORDRE JOB_PARAMETRE.JOB_ID_ORDRE%TYPE,
                   P_CLE_UP UPLOADREQ_TEMP.ID%TYPE,
                   P_LOAD_OR_DELOAD VARCHAR2)
              IS
              L_FILE_NAME JOB_PARAMETRE.JOB_FILE_NAME_DEST%TYPE;
              L_REP_NAME JOB_PARAMETRE.JOB_REP_NAME_DEST%TYPE;
              L_FILE_STYLESHEET JOB_PARAMETRE.JOB_STYLESHEET%TYPE;
              L_VERSION_PDM JOB_PARAMETRE.JOB_VPDM%TYPE;
              P_SELECT varchar2(4000):='';
              P_CURSOR varchar2(4000):='';
         l_filehandler_out UTL_FILE.FILE_TYPE;
              --Variable pour le traitement par lot de 500
              L_NBROW_TODO_ATONCE number := 500;
              L_NBROW_MIN number := 1;
              L_NBROW_MAX number := -1;
              L_NBROWKEEPTODO number := -1;
              xslString CLOB := null;
              res number default -1;
              xmlString CLOB := null;
              li_ret number := 0;
              li_faitle number := 0;
              amount integer:= 255;
              li_loop integer := 0;
              charString varchar2(255);
              ls_deload varchar2(255) default '';
              ls_SQL varchar2(4000) default '';
              ls_temp_file varchar2(255) default '';
              text_file_dir varchar2(32) := 'e:\temporarydir';
              l_par xmlparser.parser;
         l_xml xmldom.domdocument;
         l_pro xslprocessor.processor;
         l_xsl xslprocessor.stylesheet;
              docfragnode xmldom.DOMNode;
              docfrag xmldom.DOMDocumentFragment;
              l_parsedclob clob := null;
              l_amount binary_integer := 32767;
              l_ligne varchar2(32767);
              l_offset number default 1;
              l_pos number default null;
              l_pos2 number default null;
              l_lobsize number default null;
              l_memsize number default 1073741824; --1024 Mo
              l_mempipo number default 0;
              type rc is ref cursor;
              l_cursor rc;
              cursor TEMPLATE is select UNSPSC,1 as NB from UPLOADREQ_TEMP where 1=2;
              c1rec TEMPLATE%rowtype;          
              BEGIN
              l_mempipo:=setmaxmemorysize(l_memsize);
              dbms_lob.createtemporary(l_parsedclob, true, dbms_lob.session);
              dbms_lob.createtemporary(xmlstring, true, dbms_lob.session);
              --return the good select
              GET_SELECT_TO_EXPORT_XML(P_JOB_ID , P_JOB_ID_ORDRE , P_CLE_UP , P_SELECT,P_CURSOR, P_LOAD_OR_DELOAD);
                        SELECT JOB_FILE_NAME_DEST,JOB_REP_NAME_DEST,JOB_STYLESHEET
                        INTO L_FILE_NAME,L_REP_NAME,L_FILE_STYLESHEET
                        FROM JOB_PARAMETRE
                        WHERE JOB_ID =P_JOB_ID AND JOB_ID_ORDRE=P_JOB_ID_ORDRE;
                        l_filehandler_out := UTL_FILE.FOPEN(text_file_dir, L_FILE_NAME, 'w',l_amount);
                        --Return XSL Sheet in a clob : cause of memory consumed  but not released
                   xslString := METACAT.load_a_file( 1,L_FILE_STYLESHEET);     
                        open l_cursor for P_CURSOR;
    LOOP
                   fetch l_cursor into c1rec;
                   exit when l_cursor%notfound;
                             L_NBROW_MIN := 1;
                             L_NBROW_MAX := 0;
                             L_NBROWKEEPTODO:=c1rec.NB;
                             LOOP
                             begin
                                  if(L_NBROWKEEPTODO > L_NBROW_TODO_ATONCE) THEN
                                       begin
                                       L_NBROW_MAX:= L_NBROW_TODO_ATONCE + L_NBROW_MAX;
                                       L_NBROWKEEPTODO:= L_NBROWKEEPTODO - L_NBROW_TODO_ATONCE;
                                       end;
                                  else
                                       begin
                                       L_NBROW_MAX:= L_NBROW_MAX + L_NBROWKEEPTODO;
                                       L_NBROWKEEPTODO:=0;
                                       end;
                                  end if;
                                  --on ouvre le fichier de risultats
                                  ls_SQL:= P_SELECT || ' AND ( ROWNUM BETWEEN ' || L_NBROW_MIN || ' AND ' || L_NBROW_MAX || ' ) and UNSPSC=''' || c1rec.UNSPSC || '''';
                                  ls_temp_file := c1rec.UNSPSC || '_' || L_FILE_NAME;
                                  L_NBROW_MIN:=L_NBROW_TODO_ATONCE + L_NBROW_MIN;
                                  --CAT_AUTOLOAD.JOB_ADD_TRACE (P_JOB_ID,'UPLOAD REQUISITE : Export donnies REQUETE ' || to_char(li_loop), ls_SQL,'',0,0);
                                  xmlgen.resetOptions;
                                  xmlgen.setErrorTag('ERROR_RESULT');
                                  xmlgen.setRowIdAttrName('NAH');
                                  xmlgen.setRowIdColumn('NAH');
                                  xmlgen.setEncodingTag('ISO-8859-1');
                                  xmlgen.useNullAttributeIndicator(false);
                                  if(xmlString is not null) then
                                       dbms_lob.open(xmlString,dbms_lob.lob_readwrite);
                                       l_lobsize:= dbms_lob.Getlength(xmlString);
                                       if(l_lobsize>0) then
                                       dbms_lob.erase(xmlString,l_lobsize,1);
                                       end if;
                                       dbms_lob.close(xmlString);
                                  dbms_lob.freetemporary(xmlString);
                                       dbms_lob.createtemporary(xmlstring, true, dbms_lob.session);
                                  end if;
    --Return XML in a clob : cause of memory consumed  but not released
                                  xmlString := xmlgen.getXML(ls_SQL,0);
                                  l_par := xmlparser.newparser;
                                  xmlparser.parseclob(l_par, xslString);
                                  l_xsl := xslprocessor.newstylesheet(xmlparser.getdocument(l_par),null);
                                  xmlparser.parseclob(l_par, xmlString);
                                  l_xml := xmlparser.getdocument(l_par);
                                  l_pro := xslprocessor.newprocessor;
                                       xslprocessor.showWarnings(l_pro, true);
                                       xslprocessor.setErrorLog(l_pro, text_file_dir || substr(ls_temp_file,0,length(ls_temp_file)-4) || '_logerreur.XML');
                                       if(l_parsedclob is not null) then
                                                 dbms_lob.open(l_parsedclob,dbms_lob.lob_readwrite);
                                                 l_lobsize:= dbms_lob.Getlength(l_parsedclob);
                                                 if(l_lobsize>0) then
                                                 dbms_lob.erase(l_parsedclob,l_lobsize,1);
                                                 end if;
                                                 dbms_lob.close(l_parsedclob);
                                            dbms_lob.freetemporary(l_parsedclob);
                                                 dbms_lob.createtemporary(l_parsedclob, true, dbms_lob.session);
                                       end if;
                        --Return XML Processed with XSL in a clob : cause of memory consumed  but not released
                                  xslprocessor.processxsl(l_pro,l_xsl,l_xml,l_parsedclob);
                                       --release NOTHING
                                  xmlparser.freeparser(l_par);
                                  xslprocessor.freeprocessor(l_pro);
                                                      l_ligne:='';
                                                      l_offset :=1;
                                                      l_pos := null;
                                                      l_pos2 := null;
                                                      if(li_loop=0) then
                                                           begin
                                                                --on ouvre le fichier et on sauve l'entete + les donnies dedans.
                                                                     l_pos:=dbms_lob.instr(l_parsedclob,'</DATA>');
                                                      if ( nvl(l_pos,0) > 0 ) then
                                                                          loop
                                                                          if(l_pos-1>l_amount + l_offset ) then
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_amount,l_offset);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    l_offset:=l_offset+l_amount;
                                                                               else
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_pos-1 -l_offset ,l_offset);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    exit;
                                                                               end if;
                                                                          end loop;
                                                                     else
                                                                          EXIT;
                                                                     end if;
                                                           end;
                                                      else
                                                           --on met les donnies donc on ne repete pas le debut
                                                           begin
                                                                     l_pos:=dbms_lob.instr(l_parsedclob,'<ITEM');
                                                      if ( nvl(l_pos,0) > 0 ) then
                                                                     l_pos2:=dbms_lob.instr(l_parsedclob,'</DATA>');
                                                      if ( nvl(l_pos2,0) > 0 ) then
                                                                          loop
                                                                          if(l_pos + l_amount <= l_pos2 -1 ) then
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_amount,l_pos);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    l_pos:=l_pos +l_amount;
                                                                               else
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_pos2 -1 -l_pos,l_pos);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    exit;
                                                                               end if;
                                                                          end loop;
                                                                          else
                                                                          exit;                                                                      
                                                                          end if;
                                                                     end if;
                                                           end;
                                                      end if;
                                                 li_loop:=li_loop + 1 ;
                                                 --UTL_FILE.FCLOSE(l_filehandler_in);
                                                 JAVA_GC();
                                                 EXIT WHEN L_NBROWKEEPTODO=0;
                                                 Exception
                                                 when others then
                                                      begin
                                                      -- IF(utl_file.is_open(l_filehandler_in)) THEN
                                                      --               utl_file.fclose( l_filehandler_in);
                                                      -- END IF;
                                                      IF(utl_file.is_open(l_filehandler_out)) THEN
                                                                     utl_file.fclose( l_filehandler_out);
                                                      END IF;
                                                      RAISE_APPLICATION_ERROR(-20001,'File with errors');
                                                      end;
                             END;
                             END LOOP;
    END LOOP;
    CLOSE l_cursor;
                        if ( xmlString is not null ) then
                                  dbms_lob.open(xmlString,dbms_lob.lob_readwrite);
                                  l_lobsize:= dbms_lob.Getlength(xmlString);
                                  if(l_lobsize>0) then
                                  dbms_lob.erase(xmlString,l_lobsize,1);
                                  end if;
                                  dbms_lob.close(xmlString);
                                  dbms_lob.freeTemporary( xmlString);
                        end if;
                        if(l_parsedclob is not null) then
                                  dbms_lob.open(l_parsedclob,dbms_lob.lob_readwrite);
                                  l_lobsize:= dbms_lob.Getlength(l_parsedclob);
                                  if(l_lobsize>0) then
                                       dbms_lob.erase(l_parsedclob,l_lobsize,1);
                                  end if;
                                  dbms_lob.close(l_parsedclob);
                                  dbms_lob.freetemporary(l_parsedclob);
                        end if;
                        UTL_FILE.NEW_LINE(l_filehandler_out);
                        l_ligne:='</DATA></CATALOG>';
                        UTL_FILE.PUT(l_filehandler_out,l_ligne);
                        UTL_FILE.FCLOSE(l_filehandler_out);                    
                   EXCEPTION
                   when others then
                             begin
                             IF(utl_file.is_open(l_filehandler_out)) THEN
                                       utl_file.fclose( l_filehandler_out);
                                  END IF;
                             end;     
              END;
    ******************************

    Thank you for the info - I had no idea I was puing myself in danger by cutting it so close.  Since your post I have moved my iphoto library to an external drive and now have 165 GB of space on my HD.  Following this I have 2 questions.
    1.  Since my available HD space was reduced by the size of the photo download it seems logical that the download is somewhere on my HD still.  Is there a place where these photos might be hiding on my HD even though they are not available on the iphoto library?
    2.  I was able to recover the .jpg files which are fine.  I also recovered the .mov files but they have been compromised.  I am hoping I can find the originals still on the HD somewhere.  If not, do you have any suggestions for recovery methods or programs?  I have not used the SD card since the incident so I should be able to attempt another recovery to salvage the .mov files if there is an alternative method/program available.
    Thanks again!

  • PS Touch Android does not release memory when closed.

    I have to force closure with Task Manager on my Samsung Note 2 running JB 4.1. Why and when will it be fixed?

    Hi Ignacio,
    Sorry for the lack of information - I had typed more complete description, but had trouble posting it.
    The app is installed on a Samsung Galaxy Note 2 phone that is running Jellybean 4.1.1.
    The only way I can see to exit the application is by using the "back" soft key under the screen on the right. Some apps have an "exit" choice under the "menu" soft key, but that key is not active with PSTouch.
    I see the same issue with Google Chrome. The menu key is active with this app, but it does not have an "exit" choice.
    With both these apps, I have to go to the "Active Apps" tab of the Task Manager to release memory.
    There is one difference with PS Touch. Google Chrome always starts the same way whether or not I release it's memory. With PS Touch, if I release memory after closing with the back key, the next time I start it I get an initial royal blue screen with the PS Touch icon in the middle followed by a second screen with a menu in the middle titled "New Project From". If I exit at that point, it takes two presses of the back key to first close the menu and then exit the program and return to a home screen. If I do not release memory, the next time I start PS Touch, it goes directly to the second screen, but without the "New Project From" menu.
    I hope this gives you the information you need.
                      Pete

  • Photoshop does not release memory after closing document.

    When I close a large document Photoshop does not release the memory. If I open another document the program is slow and not resposive. If I close out of Photoshop and restart it then load the other document it is quick and responsive again.

    A bit late to the party here but this issue is still live and I can't find anything else on the forum similar to it (apologies if there is).
    Photoshop does not seem to re-use memory it just keep allocating new right up to the limit before the prog crashes (same applies to Fireworks) so any batch/script processing of more than a handful of files is impossible.
    I am Photoshop via Creative Cloud (so I am always updated to your latest release), Windows 7 64k with 8Mb memory and am using Norton Intenet Security 20.3.1.22 which is updated daily.

  • JInternalFrame is closed, but does not release the memory

    Hi,
    I have problem with using of JInternalFrame.
    I create a new internal frame, and close it."setClosed(true);dispose();"
    The frame does not release the memory (after gc the allocated memory is the same)
    Before close I removed all listeners, and closed all reference to other object. (I think so :-) )
    Do You have any idees?
    regards
    G�bor

    Hi,
    I think u will have to release all the associated used objects. or you can also call the finalize() method in order to release the memory.
    Regards,
    Balaji.SN

Maybe you are looking for

  • Error: If statement in RTF template in BI Buplisher

    All, Can some help me to solve the below issue. Please find the code below one which is extracted from the water mark block in RTF template. <?if:(sum(//g_data[fiscal_period=/asset/p_fiscal_period]/q2_op_plan_ytd))>0?><?( sum(//g_data[fiscal_period=/

  • Disfunctional Power Adapter

    I just came back from approximately 2 hours away from my power adapter this evening to find the amber light was still on (not connected to anything). The adapter was plugged into my power bar, so I unplugged it and the amber light flickered out after

  • Save and Exit button

    Hi I want to make a button that commits changes made on the page the button is on and then navigates away to another page. I have tried to set an action on the button matching an action on a page flow. In Internet Explorer it seems to work. The chang

  • 27' Imac Randomly Shutting Off.

    My imac has been randomly shutting off while i'm using it. Here are some console messages and terminal bash of whats going on. Any help would be gladly appriciated. 5/23/11 1:18:17 AM          SubmitDiagInfo[1956]          Cleaning up expired diagnos

  • BBC Radio Player on Q5 BB 10

    Hi any idea when i will be able to get the BBC Radio Player app on my Q%?