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.

Similar Messages

  • 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

  • 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

  • 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

  • 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<<

  • Why does trash appear empty but memory not recovered?

    Moved 30g to trash  then emptied trash (secure empty) and trash bin cleared but 30g not recovered on hard drive. WHy?

    Quick&Clean feature? We do not provide support by email. It most like was a marketing email if you subscribe to their email list.

  • 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.

  • 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...

  • Skype asking for renewal but date not due yet

    I wrote on here a few weeks ago and am still awaiting a reply.  I took out one year's subscription - unlimited landline calls in UK - last October 2011.  Why is Skype threatening to cancel me when my renewal date is months away???  Please reply.

    Hi John,
    with this cash discount payment terms - in F110 system will try to pay well in advance to get the maximum discount. thats why its being paid well in advance.
    check the document how much payment has happened, either its with the discount or without cash discount. if it calculated cash discount and paid to cash discount gl accounts your problem is solved. if not there is another problem.
    Thanks & regards,
    siva reddy.s

  • 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

  • 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

  • Two finger click selects text but will not release it.

    I have just upgraded from 10.4.10 to 10.4.11 and from Safari 3.0.3 to 3.1.2. A new problem has developed. If I two-finger click on a link in Safari, in order to select 'Open Link in New Tab' or if I two-finger click in a word to bring up the contextual menu the contextual menu comes up as it should. I can select anything in it I choose. The problem is that when I let go of the trackpad the link or the word remains highlighted. This causes me to have to click somewhere else, on blank space for instance, to release the highlighted text or link.
    This happens in Safari. It does not happen in Camino. Also, if I bring up a contextual menu in Safari using Control-click the same issue happens. The text or link remains highlighted afterwards.
    The biggest nuisance this causes is that as long as a link remains highlighted the mouse arrow remains an arrow rather than turning into a hand and finger when hovering over another link.
    Does anyone else hear experience this or has anyone hear heard of it? TIA
    Greg

    No, I think we are talking about entirely different things. What I am talking about is this...
    For instance, I enter search terms in Google, press enter, it brings up a page of links.
    I hover my mouse over one of the links and when I do the black mouse arrow turns into a hand with a pointing finger. I two-finger tap that link and select "Open Link in New Tab". It does. All is well.
    Now, while still on that Google page I hover my mouse over yet another link.
    If I am using Safari 3.0.3 or 3.0.4 that mouse arrow will turn into a hand with finger as soon as it hovers over another link.
    If I am using any Safari version newer than 3.0.4 the mouse arrow will not turn into a hand with finger when I hover over another link. The reason is because when I two-finger tapped that first link the text of the link got "selected" i.e. highlighted. The mouse pointer is now locked into black-arrow-pointer-mode unless I tap the trackpad to release it from that mode.
    In Safari 3.0.3 or 3.0.4 a two-finger tap on a link would not select the text of the link and therefore the pointer did not have to be released. It would immediately turn into a hand with finger as soon as it hovered over a new link.
    So, why does this matter so much too me? It matters because many web pages have links on them that you cannot even tell are links until you hover your mouse over them, at which time the mouse arrow changes to a hand with pointing finger. If I two-finger tap a link to open it in another tab, and then I continue looking on that page for more links to tap, I cannot discover them. My mouse pointer arrow remains a black arrow even though it is hovering over a link. The reason it remains an arrow is because the first link I tapped selected the text that represents that link and my mouse is now not in the correct mode (mood?) to turn into a hand with finger. I can no longer identify links on that page unless I deliberately tap some place on the screen to release the selected text of that earlier link. The mouse pointer will no longer turn into a hand with pointing finger when hovering over a link. It will remain a black arrow until the text representing the previously tapped link has be released, or deselected.
    Safari 303 and 304 did not select the text of a link when tapped with two-fingers. The mouse arrow was not being held hostage until it was deliberately released. Safari versions higher than 304 are a considerable nuisance due to this issue. It is very easy to forget to release the previously selected text and therefore it is easy to not even find more links on a page if they are the kind of links that the web author decided to make indistinguishable from the rest of the text in a sentence. Apparently the web author assumes you will suspect it to be a link and then hover your mouse over the text to see if it is a link.

  • Drop undo tablespace but space not release (du and df show different value)

    hi guys,
    i just change my undo and drop the previous 1.
    create undo tablespace UNDOTBS4 DATAFILE '/u03/oradata/starhub/undotbs4.dbf' size 2g;
    Tablespace created.
    SQL> ALTER SYSTEM SET UNDO_TABLESPACE = undotbs4;
    System altered.
    SQL>  drop tablespace undotbs3 including contents and datafiles;
    Tablespace dropped.
    SQL>
    However, when i check my diskspace using df -h , it is still showing. 32 gig is used. where infact, only 30G should be used.
    71G 32G 37G 47% /u03
    when i check using du -h, it is showing only
    30G ./oradata
    I have to bounce the database to get my 2G back, why ?
    Is there anyway to get my 2G back without bouncing the DB ?
    Regards,
    Noob

    Oracle has the file still open, so the i-node of that file is still in use, so the file shows up.
    Learn your Unix!
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for