Top 10 CPU, Disk IO, Memory consuming queries

Hi All,
I need DMV queries to find top 10 queries by CPU,Memory,Disk IO, duration in sql server 2005.
Regards
Rahul 

Hi,
http://www.sqlservercentral.com/blogs/mssqlfun/2013/04/03/dmv-4-find-top-most-expensive-cached-queries-sysdm_exec_query_stats/
Query 1 : Top 10 total CPU consuming queries
SELECT TOP 10
QT.TEXT AS STATEMENT_TEXT,
QP.QUERY_PLAN,
QS.TOTAL_WORKER_TIME AS CPU_TIME
FROM SYS.DM_EXEC_QUERY_STATS QS
CROSS APPLY SYS.DM_EXEC_SQL_TEXT (QS.SQL_HANDLE) AS QT
CROSS APPLY SYS.DM_EXEC_QUERY_PLAN (QS.PLAN_HANDLE) AS QP
ORDER BY TOTAL_WORKER_TIME DESC
Query 2 : Top 10 average CPU consuming queries
SELECT TOP 10
TOTAL_WORKER_TIME ,
EXECUTION_COUNT ,
TOTAL_WORKER_TIME / EXECUTION_COUNT AS [AVG CPU TIME] ,
QT.TEXT AS QUERYTEXT
FROM SYS.DM_EXEC_QUERY_STATS QS
CROSS APPLY SYS.DM_EXEC_SQL_TEXT(QS.PLAN_HANDLE) AS QT
ORDER BY QS.TOTAL_WORKER_TIME DESC ;
Query 3 : Top 10 I/O intensive queries
SELECT TOP 10
TOTAL_LOGICAL_READS,
TOTAL_LOGICAL_WRITES,
EXECUTION_COUNT,
TOTAL_LOGICAL_READS+TOTAL_LOGICAL_WRITES AS [IO_TOTAL],
QT.TEXT AS QUERY_TEXT,
DB_NAME(QT.DBID) AS DATABASE_NAME,
QT.OBJECTID AS OBJECT_ID
FROM SYS.DM_EXEC_QUERY_STATS QS
CROSS APPLY SYS.DM_EXEC_SQL_TEXT(SQL_HANDLE) QT
WHERE TOTAL_LOGICAL_READS+TOTAL_LOGICAL_WRITES > 0
ORDER BY [IO_TOTAL] DESC
Query 4 : Execution count of each query
SELECT
QS.EXECUTION_COUNT,
QT.TEXT AS QUERY_TEXT,
QT.DBID,
DBNAME= DB_NAME (QT.DBID),
QT.OBJECTID,
QS.TOTAL_ROWS,
QS.LAST_ROWS,
QS.MIN_ROWS,
QS.MAX_ROWS
FROM SYS.DM_EXEC_QUERY_STATS AS QS
CROSS APPLY SYS.DM_EXEC_SQL_TEXT(QS.SQL_HANDLE) AS QT
ORDER BY QS.EXECUTION_COUNT DESC
Remarks
1. Statistics in the view are updated when a query is completed.
2. User required VIEW SERVER STATE permission on the server.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it

Similar Messages

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

  • Host Memory Consumed at VM for prime infrastructure 2.0

    Dear All,
    I have prime infrastructure 2.0 from 12 day ago i have logg on NCS (1. Message: CPU: 85 crossed down threshold: 90) and when see host memory from prime infrastructure VM i see that Host memory consumed so i make down time and increase the memory from 24 GB to 40 GB.
    today i see th host Memory increases to 38.03 GB within 12 day I add only 30 Site map contained 45 AP or more(all site maps found on PI 568)
    please feed me this is normal behaviour or not and why host memory increase . when the host memory consumed i monitor that All NCS functionality doesnt work. Please Advice.
    Prime infrastructure 2.0
    VM 5.1.0
    Thanks

    Hi Satyaki,
    Try to reboot the WLC ,if possible and then check the status of the issue.
    Regards-
    Afroz
    **Ratings Encourages Contributors ****

  • BLOB column will caused large memory consumed ?

    our appliation server is AS9.0.4 and
    We using this Jdev 10g with BC4J and JSP
    to build some application that contain blob column BC4J entity object, we found the blob column will caused the memory consumed issue , each time the contain blob column application page request by browser that will consume about 50M memory on OC4J component instance, and incremental by each request until the instance out of memory. It seems the garbage collection or memory leak problem ? or have another solution to avoid the memory problem

    I encountered a similar problem when I was retrieving BLOB files in the .NET architecture. I used chunking to solve the problem.
    What happens is that the server reads the entire BLOB into memory before it sends anything to the client requesting it. So I set it up so that I would read a chunk (say 32KB) of the BLOB into a byte array, transmit it to the client, then read the next chunk from the BLOB and use it to overwrite the byte array, and so on. That way the maximum amount of memory that can be used is no greater than the size you specify for the chunk.
    This will cause downloads to slow, but it's the only way I know of to avoid massive memory consumption. Sorry I don't have any code to go with this, but I've just started working with Java/Jdeveloper recently. Hope this helps.

  • Jdev11g CPU profile and Memory Profile doesn't work for Mac

    I'm running Jdev11g on Mac OSX 10.5.5,
    CPU Profile and Memory Profile doesn't work. I got following message:
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Shared/jdevjavabase11110/jdeveloper/jdev/lib/profiler16.so
    The file actually is there. I don't understand why they looking for .so file, it supposed to be mapped as .jnilib on Mac.
    This is broken on TP4 as well.

    I'm still seeing this issue. Here is what I get:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -client "-agentpath:/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so=port=60950,jarpath=/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler-agent.jar,enable=t,depth=1000,startup=connect,time" -classpath /Users/kamleshnanda/jdeveloper/mywork/MyJavaApplication/Project1/classes project1.Class1 Hello
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so
    Process exited with exit code 1.
    I'm using the following build:
    About
    Oracle JDeveloper 11g Release 1 11.1.1.2.0
    Java Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.2.36.55.36
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.2.36.55.36
    Version
    Component     Version
    =========     =======
    CVS Version (External)     (CVS) 1.12.13 (client/server)
    Java(TM) Platform     1.6.0_17
    Oracle IDE     11.1.1.2.36.55.36
    PMD     JDeveloper Extension 4.2.5.3.0
    Team Productivity Center     11.1.1.2.36.55.36
    Versioning Support     11.1.1.2.36.55.36
    Here are the JVM properties:
    java.runtime.name     Java(TM) SE Runtime Environment
    java.runtime.version     1.6.0_17-b04-248-10M3025
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.vendor     Apple Inc.
    java.vendor.url     http://www.apple.com/
    java.vendor.url.bug     http://bugreport.apple.com/
    java.version     1.6.0_17
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Apple Inc.
    java.vm.version     14.3-b01-101
    Here is the OS information:
    os.arch     x86_64
    os.name     Mac OS X
    os.version     10.6.2

  • 8.1 system process spiking cpu, disk, and network utilization.

    Hi all, 
    After the most recent update to 8.1(I believe it was Mon 5/19/2014,) my laptop has been giving control to another program for about half a second, and then returning it to me. If I am typing, nothing comes up during that
    moment, the menu bar changes visually, then it quickly reverts. This is more annoying than malicious. After some digging I found that cpu, disk, and network all spike at the same time, about 5 seconds apart. Here's what I've gathered:
    Task Manager: Under the process tab, Windows Problem Reporting,(under background processes), pops in and out when the problem occurs. This is EXTREMELY odd as I've disabled the Windows Error Reporting service. Under the performance tab, The spikes are all
    concurrent and similar in appearance, as shown on the graphs. 
    Services: When I *stop* the Windows Error Reporting service I get: "Windows could not stop the Windows Error Reporting service on local computer. The service did not return an error. This could be an internal
    Windows error or an internal service error. If the problem persists, contact your system administrator." So I have *disabled* it. 
    Resource Monitor: I find multiple instances of WerFault.exe using different pids. They are under network activity and tcp connections, all pointed at 157.56.141.101. A quick look-up revealed that this address is registered to Microsoft. 
    Wireshark: My machine is initiating a TCP 3-way handshake to the above mentioned IP address, originating from random port 50379 and destined for port 443. Using TLSv1.2, I see a key and cipher change, an encrypted handshake, and then appliction data being
    transferred. The conversation ends with a 3-way goodbye, BUT immediately after the fin ack, my machine sends a rst ack and the conversation begins again. Ad nauseam. 
    Any info or help would be greatly appreciated. I feel like my machine has the literal hiccups. I've run Avast and MalwareBytes to eliminate malicious software. Both came up clean. I have no issues detected
    in Action Center. The most recent thing I've done was install HP drivers for my PhotoSmart D110a. I have uninstalled both the drivers and software from HP. To be honest, I am completely over Windows 8. I feel like I've had nothing but problems with it. Way
    too much going on with it. I'd rather have few features that work, than a million that are sub par in every sense of the phrase. End rant. If you need any more data or information from my end, please let me know. Will be more than happy to help you help me.
    Thanks in advance for your time.
    Bryan
    p.s. I had to delete the screenshots due to my account not being verified and I can't figure out how to verify being that it doesn't ask for my email. In doing so, the text has been resized. Apologies in full.

    I figured it out. I didn't look in event viewer. The issue was Asus Smart Gesture was crashing and restarting and then crashing again. This caused Error reporting to constantly send the issue. I entered the asus folder, ran the uninstall.bat, and re-installed
    it. Solved it immediately.

  • Disk Cache memory problem

    Hello,
    I am using 5.5 AF (Mac) my Disk cache memory was full. Whenever i start application I got this massage & its effects on speed. Can some one guide me how do I clear it?
    Thanks.

    The same answer that I gave you here:
    http://www.videocopilot.net/forum/viewtopic.php?f=4&t=116607

  • Working out the total memory consumed by a process

    Hi,
    I am writing a general snapshot utility that provides session statistics. The code is as follows:
    set pagesize 9999
    set linesize 140
    set heading off
    select SUBSTR(name,1,8) || ' sessions as on '||TO_CHAR(CURRENT_DATE, 'MON DD YYYY HH:MI AM') from v$database;
    set heading on
    column spid heading "OS PID" format a6
    column process format a13 heading "Client ProcID"
    column username  format a10
    column sid       format 999
    column serial#   format 99999
    column STATUS    format a3 HEADING 'ACT'
    column last      format 9,999.99
    column TotGets   format 999,999,999,999 HEADING 'Logical I/O'
    column phyRds    format 999,999 HEADING 'Physical I/O'
    column total_memory format 999,999 HEADING 'MEM/KB'
    SELECT
              substr(a.username,1,8) "lOGIN"
            , substr(a.sid,1,5) || '/'||substr(a.serial#,1,5) AS "SID/serial#"
            , TO_CHAR(a.logon_time, 'DD/MM HH:MI') "LOGGED IN SINCE"
            , substr(a.machine,1,10) HOST
            , substr(p.username,1,8)||'/'||substr(p.spid,1,5) "OS PID"
            , substr(a.osuser,1,8)||'/'||substr(a.process,1,5) "Client PID"
            , substr(a.program,1,15) PROGRAM
            --,ROUND((CURRENT_DATE-a.logon_time)*24) AS "Logged/Hours"
                    select round(sum(ss.value)/1024) from v$sesstat ss, v$statname sn
                    where ss.sid = a.sid and
                            sn.statistic# = ss.statistic# and
                            sn.name in ('session pga memory','session uga memory')
              ) AS total_memory
            , (b.block_gets + b.consistent_gets) TotGets
            , b.physical_reads phyRds
            , decode(a.status, 'ACTIVE', 'Y','INACTIVE', 'N') STATUS
            , CASE WHEN a.sid in (select sid from v$mystat where rownum = 1) THEN '<-- YOU' ELSE ' ' END "INFO"
    FROM
             v$process p
            ,v$session a
            ,v$sess_io b
    WHERE
    a.paddr = p.addr
    AND p.background IS NULL
    --AND  a.sid NOT IN (select sid from v$mystat where rownum = 1)
    AND a.sid = b.sid
    AND a.username is not null
    --AND (a.last_call_et < 3600 or a.status = 'ACTIVE')
    --AND CURRENT_DATE - logon_time > 0
    --AND a.sid NOT IN ( select sid from v$mystat where rownum=1)  -- exclude me
    --AND (b.block_gets + b.consistent_gets) > 0
    ORDER BY a.username;
    exitIn above I am trying to display a row per process so I have to cut the width of the columns. However, for the total memory consumed I assumed that it is the sum of values from v$sessstat as follows:
                    select round(sum(ss.value)/1024) from v$sesstat ss, v$statname sn
                    where ss.sid = a.sid and
                            sn.statistic# = ss.statistic# and
                            sn.name in ('session pga memory','session uga memory')
              ) AS total_memoryI have looked around and I think many refer to the sum of 'session pga memory' + ''session uga memory' as something workable.
    I therefore appreciate any comments on that and also anything that I can improve in this piece of code.
    Regards,
    Mich

    I don't know why this thread appears with the Aug 19 2001. This issue was posted Sept 9 2004.

  • Best way to free disk space/memory?

    Need to free up disk space/memory in order to back-up my iPhone 4 before switching to the iPhone 6. More PC than Mac, where do I look, and what is safe to delete from my computer? I don't know what is using all the space.

    Hi ..
    Help here >   Freeing space on your Mac OS X startup disk
    Just so you are aware, your Mac must be running v10.6.8 or later to backup an iPhone 4 and syncing an iPhone 6 > Apple - iPhone 6 - Technical Specifications

  • Hi, I have a refurbished upgraded macbook with 320 GB Disk, 4GB Memory and running Lion OS v 10.7.5.  This satisfies the second part of the requirement for installing OS X Mavericks (10.9) but happens to be an early 2008 piece.  Can I somehow install 10.9

    Hi, I have a refurbished upgraded macbook with 320 GB Disk, 4GB Memory and running Lion OS v 10.7.5.  This satisfies the second part of the requirement for installing OS X Mavericks (10.9) but happens to be an early 2008 piece.  Can I somehow install 10.9?  And why is apple not allowing people like me to try out this installation?  Any reason that are too technical that people like me cannot upgrade and handle?
    This would solve many apps to run on this.

    It's mainly the video card. The Models 2,1 through 4,1 have video cards with non-upgradeable 32bit drivers. The model 5,1 Late 2008 and newer have at least the NVIDIA GeForce 9400M with 64bit drivers. Mountain Lion and Mavericks require 64bit native drivers. Mountain Lion and Mavericks no longer support Intel's GMA 950 or GMA X3100 graphics processors.
    While Lion used some 32 bit and a lot of 64 bit code, Mountain Lion and Mavericks are pure 64 bit, which excludes more systems than Lion did. It's not something you can add memory to, for example, as it involves the base architecture.
    http://reviews.cnet.com/8301-13727_7-57470261-263/older-64-bit-macs-out-of-the-p icture-for-mountain-lion/?tag=mncol;txt
      http://reviews.cnet.com/8301-13727_7-57387846-263/will-your-mac-run-mountain-lio n/   

  • Top 10 Disk Utilization Report

    Hello,
    Could some one help me how to Pull Top 10 Disk Utilization Reports (Monthly) from SCOM 2012.
    I have checked different forums but no luck.

    Hi,
    This is a related blog for your
    reference.
    Setup a Disk Report in SCOM 2012
    http://scom-2012.blogspot.com/2012/07/setup-disk-report-in-scom-2012-part-2.html
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact
    information.
    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.

  • System metrics--CPU, DISK

    Hi
    I wanted to extract counter values pertaining to cpu,disk,vm etc
    and this is my approach.
    I do a kstat look up for the particlur kstat_name,
    say cpu_stat0,vminfo etc and
    then depending upon the kstat_type of the returned kstat i do a kstat_read into kstat_io_t ,kstat_named_t etc..
    am getting correct values for cpu related counters but for all others say disk and vm am getting wrong values.
    the snippet of code for cpu is as follows
    cpu_stat_t m;
    kstat_t ksp;
    ksp = kstat_lookup(kc,"cpu_stat",-1,"cpu_stat0");
    kstat_read(kc,ksp,&m)
    and am getting all correct values.
    Note: AM using the kstat_read to read into variable m of type cpu_stat_t since the kstat_type is of type KSTAT_TYPE_RAW
    the snippet of code for disk is as follows
    kstat_io_t mdiskinfo;
    for(ks=kc->kc_chain;ks!=null;ks=ks->next){
    if(ks->ks_type==KSTAT_TYPE_IO){
    if(!strcmp(ks->ks_class,"disk"){
    ksp=kstat_lookup(kc,ksp,mdiskinfo)
    Note: The kstat_type being KSTAT_TYPE_IO am using kstat_read to read into
    mdiskinfo of type kstat_io_t.
    AM getting the wrong values here.
    Is my approach correct.Any help will be much appreciated
    Thanx in advance

    Hi Anjana,
    I think your code if fine for CPU metrics . But are you taking care of multiprocessor systems ?
    However I find some problems with your approach for reading disk metrics .I believe if you are traversing the kstat list , you don't need to do a kstat_lookup() . Again the arguments which you've given to kstat_lookup() are wrong . One solution would be to replace the call to kstat_lookup() by kstat_read(kc,ksp,&mdiskinfo) .
    Hope this helps.
    Thanks,
    Prajeesh

  • TOP CPU Sessions for 10hr period

    I need list of top CPU sessions for a period of 10 hrs. I see CPU is the top wait event in my AWR reports. Getting above information from AWR is complex. Is their a history views where I can get this information easily?
    Regards,
    Siva

    I don't know if I understand your requirement correctly, but I think you have a section in the AWR report where you can see the Top SQL ordered by CPU Time.
    You can always create a preserved snapshot report to get the information for a different period.

  • How to find the memory consumed by a ArrayList

    Dear Friends,
    Could anyone help me in finding whats the memory consumed by a ArrayList.
    Regards,
    Vinod Kumar Purvakam.

    http://javaspecialists.co.za/archive/Issue029.html

  • This is what i have:eMac Machine Model:     PowerMac6,4   CPU Type:     PowerPC G4  (1.5)   Number Of CPUs:1   CPU Speed:     1.42 GHz   L2 Cache (per CPU):     512 KB   Memory:512 MB   Bus Speed:     167 MHz   Boot ROM Version:     4.9.2f1? can i update

    this is what I have
    eMac
      Machine Model:          PowerMac6,4
      CPU Type:          PowerPC G4  (1.5)
      Number Of CPUs:          1
      CPU Speed:          1.42 GHz
      L2 Cache (per CPU):          512 KB
      Memory:          512 MB
      Bus Speed:          167 MHz
      Boot ROM Version:          4.9.2f1
    can i update to snow leopard?? and how?  im having a hard time its my first mac.   I need to to create documents, Im trying to avoid buying a new computer.

    You cannot upgrade to snow leopard. Snow leopard was the first of os x to drop support for the motorola ppc processors. The latest you could possibly run would be leopard.
    Hope it helps,
    Ryan

Maybe you are looking for