Resource leak problem

Hi
Oracle Database 12.1.0.1.0 "standart edition one" installed on windows 2008 Server R2 SP1 (64 bit).
I configure access to remote Databases MS SQL Server 2008. The access configured via "heterogeneous services".:
1) Created ODBC source 1 : type "ODBC SQL Server 6.01.7601.17514 Microsoft Corparation", name "AOF_Statistic_140"
2) Created ODBC source 2 : type "ODBC SQL Server 6.01.7601.17514 Microsoft Corparation", name "AOF_Statistic"
3)created file "initAOF_Raport.ora" in "с:\app\oracle_db\product\12.1.0\dbhome_1\hs\admin"
Сontent of the file "initAOF_Raport.ora" :
HS_FDS_CONNECT_INFO = AOF_Raport_140
HS_FDS_TRACE_LEVEL=0
HS_LANGUAGE=RUSSIAN_RUSSIA.CL8MSWIN1251
HS_IDLE_TIMEOUT=5
HS_TRANSACTION_MODEL=READ_ONLY
4)created file "initAOF_Statistic.ora" in "с:\app\oracle_db\product\12.1.0\dbhome_1\hs\admin"
Сontent of the file "initAOF_Statistic.ora" :
HS_FDS_CONNECT_INFO = AOF_Statistic_140
HS_FDS_TRACE_LEVEL=0
HS_LANGUAGE=RUSSIAN_RUSSIA.CL8MSWIN1251
HS_IDLE_TIMEOUT=5
HS_TRANSACTION_MODEL=READ_ONLY
5) Сontent of the file "с:\app\oracle_db\product\12.1.0\dbhome_1\network\admin\listener.ora"
SID_LIST_LISTENER =
  (SID_LIST =
  (SID_DESC =
  (SID_NAME = CLRExtProc)
  (ORACLE_HOME = с:\app\oracle_db\product\12.1.0\dbhome_1)
  (PROGRAM = extproc)
  (ENVS = "EXTPROC_DLLS=ONLY:с:\app\oracle_db\product\12.1.0\dbhome_1\bin\oraclr12.dll")
  (SID_DESC=
  (SID_NAME= AOF_Statistic)
  (ORACLE_HOME=с:\app\oracle_db\product\12.1.0\dbhome_1)
  (PROGRAM=dg4odbc)
  (SID_DESC=
  (SID_NAME= AOF_Raport)
  (ORACLE_HOME=с:\app\oracle_db\product\12.1.0\dbhome_1)
  (PROGRAM=dg4odbc)
LISTENER =
  (DESCRIPTION_LIST =
  (DESCRIPTION =
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
  (ADDRESS = (PROTOCOL = TCP)(HOST = Indas-debug)(PORT = 1521))
6) Сontent of the file "с:\app\oracle_db\product\12.1.0\dbhome_1\network\admin\tnsnames.ora"
ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
  (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
  (CONNECT_DATA =
  (SID = CLRExtProc)
  (PRESENTATION = RO)
ORCL =
  (DESCRIPTION =
  (ADDRESS = (PROTOCOL = TCP)(HOST = Indas-debug)(PORT = 1521))
  (CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = orcl)
aof_Raport =
  (DESCRIPTION=
  (ADDRESS=(PROTOCOL=tcp)(HOST= localhost)(PORT=1521))
  (CONNECT_DATA=(SID = AOF_Raport))
  (HS=OK)
aof_Statistic =
  (DESCRIPTION=
  (ADDRESS=(PROTOCOL=tcp)(HOST= localhost)(PORT=1521))
  (CONNECT_DATA=(SID = AOF_Statistic))
  (HS=OK)
7) Created public links:
CREATE PUBLIC DATABASE LINK aof_Statistic CONNECT TO "ascub" IDENTIFIED BY "111**" using 'aof_Statistic';
CREATE PUBLIC DATABASE LINK aof_Raport CONNECT TO "ascub" IDENTIFIED BY "111**" using 'aof_Raport';
8)created pl sql package "test_sql_hs" with following code:
procedure raport_rep_L337_3 is
  l_dt date;
begin
  ---- table L337 from AOF_RAPORT
  for cur1 in (select
  to_date(TO_CHAR("DateAndTime", 'DD.mm.YYYY HH24:MI:SS'),'DD.mm.YYYY HH24:MI:SS') as DateAndTime,
  "D3_Q" as d3_q,
  "D5_Q" as d5_q,
  "D7_Q" as d7_q,
  "D9_Q" as d9_q,
  to_number("D11_Q") as d11_q,
  to_number("D13_Q") as d13_q,
  to_number("Work_Time") as work_time
  from L337_3@AOF_RAPORT
  where "DateAndTime"> (l_dt-1)
  order by "DateAndTime" asc ) loop
  begin
  insert into TB$A$L337 (dateandtime,d3_q,d5_q,d7_q,d9_q ,d11_q,d13_q,work_time,UPDATE_TIME)
  values(cur1.dateandtime,cur1.d3_q,cur1.d5_q,cur1.d7_q,cur1.d9_q ,cur1.d11_q,cur1.d13_q,cur1.work_time,sysdate);
  exception when dup_val_on_index then null;
  update TB$A$L337 t set t.update_time=sysdate where t.dateandtime=cur1.dateandtime;
  end;
end loop;
commit;
exception when others then
  rollback;
  sys_log(p_oid => 'raport_rep_L337', content => sqlerrm);
  raise;
end;
procedure static_rep_L337_3 is
  l_dt date;
begin
  ---- table L337 from AOF_RAPORT
  for cur1 in (select
  to_date(TO_CHAR("DateAndTime", 'DD.mm.YYYY HH24:MI:SS'),'DD.mm.YYYY HH24:MI:SS') as DateAndTime,
  "D3_Q" as d3_q,
  "D5_Q" as d5_q,
  "D7_Q" as d7_q,
  "D9_Q" as d9_q,
  to_number("D11_Q") as d11_q,
  to_number("D13_Q") as d13_q,
  to_number("Work_Time") as work_time
  from L337_3@AOF_STATISTIC
  where "DateAndTime"> (l_dt-1)
  order by "DateAndTime" asc ) loop
  begin
  insert into TB$A$L337 (dateandtime,d3_q,d5_q,d7_q,d9_q ,d11_q,d13_q,work_time,UPDATE_TIME)
  values(cur1.dateandtime,cur1.d3_q,cur1.d5_q,cur1.d7_q,cur1.d9_q ,cur1.d11_q,cur1.d13_q,cur1.work_time,sysdate);
  exception when dup_val_on_index then null;
  update TB$A$L337 t set t.update_time=sysdate where t.dateandtime=cur1.dateandtime;
  end;
end loop;
commit;
exception when others then
  rollback;
  sys_log(p_oid => 'raport_rep_L337', content => sqlerrm);
  raise;
end;
procedure rep_MSSQL_140 is
begin
raport_rep_L337_3;
static_rep_L337_3
exception when others then
  rollback;
end;
9) Created JOB which runs every 30 seconds function: test_sql_hs.rep_MSSQL_140
begin
  sys.dbms_job.submit(job => :job,
  what => 'begin
test_sql_hs.rep_mssql_140;
exception when others then
rollback;
end;',
  next_date => sysdate,
  interval => 'sysdate+30/(24*60*60)');
  commit;
end;
PROBLEM IS:
Initially JOB runs normally, but after 12 hours of working errors occure:
1)code test_sql_hs.rep_mssql_140 returns error: "ORA-28511: lost RPC connection to heterogeneous remote agent using ..." permanently.
2) At the same time I can not login to OS using any windows account, I get error "Access denied". I have "lack of resources" message in Windows system log.
The problem disappears only when I reboot Windows service "OracleOraDB12Home1TNSListener" (process TNSLSNR.exe).
Any idea of this issue please let me know.

Hi,
  You say you start the job every 30 seconds and you have resource problems after about 12 hours as well as an ORA-28511 error.  That error indicates the connection between the gateway and SQL*Server has been lost for some reason.
To follow up -
- do you see any messages in the RDBMS alert log ?
- how many DG4ODBC processes do you see if you look at Task Manager ?
Although you have a 'commit' in the PL/SQL procedure it could be that the actual DG4ODBC connection is not being closed every time it is run.
What you could try is an explicit 'close database link AOF_STATISTIC' in the code after the 'commit' statement.  This will cause the DG4ODBC process opened for the connection to be closed and a new one opened next time it is called.  This should prevent any resource problems if that is the cause of the problem.
Regards,
Mike

Similar Messages

  • Run-time Moveable Control resource leaks

    Hi,
    I've noticed a small resource leak issue with the Run-time Movable Control library (movectrl.fp).  The issue comes up when a control is made movable, then later the MOVECTRL_ATTR_ENABLED attribute is set to 0 to make the control non-movable, and then the control is discarded, either directly or by discarding the panel that the control is on.  
    Diving into the source code for the instrument, the reason is clear.  In the callback function DynamicCtrlCallback(...) which is chained to the control that is made movable, the first thing that happens is a check that the movable attribute is set, and if not, the function bails out with an early return.  The problem is that after this there is the handler for EVENT_DISCARD, that frees up the resources used by the movable control.  The problem is that if the movable attribute is not set, when the control is discarded the handler for the EVENT_DISCARD is never reached and therefore the resources are not freed.
    I thought I would post this to let anyone using the Run-time Movable Controls library that as a workaround you should set the MOVECTRL_ATTR_ENABLED to enabled before discarding a movable control as to not leak memory.  And so that hopefully NI can fix this in a future release .
    Thanks.

    Hi Jason D,
    No problem.  I've attached a small application. It has a button that generates a pop up with some controls on it.  It uses MakeMovableCtrl(..) to set all the controls movable, and then SetMovableCtrlAttribute(..) with MOVECTRL_ATTR_ENABLED set to 0 to make the graph control non-movable.  If you simply close the pop up (which discards the panel), in CVI's resource tracker there is some allocated memory that is not freed and a thread lock that is not discarded.  The switch on the pop up can be toggled to make the graph control movable again via SetMovableCtrlAttribute(..).  If you toggle the switch and then close the pop up you'll see that the memory is freed and the thread locks are properly discarded.  If you open/close the pop up multiple times without toggling the switch you'll see multiple blocks of non-freed memory and multiple non-discarded thread locks.
    Thanks for looking into this.
    Attachments:
    Runtime Movable Controls Test.zip ‏6 KB

  • How do I report a major memory leak problem with Firefox 3.6.10 in WinXP?

    After I installed Firefox 3.6.9 on a WinXP desktop, I occasionally had minor memory leak problems, reflected by getting "out of virtual memory" messages. I upgraded to 3.6.10 when notified that it was available and that it supposedly fixed stability problems. Ever since then, whenever I use Firefox, it starts out quick as a flash, but very rapidly slows down to a crawl, and has twice brought my system to a halt. IE does not cause this, nor any other program I use, but the execution speed of all programs slows as badly as Firefox. If I knew where to get older versions, I would back up to 3.6.9 or earlier. The situation now prevents me from using Firefox much at all.

    Im running windows 7, Firefox 3.6.10 and before i updated to 3.6.10 my CPU never went above 10% with Firefox open. Now it can spike well above 50% and i have nothing different from when i had 3.6.9 to now when i have 3.6.10.
    There is no evidence for me to suggest one of the additions i have is causing it, its all pointing to Firefox itself and the last update.

  • Memory Leak Problem at Adobe LiveCycle Server 9.0

    Hi All,
    We want to upgrade our system to 9.0. During the performance test we have found memory Leak problem at ALS 9.0. I explain the detailed problematic issue below. Is there any body who has any suggest?
    We have Adobe Livecycle ES2 9.0 SP2 installed on WAS 6.1. But also WAS on Windows Server 2008 R2. We call java web services from .Net Web service for generating PDFs.
    On Java side “com/adobe/internal/pdftoolkit/services/javascript/GibsonMemoryTracking” class is causing Memory Leak problem at server.
    Our .Net Codes. I copied below. First we generate PDF then we convert this pdf to static pdf.
    First We call the GeneratePDF function.
    public static bool GeneratePdf(Document document, byte[] pdfTemplate)
            try
                //Create a FormDataIntegrationService object and set authentication values
                FormDataIntegrationService formDataIntegrationClient = new FormDataIntegrationService();
                formDataIntegrationClient.Credentials = new System.Net.NetworkCredential(Settings.ALCUserName, Settings.ALCPassword);
                //Import XDP XML data into an XFA PDF document
                ALCFormDataIntegrationService.BLOB inXMLData = new ALCFormDataIntegrationService.BLOB();
                //Populate the BLOB object
                inXMLData.binaryData = System.Text.Encoding.UTF8.GetBytes(document.XmlData);
                //Create a BLOB that represents the input PDF form
                ALCFormDataIntegrationService.BLOB inPDFForm = new ALCFormDataIntegrationService.BLOB();
                inPDFForm.binaryData = pdfTemplate;
                //Import data into the PDF form
                ALCFormDataIntegrationService.BLOB results = formDataIntegrationClient.importData(inPDFForm, inXMLData);
                document.PdfData = results.binaryData;
                Utility.Log("GeneratePdf", "Pdf generated successfully.", LogLevel.Info);
                return true;
            catch (Exception ex)
                document.ReturnCode = "22";
                document.ReturnMsg = "Exception on generating the pdf";
                Utility.Log("GeneratePdf", "Exception: " + ex.Message, LogLevel.Error);
                return false;
    Then We call the ConvertPDF function.
    public static bool ConvertPdf(Document document)
            try
                //Create a OutputServiceService object
                OutputServiceService outputClient = new OutputServiceService();
                outputClient.Credentials = new System.Net.NetworkCredential(Settings.ALCUserName, Settings.ALCPassword);
                //Create a BLOB object
                ALCOutputService.BLOB inData = new ALCOutputService.BLOB();
                //Populate the BLOB object
                inData.binaryData = document.PdfData;
                //Set rendering run-time options
                RenderOptionsSpec renderOptions = new RenderOptionsSpec();
                renderOptions.cacheEnabled = true;
                //Create a non-interactive PDF document
                ALCOutputService.BLOB results = outputClient.transformPDF(inData, TransformationFormat.PDF, PDFARevisionNumber.Revision_1, false, null, PDFAConformance.B, false);
                document.PdfData = results.binaryData;         
                Utility.Log("ConvertPdf", "Pdf converted successfully.", LogLevel.Info);
                return true;
            catch (Exception ex)
                document.ReturnCode = "22";
                document.ReturnMsg = "Exception on converting dynamic pdf to static pdf";
                Utility.Log("ConvertPdf", "Exception: " + ex.Message, LogLevel.Error);
                return false;
    Our System Configuration:
    Expiry date: Never Version: 9.0.0.0,
    GM Patch Version: SP2
    Service Pack Version: unknown
    ADOBE® LIVECYCLE® PDF Generator ES2
    9.0.0.0
    SP2
    ADOBE® LIVECYCLE® Reader Extensions ES2
    9.0.0.0
    SP2
    ADOBE® LIVECYCLE® Output ES2
    9.0.0.0
    SP2
    We changed some configuration which is suggested by Adobe. But this change does not solve our problem.
    Changed Configurations via ADMINUI
    Memory Leak Problem which is viewed via wily tool:

    Hi Mahir,
    Can you attach the results of this performance test where we can see how GibsonMemoryTracking class is causing the memory leak issue.
    Also do you see any stackTrace in the LiveCycle server logs related to memory / heap when you run this performance test ?
    Thanks,
    Simer

  • Memory leak problem while passing Object to stored procedure from C++ code

    Hi,
    I am facing memory leak problem while passing object to oracle stored procedure from C++ code.Here I am writing brief description of the code :
    1) created objects in oracle with the help of "create or replace type as objects"
    2) generated C++ classes corresponding to oracle objects with the help of OTT utility.
    3) Instantiating classes in C++ code and assigning values.
    4) calling oracle stored procedure and setting object in statement with the help of setObject function.
    5) deleted objects.
    this is all I am doing ,and getting memory leak , if you need the sample code then please write your e-mail id , so that I can attach files in reply.
    TIA
    Jagendra

    just to correct my previous reply , adding delete statement
    Hi,
    I am using oracle 10.2.0.1 and compiling the code with Sun Studio 11, following is the brief dicription of my code :
    1) create oracle object :
    create or replace type TEST_OBJECT as object
    ( field1 number(10),
    field2 number(10),
    field3 number(10) )
    2) create table :
    create table TEST_TABLE (
    f1 number(10),f2 number (10),f3 number (10))
    3) create procedure :
    CREATE OR REPLACE PROCEDURE testProc
    data IN test_object)
    IS
    BEGIN
    insert into TEST_TABLE( f1,f2,f3) values ( data.field1,data.field2,data.field3);
    commit;
    end;
    4) generate C++ classes along with map file for database object TEST_OBJECT by using Oracle OTT Utility
    5) C++ code :
    // include OTT generate files here and other required header files
    int main()
    int x = 0;
    int y = 0;
    int z =0;
    Environment *env = Environment::createEnvironment(Environment::DEFAULT);
    Connection* const pConn =
    env->createConnection"stmprf","stmprf","spwtrgt3nms");
    const string sqlStmt("BEGIN testProc(:1) END;");
    Statement * pStmt = pConn->createStatement(sqlStmt);
    while(1)
    TEST_OBJECT* pObj = new TEST_OBJECT();
    pObj->field1 = x++;
    pObj->field2 = y++;
    pObj->field3 = z++;
    pStmt->setObject(1,pObj);
    pStmt->executeUpdate();
    pConn->commit();
    delete pObj;
    }

  • Memory leak problems with loading videos over and over.

    I'm having memory leak problems with loading videos into a VideoPlayer aswell as FLVPlayback.
    What the flash should do:
    - Should be running for 7 days without having to restart the projector.
    - Interface that shows people around a 360 3D model with 5 different parts and at the stops it makes during the rotation you can click to zoom in on a location which plays a movie for that aswell.
    - Shows a video out of 5 parts for a 360 rotation in 3D in mp4 video (added each time and cleaned up, see code below).
    - Still images are used when the video clips are done playing (MovieClip in stage).
    - Should run automatically when there is no user interaction for X minutes.
    What the problem is:
    - The flash (as a exe and swf i guess) starts to consume memory over time (say 10 hours) until the projector crashes. This usually at around 1.75 GB of memory.
    I cannot see why the Flash cannot garbage collect this and free up the memory. Mabye there is something I don't understand about the garbage collection in flash?
    Here is some code from the video loading and playing:
    var fVideo:VideoPlayer;
    VideoCreate();
    function VideoReady(pEvent:VideoEvent):void
    trace("VideoReady()");
         // start playing video
    fVideo.play();
    function VideoLoad(pUrl:String):void
         trace("VideoLoad(" + pUrl +
         VideoCreate();
         if (pUrl != "")
              if (fVideoFolder + pUrl == fVideo.source)
                   fVideo.seek(0);
    VideoReady(null);
              } else {
    trace(fVideo.state);
                   if (fVideo.state !=
    VideoState.DISCONNECTED) fVideo.stop();
    fVideo.close();                                
    fVideo.load(fVideoFolder + pUrl);
         } else {
    // error no url
    function VideoCreate():void
         trace("VideoCreate()");
         // remove old one
         if (getChildAt(0) == fVideo)
              removeChildAt(0);
         fVideo = new
    VideoPlayer(1024, 768);
         addChildAt(fVideo, 0);
         fVideo.autoRewind = false;
    fVideo.addEventListener(VideoEvent.COMPLETE, VideoDonePlaying);
    fVideo.addEventListener(VideoEvent.READY, VideoReady);

    Hmm. It's in connection with Dropbox. Så apparantly you can only use one of the two at the same time if you want the programs integrated in Finder.

  • How can I avoid memory leak problem ?

    I use Jdev 10.1.2 . I have a memory leak problem with ADF .
    My application is very large . We have at least 30 application module , each application module contain many view object
    and I have to support a lot of concurrent users .
    as I know ADF stored data of view object in http session .
    and http session live is quite long . when I use application for a while It raise Ouf of Memory error .
    I am new for ADF.
    I try to use clearCache() on view object when I don't use it any more .
    and call resetState() when I don't use Application Module any more
    I don't know much about behavior of clearCache() and resetState() .
    I am not sure that It can avoid memory leak or not .
    Do you have suggestion to avoid this problem ?

    ADF does not store data in the HTTP session.
    See Chapter 28 "Application Module State Management" in the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://download-uk.oracle.com/docs/html/B25947_01/toc.htm for more information.
    See Chapter 29 "Understanding Application Module Pooling" to learn how you can tune the pooling parameters to control how many modules are used and how many modules "hang around" for what periods of time.

  • Finalize prevents "resource leak"?

    As far as I can tell, " +Effective Java+ " (by Joshua Bloch) is the most recommended Java text. Therefore, I am assuming the author is credible, maybe on par with the best on this forum. Then, here is a quote from the book:
    ".... there is a severe performance penalty for using finalizers... So what should you do instead of writing a finalizer for a class whose objects encapsulate resources that require termination, such as files or threads? Just provide an explicit termination method, and require clients of the class to invoke this method on each instance when it is no longer needed."
    I question the advisability of designing a class such that the design says "oh. by the way. when you are done using an instance of it, don't forget to call this method." Would not such a design lead to hard to find, easy to forget, resource leaks (same idea as memory leaks ). Is such a (dangerous?) practice used in real-world apps?
    btw:
    The issue of finalizers arose while reading about java.awt.Graphics . I read that if "g.dispose()" was not called on every instance of Graphics , if run long enough, with 100% certainity, an app would come crashing down. Some resource is exhausted. Know when it must be explicitly called, and then always put that method in a finalize block.

    tatsuke wrote:
    try {
    ArrayList<Double> list = new ArrayList<Double>();
    for(int d = 0; d < Double.MAX_VALUE;d++) {  list.add(new Double(d));  }
    } catch (java.lang.OutOfMemoryError e) {
    // forces gc to kill all possible objects, each's finalize block is executed?
    // next, not sure what to do in any practical sense.
    // just checking that i understand what is going on.
    First of all, If I ever find any code like this in an production environment during a code review, then the author of that code will get a very strict talking-to at least.
    I can't begin to tell you how wrong this is and at how many levels.
    First of all: Who tells you that the OOM-Error is thrown in this code and not in an entirely unrelated code in another Thread that happens to be the first one to request too large a block of memory? (Not unlikely, since you allocate a lot of tiny objects and the OOM-barrier can easily be hit by another thread that tries to allocate a 512k buffer for some I/O operation.
    Next: you're taxing the memory settings of the JVM, forcing it to go up to its maximum size, even when the actual requirement would a fraction of the maximum size and thus potentially forcing your application (and others) into swap and slowing them down to a grinding halt, effectively producing a denial-of-service.
    Next: you produce an infinite loop, because you'll never reach Double.MAX_VALUE (try printing "Double.MAX_VALUE" and "Double.MAX_VALUE - 1d" and tell me the difference).
    Next: no-one said that it's possible that the object is never collected and never finalized in all situations. Of course there are situations when it has to be collected (OOM is about the only one that comes to my mind, at the moment). But that doesn't mean that you can rely on finalize() being called in all situations. Note that nothing in the spec tells you that the GC must run when you run out of file descriptors. Running the GC could help, if someone forgot to close a stream, but it is not enforced.
    Next: yes, I'm pissed of at something entirely unrelated and you just happen to be there. Sorry for that. I still think the content of my comments is correct.

  • Is memory leak Problem Solved in this new FW 4.08...

    Hi frnds,This is my very first post. Im happy to be a member of N Series Family by owing a brand New N73 ME One Week Before (July 2008). The phone really Fascinated me with its features, Since my Previous Phone was Nokia 6630. Now let me Come to my problem.
    A "Memory Full. Close some application" Error is encountering me twice or thrice a day. if i knowledge is correct, its Low RAM error & i found my RAM in the range of 18-20MB just after startup & along with usage of applications & closing, it maintain a range b/w 4-8MB. In this time wen i open a picture in inbuilt PicEditor this Memory full Error occurs(And sometimes while zooming a picture in gallery also). Will updating to the new FW according to my product code 0543843 is 4.0812.4.2.1 will solve the Memory leak problem ? i have gone through all the post regarding the issues on latest firmware updates Good & Bad. So im a bit confused that shud i update or not. Coz i have only this memory problem. Everything else is fine.
    Please help me.
    N73 ME
    v 4.0736.3.2.1
    04-09-2007
    RM-133
    Code:0543843
    INDIA

    I have 4.0812.4.2.1 and I have the same problem..I think that in 4.0736 is best memory usage than other firmwares,but I can't downgrade firmware

  • Since the itunes 10.4.1 update  I have memory leaks problems.

    Since the itunes 10.4.1 update  I have memory leaks problems, Itunes used memory start at about 100 megs as usual but when it play the ram usage climb about 4 kb per second ( one time I had itunes using 690 megs !). I had to periodically close and restart Itunes to clear the memory.
    Someone has suggestion to resolve this problem?

    Same issue, Running Windows 7 x64 with 6 Gigs of RAM and have iTunes 10.4.1 32bit version.
    I wanted to break in some headphones over the weekend, so left it playing a loop of songs. Came back on Monday to see my machine using a huge amount of RAM and iTunes just froze.
    Here is a shot of my Task Manager showing iTunes was using 1.5gigs of Memory.

  • What is meant by a resource leak ?

    What is meant by a resource leak ?

    Garbage collection manages only memory, not other system resources. If your Java program has plenty of free memory, garbage collection will not be triggered automatically. Usually, however, there are other resources that are more limited than memory. For example, all OSes have limits on the number of sockets, file handles, etc. that can be open. Sometimes this limit is quite low. This is true even on a desktop, e.g. if your system has 128KB of memory, your Java program can easily allocate all the available file handles without coming near to filling up the heap. If this happens, your Java program will fail. This is what we call a resource leak; the unintentional maintenence of references to non-memory resources.
    This is why it is important in Java to explicitly manage non-memory resources. Classes which utilize non-memory resources should provide ways to explicitly allocate/deallocate those resources, independent of garbage collection. For example Socket, InputStream and OutputStream each provide explicit close() methods for deallocation of file descriptors, Window provides a dispose() method to free the window handle, etc. The way to properly use these classes is to allocate using the constructor, then deallocate using the appropriate method (deallocation is preferably done in a finally{} block, so it will execute whether or not an exception is thrown during use). These classes do release these non-memory resources in their finalize() method, but remember that the finalizer only gets called by the garbage collector, and if the object is never collected, it will never be finalized, hence will never release the resources.

  • App-V 5.0 memory leak problem & slow program launch

    App-V 5 clients with most recent updates have a memory leak problem. Windows 7 64bit workstations with 8GB of memory will be useless within couple of days because memory has run out. Terminating App-V client process will free the memory, but system starts
    to consume it again after that. All hotfixes (up to 5) have been installed.
    Another problem is that launching some large (locally cached) programs, for example SolidWorks, takes many minutes for a program to start. With 4.6 there wasn't any performance issues.
    Any suggestions?

    I saw the exact same issue with slow load times and 50% utilization by AppVClient.exe during that time.
    AppV 5 first launch application performance
    AppV 5 - Measuring RegistryStaging load times
    The issue, specifically, is the amount of time the application takes to stage the registry is what causes the slow load and 50% CPU utilization.  I've written a script that stages the registry on your behalf that we use on server startup, after all
    the packages are loaded.
    Original Thread on MS forums:
    https://social.technet.microsoft.com/Forums/en-US/44944302-d8f3-4df1-b104-9c63345f88e0/poor-first-launch-performance-with-appv-5?forum=mdopappv

  • Light Leak problem, how much time to return?

    I went to the genius bar for a light leak problem, which was confirmed by a genius. Unfortunately it seems there never is any iPad 2 in stock. Do you think I'll be able to return my iPad 2 more than 14 days after I bought it

    Oh you may still get some light leakage.  I suspect almost all iPad2 suffer to some extent.  I didn't even realize I had any until the other night, when I was shutting my iPad down and it was dark in the room.  The light leak I saw as at the bottom right hand corner.  In normal viewing, it's simply not an issue and not one I feel is worthy of asking for a replacement.  What I have seen here on the forum is that Apple will replace your iPad once for this issue, but not a second time.

  • Memory leak problem, help!

    There is memory leak problem when select multi-rows table. Suppose that I don't make mistake when coding. Have U ever use Borland Delphi? In TQuery, there a field called UniDirectional when set it to True, selected rows aren't cached in Memory. So that There is must be a parameter in OCI does like UniDirectional does. There is any one know about it? reply this question or mail me directly at [email protected]
    Thank in advance.

    There is memory leak problem when select multi-rows table. Suppose that I don't make mistake when coding. Have U ever use Borland Delphi? In TQuery, there a field called UniDirectional when set it to True, selected rows aren't cached in Memory. So that There is must be a parameter in OCI does like UniDirectional does. There is any one know about it? reply this question or mail me directly at [email protected]
    Thank in advance.

  • Resource Leak in C#

    Creat64StringArray()
    stream filestream = null;
    1. Condition viewType.Equals("webbrowser"), taking true branch
    if(ViewType = "WebBrowser")
      try
                       string strPath = documents.Path; //= @ + documents.Path;
    2. Condition strPath.StartsWith("\\"), taking true branch
                     if (strPath.StartsWith("\\"))
                           strPath = @"\" + documents.Path;
    3. alloc_fn: A new resource is returned from allocation method OpenRead.
    4. var_assign: Assigning: fileStream = resource returned from System.IO.File.OpenRead(strPath).
                       fileStream = File.OpenRead(strPath);
    5. noescape: Resource fileStream is not closed or saved in Length.get.
                        fileArray = new byte[fileStream.Length];
    6. noescape: Resource fileStream is not closed or saved in Length.get.
    7. noescape: Resource fileStream is not closed or saved in Read.
    8. Throwing System.IO.IOException from call to Read.
                        fileStream.Read(fileArray, 0, (int)fileStream.Length);
        catch (IOException ex)
    10. Condition ex.Message.Contains("The process cannot access the file"), taking true branch
                     if (ex.Message.Contains("The process cannot access the file"))
                           string str = documents.Path;
                          FileInfo info = new FileInfo(str);
                          dest = DirectoryPicker.GetAppSpecificFolder(DirectoryPicker.AppFolder.DataFolder) + "\\" +info.Extension;
    11. Condition System.IO.File.Exists(str), taking true branch
                          if (File.Exists(str))
                               File.Copy(str, dest);
       CID 14867: Resource leak on an exceptional path (RESOURCE_LEAK)12. overwrite_var: Overwriting fileStream in fileStream = System.IO.File.OpenRead(dest) leaks the resource that fileStream refers to.
                              fileStream = File.OpenRead(dest);
    fileArray = new byte[fileStream.Length];
                               fileStream.Read(fileArray, 0, (int)fileStream.Length);
                                strImgArray[0] = System.Convert.ToBase64String(fileArray);
    finally()
    (filestream!=null){
    filestream.close()
    How to fix this Resource leak ? Please advice..

    Hi
    Deeyaa,
    Could you  please describe your scenario? And how did you get the resource Leak ?
    I would suggest you provide a simplified sample about this issue, It would be better to help us to figure out the root cause.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for