High CPU usage on select

This is a spin off from another thread which started off as slow inserts. But what actaully happens is every insert is preceded by select it turned out that the select was slow.
We have a multi-tier web application conencting to the DB using connection pool and inserting about a 100000 records in a table. To isolate the issue I wrote a PL/SQL which does the same thing.
This problem happens every time the schema is recreated or the table dropped and created again and we start inserting. When the table is empty, the selects choose a full table scan but as the records are inserted it continues to use the same even though after a few thousands of rows I run stats. But as its running if gather stats and flush the shared pool, it picks up the new plan using the indexes and immediately gets faster.
But in either case, full tablescan being slow after a few thousands of rows or using the index and getting much faster. Or me just doing the same select and no inserts on a table with 100000 rows, the CPU seems to be pegged to the core.
The code snipped repeated again
DECLARE
   uname    NVARCHAR2 (60);
   primid   NVARCHAR2 (60);
   num      NUMBER;
BEGIN
   FOR i IN 1 .. 100000
   LOOP
      uname := DBMS_RANDOM.STRING ('x', 20);
      primid := DBMS_RANDOM.STRING ('x', 30);
      DBMS_OUTPUT.put_line (uname || ' ==> ' || primid);
      SELECT   COUNT (*)
          INTO num
          FROM TEST
         WHERE ID = 0
           AND (primid = primid OR UPPER (username) = uname OR uiname = uname
           AND (deldate IS NULL)   
      ORDER BY TIME DESC;
      INSERT INTO TEST
           VALUES (0, uname, uname, 1, uname, primid);
      IF MOD (i, 200) = 0
      THEN
         COMMIT;
         DBMS_OUTPUT.put_line ('Commited');
      END IF;
   END LOOP;
END;This is the original thread
Re: Slow inserts

Maybe if you post the actual code, or a code as similar to the actual code, the users of this forum may provide you with more appropriate suggestions.
Personally, I would like to understand what is the logic behind, so I can provide you with better advices.
Anyway, let's focus on the code that we currently have on the table.
Why your CPU goes high?
- Huge amount of LIOs produced by SELECT statement which is executed 100000 times.
- Usage of single-row / aggregate functions
- You mentioned you have some indexes created on table TEST. Index maintenance consumes some CPU as well.
Let's focus on the SELECT statement, since it is the most important reason for having high number of LIOs thus having high CPU usage.
I built a test case using the query you provided, with one difference, I named TEST table columns as COL1, COL2, etc. And instead of 100,000 cycles, I did 10,000
declare
   uname varchar2(60);
   pname varchar2(60);
   num number(5);
   begin
   for i in 1..10000 loop
      uname:=dbms_random.string('x',30);
      pname:=dbms_random.string('x',20);
      select count(1)
      into num
      from test
      where col1=0
      and (col2=uname or upper(col5)=pname or col3=uname)
      and col4 is not null;
      insert into test
      values (0,uname,pname,1,uname,uname);
      if mod(i,200)=0 then
              commit;
      end if;
   end loop;
  end;When I run 10046 trace and made tkprof report, I got the following for the SELECT part:
SELECT COUNT(1)
FROM
TEST WHERE COL1=0 AND (COL2=:B1 OR UPPER(COL5)=:B2 OR COL3=:B1 ) AND COL4 IS
  NOT NULL
call     count       cpu    elapsed       disk      query    current        rows
Parse        2      0.00       0.00          0          0          0           0
Execute  10050      0.48       0.43          0          0         50           0
Fetch    10000     94.07      94.37          0    2910664          2       10000
total    20052     94.56      94.80          0    2910664         52       10000As you can see, tkprof report indicated high CPU usage and 2,910,664 LIO calls.
The execution plan (I didn't include that part) indicated FULL TABLE scan on table TEST was used.
At this point the goal should be to reduce the number of LIO calls.
For this purpose I created the following indexes:
TEST_IDX1 on TEST(col2)
TEST_IDX2 on TEST(col3)
TEST_IDX3 on TEST(upper(col5)) - a Function Based Index
Let's forget about the statistics at this moment.
I will use index_combine hint in the SELECT statement to make CBO to try every index combination for listed indexes (B-Tree) and make bitmap conversion.
The new code looks like this
declare
   uname varchar2(60);
   pname varchar2(60);
   num number(5);
   begin
   for i in 1..10000 loop
      uname:=dbms_random.string('x',30);
      pname:=dbms_random.string('x',20);
      select /*+ index_combine(test test_idx1 test_idx2 test_idx3) */ count(1)
      into num
      from test
      where col1=0
      and (col2=uname or upper(col5)=pname or col3=uname)
      and col4 is not null;
      insert into test
      values (0,uname,pname,1,uname,uname);
      if mod(i,200)=0 then
              commit;
      end if;
   end loop;
  end;After running 10046 trace and creating tkprof report, I got the following result:
SELECT /*+ index_combine(test test_idx1 test_idx2 test_idx3) */ COUNT(1)
FROM
TEST WHERE COL1=0 AND (COL2=:B1 OR UPPER(COL5)=:B2 OR COL3=:B1 ) AND COL4 IS
  NOT NULL
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.00       0.00          0          0          0           0
Execute  10000      0.79       0.70          0          0          0           0
Fetch    10000      0.68       0.71          3      59884          0       10000
total    20001      1.47       1.42          3      59884          0       10000
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 54     (recursive depth: 1)
Rows     Row Source Operation
  10000  SORT AGGREGATE (cr=59884 pr=3 pw=0 time=1188641 us)
      0   TABLE ACCESS BY INDEX ROWID TEST (cr=59884 pr=3 pw=0 time=1012723 us)
      0    BITMAP CONVERSION TO ROWIDS (cr=59884 pr=3 pw=0 time=915796 us)
      0     BITMAP OR  (cr=59884 pr=3 pw=0 time=820728 us)
      0      BITMAP CONVERSION FROM ROWIDS (cr=20039 pr=1 pw=0 time=258455 us)
      0       INDEX RANGE SCAN TEST_IDX1 (cr=20039 pr=1 pw=0 time=157107 us)(object id 52988)
      0      BITMAP CONVERSION FROM ROWIDS (cr=19902 pr=1 pw=0 time=198466 us)
      0       INDEX RANGE SCAN TEST_IDX2 (cr=19902 pr=1 pw=0 time=109999 us)(object id 52989)
      0      BITMAP CONVERSION FROM ROWIDS (cr=19943 pr=1 pw=0 time=198730 us)
      0       INDEX RANGE SCAN TEST_IDX3 (cr=19943 pr=1 pw=0 time=107200 us)(object id 52990)As you can see the number of LIO calls fallen dramatically. Also CPU time is significantly less.
The second code completed in few seconds compared to the previous one which needed about 100 seconds to complete.
Please be aware that this is just an example of tuning the code that you provided.
This solution might not be suitable for your actual code, since we don't have any information about it. That's why it is important to give us as much information as you could, so you can get the most appropriate answer.
If the test code is similar to the actual one, you should focus on reducing LIOs calls.
In order to achieve it, you may want to use hints to force an index to be used.
Cheers,
Mihajlo

Similar Messages

  • High CPU usage when selecting certain emails

    I experience (above) 100% CPU usage in Mail.app when selecting certain emails. Mostly emails from the same sender.
    The emails contain MIME multipart data. One part is BASE64 encoded text, the other is quoted-printable encoded HTML.
    I can see in the process trace that two threads seem to be thrashing around in MFRedundantTextIdentifier.
    CPU usage goes up. I can still use the application (it is not blocked). But it cannot be quit normally (only with force quit).
    Apple engineers: this must be something that you would wish to find and fix?
    Any help with diagnosing would be greatly appreciated!
    Sincerely.
    -dennis

    Maybe my initial post was not clear so let me add some clarifications.
    I have the problem with Aero disabled
    I have the problem on the Apple site which does not have any flash content.
    I have already hacked the lastest nvidia drivers to get them on my system which did not change anything. Can you provide a link to some other 'supported' beta drivers?
    I am using the new 13 inch air so it has the newer graphics card so I would expect it to be faster than an old HTPC with a 9400m in it. I wasn't stating that my Air had a 9400m.
    It would be great if someone you also do the test to check the cpu load:
    - when playing a 720 mkv
    - when dragging a window across the screen
    Just open task manager and see if the CPU spikes.
    Many thanks!

  • High CPU usage running select from dba_ts_quotas

    We recently installed grid agent on a DEV box and have seen out CPU spike like crazy at times. I have 10 instances running on this box (cringe), they are at different versions from 10 -11G. The agent is at 10.2.0.4.
    I looked up the query that's eating my CPU and got the following:
    /* OracleOEM */
    SELECT 'table_space_quotas',
    USERNAME,
    TABLESPACE_NAME
    FROM dba_ts_quotas
    WHERE (max_bytes = -1
    OR max_blocks = -1)
    AND username NOT IN ('SYS','SYSTEM','SYSMAN','CTXSYS',
    'MDSYS','ORDSYS','ORDPLUGINS','OLAPSYS',
    'DBSNMP','MGMT_VIEW','OUTLN','ANONYMOUS',
    'DMSYS','EXFSYS','LBACSYS','SI_INFORMTN_SCHEMA',
    'SYSMAN','WKPROXY','WKSYS','WK_TEST',
    'WMSYS','XDB','TRACESVR','SCOTT',
    'ADAMS','BLAKE','CLARK','JONES',
    'HR')
    AND ROWNUM <= DECODE(:1,'-1',2147483647,
    :1)
    ORDER BY USERNAME
    I've done some research and followed the suggestions:
    There was a suggestion to set the following parameter: set optimizer_secure_view_merging=false
    Disable Security Policty to monitor table spaces
    Nothing seems to help.
    Has anyone else experienced this?

    I know its been a while, but though it worthwhile posting this for others viewing this post
    Try the following from Metalink note #395064.1
    Symptoms
    The following query that is fired from Grid Control once in a day takes a lot of time and it affects the entire performance of Grid Control:
    SELECT 'table_space_quotas', username, tablespace_name
    FROM dba_ts_quotas
    WHERE (max_bytes = -1
    OR max_blocks = -1)
    AND NOT username IN ('SYS', 'SYSTEM', 'SYSMAN', 'CTXSYS', 'MDSYS',
    'ORDSYS', 'ORDPLUGINS', 'OLAPSYS', 'DBSNMP', 'MGMT_VIEW', 'OUTLN',
    'ANONYMOUS', 'DMSYS', 'EXFSYS', 'LBACSYS', 'SI_INFORMTN_SCHEMA',
    'SYSMAN', 'WKPROXY', 'WKSYS', 'WK_TEST', 'WMSYS', 'XDB', 'TRACESVR',
    'SCOTT', 'ADAMS', 'BLAKE', 'CLARK', 'JONES', 'HR')
    AND rownum <= decode(:1, '-1', 2147483647, :1)
    ORDER BY username
    Cause
    The security policy run against the 10.2.0.2 database which ensures database users are allocated a limited tablespace quota is creating the problem.
    Solution
    - From the Grid Control home page click on Targets > Databases > select 10.2.0.2 database.
    - Click on 'Metric and Policy Settings' and select 'Policies' tab.
    - Now search for the Policy Rule 'Unlimited Tablespace Quota' and click on Schedule link.
    - The default collection is every 24 hours. You need to disable Collection Schedule and click
    continue button which will take you back to the previous page.
    - Also select 'Disabled' from the drop down box available near the Policy Evaluation and click continue. After this, the security policy which ensures database users are allocated a limited tablespace quota will not run and the statement won't be executed.

  • XML select query causing very high CPU usage.

    Hi All,
    In our Oracle 10.2.0.4 Two node RAC we are facing very high CPU usage....and all of the top CPU consuming processes are executing this below sql...also these statements are waiting for some gc wiat events as shown below.
    SELECT B.PACKET_ID FROM CM_PACKET_ALT_KEY B, CM_ALT_KEY_TYPE C, TABLE(XMLSEQUENCE ( EXTRACT (:B1 , '/AlternateKeys/AlternateKey') )) T
    WHERE B.ALT_KEY_TYPE_ID = C.ALT_KEY_TYPE_ID AND C.ALT_KEY_TYPE_NAME = EXTRACTVALUE (VALUE (T), '/AlternateKey/@keyType')
    AND B.ALT_KEY_VALUE = EXTRACTVALUE (VALUE (T), '/AlternateKey')
    AND NVL (B.CHILD_BROKER_CODE, '6209870F57C254D6E04400306E4A78B0') =
    NVL (EXTRACTVALUE (VALUE (T), '/AlternateKey/@broker'), '6209870F57C254D6E04400306E4A78B0')
    SQL> select sid,event,state from gv$session where state='WAITING' and event not like '%SQL*Net%';
           SID EVENT                                                            STATE
            66 jobq slave wait                                                  WAITING
           124 gc buffer busy                                                   WAITING
           143 gc buffer busy                                                   WAITING
           147 db file sequential read                                          WAITING
           222 Streams AQ: qmn slave idle wait                                  WAITING
           266 gc buffer busy                                                   WAITING
           280 gc buffer busy                                                   WAITING
           314 gc cr request                                                    WAITING
           317 gc buffer busy                                                   WAITING
           392 gc buffer busy                                                   WAITING
           428 gc buffer busy                                                   WAITING
           471 gc buffer busy                                                   WAITING
           518 Streams AQ: waiting for time management or cleanup tasks         WAITING
           524 Streams AQ: qmn coordinator idle wait                            WAITING
           527 rdbms ipc message                                                WAITING
           528 rdbms ipc message                                                WAITING
           532 rdbms ipc message                                                WAITING
           537 rdbms ipc message                                                WAITING
           538 rdbms ipc message                                                WAITING
           539 rdbms ipc message                                                WAITING
           540 rdbms ipc message                                                WAITING
           541 smon timer                                                       WAITING
           542 rdbms ipc message                                                WAITING
           543 rdbms ipc message                                                WAITING
           544 rdbms ipc message                                                WAITING
           545 rdbms ipc message                                                WAITING
           546 rdbms ipc message                                                WAITING
           547 gcs remote message                                               WAITING
           548 gcs remote message                                               WAITING
           549 gcs remote message                                               WAITING
           550 gcs remote message                                               WAITING
           551 ges remote message                                               WAITING
           552 rdbms ipc message                                                WAITING
           553 rdbms ipc message                                                WAITING
           554 DIAG idle wait                                                   WAITING
           555 pmon timer                                                       WAITING
            79 jobq slave wait                                                  WAITING
           117 gc buffer busy                                                   WAITING
           163 PX Deq: Execute Reply                                            WAITING
           205 db file parallel read                                            WAITING
           247 gc current request                                               WAITING
           279 jobq slave wait                                                  WAITING
           319 LNS ASYNC end of log                                             WAITING
           343 jobq slave wait                                                  WAITING
           348 direct path read                                                 WAITING
           372 db file scattered read                                           WAITING
           475 jobq slave wait                                                  WAITING
           494 gc cr request                                                    WAITING
           516 Streams AQ: qmn slave idle wait                                  WAITING
           518 Streams AQ: waiting for time management or cleanup tasks         WAITING
           523 Streams AQ: qmn coordinator idle wait                            WAITING
           528 rdbms ipc message                                                WAITING
           529 rdbms ipc message                                                WAITING
           530 Streams AQ: waiting for messages in the queue                    WAITING
           532 rdbms ipc message                                                WAITING
           537 rdbms ipc message                                                WAITING
           538 rdbms ipc message                                                WAITING
           539 rdbms ipc message                                                WAITING
           540 rdbms ipc message                                                WAITING
           541 smon timer                                                       WAITING
           542 rdbms ipc message                                                WAITING
           543 rdbms ipc message                                                WAITING
           544 rdbms ipc message                                                WAITING
           545 rdbms ipc message                                                WAITING
           546 rdbms ipc message                                                WAITING
           547 gcs remote message                                               WAITING
           548 gcs remote message                                               WAITING
           549 gcs remote message                                               WAITING
           550 gcs remote message                                               WAITING
           551 ges remote message                                               WAITING
           552 rdbms ipc message                                                WAITING
           553 rdbms ipc message                                                WAITING
           554 DIAG idle wait                                                   WAITING
           555 pmon timer                                                       WAITINGI am not at all able to understand what this SQL is...i think its related to some XML datatype.
    Also not able to generate execution plan for this sql using explain plan- getting error(ORA-00932: inconsistent datatypes: expected - got -)
    Please help me in this issue...
    How can i generate execution plan?
    Does this type of XML based query will cause high GC wiat events and buffer busy wait events?
    How can i tune this query?
    How can i find that this is the only query causing High CPU usage?
    Our servers are having 64 GB RAM and 16 CPU's..
    OS is Solaris 5.10 with UDP as protocol for interconnect..
    -Yasser

    I found some more xml queries as shown below.
    SELECT XMLELEMENT("Resource", XMLATTRIBUTES(RAWTOHEX(RMR.RESOURCE_ID) AS "resourceID", RMO.OWNER_CODE AS "ownerCode", RMR.MIME_TYPE AS "mimeType",RMR.FILE_SIZE AS "fileSize", RMR.RESOURCE_STATUS AS "status"), (SELECT XMLAGG(XMLELEMENT("ResourceLocation", XMLATTRIBUTES(RAWTOHEX(RMRP.REPOSITORY_ID) AS "repositoryID", RAWTOHEX(DIRECTORY_ID) AS "directoryID", RESOURCE_STATE AS "state", RMRO.RETRIEVAL_SEQ AS "sequence"), XMLFOREST(FULL_PATH AS "RemotePath"))ORDER BY RMRO.RETRIEVAL_SEQ) FROM RM_RESOURCE_PATH RMRP, RM_RETRIEVAL_ORDER RMRO, RM_LOCATION RML WHERE RMRP.RESOURCE_ID = RMR.RESOURCE_ID AND RMRP.REPOSITORY_ID = RMRO.REPOSITORY_ID AND RMRO.LOCATION_ID = RML.LOCATION_ID AND RML.LOCATION_CODE = :B2 ) AS "Locations") FROM RM_RESOURCE RMR, RM_OWNER RMO WHERE RMR.OWNER_ID = RMO.OWNER_ID AND RMR.RESOURCE_ID = HEXTORAW(:B1 )
    SELECT XMLELEMENT ( "Resources", XMLAGG(XMLELEMENT ( "Resource", XMLATTRIBUTES (B.RESOURCE_ID AS "id"), XMLELEMENT ("ContentType", C.CONTENT_TYPE_CODE), XMLELEMENT ("TextExtractStatus", B.TEXT_EXTRACTED_STATUS), XMLELEMENT ("MimeType", B.MIME_TYPE), XMLELEMENT ("NumberPages", TO_CHAR (B.NUM_PAGES)), XMLELEMENT ("FileSize", TO_CHAR (B.FILE_SIZE)), XMLELEMENT ("Status", B.STATUS), XMLELEMENT ("ContentFormat", D.CONTENT_FORMAT_CODE), G.ALTKEY )) ) FROM CM_PACKET A, CM_RESOURCE B, CM_REF_CONTENT_TYPE C, CM_REF_CONTENT_FORMAT D, ( SELECT XMLELEMENT ( "AlternateKeys", XMLAGG(XMLELEMENT ( "AlternateKey", XMLATTRIBUTES ( H.ALT_KEY_TYPE_NAME AS "keyType", E.CHILD_BROKER_CODE AS "broker", E.VERSION AS "version" ), E.ALT_KEY_VALUE )) ) ALTKEY, E.RESOURCE_ID RES_ID FROM CM_RESOURCE_ALT_KEY E, CM_RESOURCE F, CM_ALT_KEY_TYPE H WHERE E.RESOURCE_ID = F.RESOURCE_ID(+) AND F.PACKET_ID = HEXTORAW (:B1 ) AN
    D E.ALT_KEY_TYPE_ID = H.ALT_KEY_TYPE_ID GROUP BY E.RESOURCE_ID) G WHERE A.PACKET_ID = HEXTORAW (:B1
    SELECT XMLELEMENT ("Tagging", XMLAGG (GROUPEDCAT)) FROM ( SELECT XMLELEMENT ( "TaggingCategory", XMLATTRIBUTES (CATEGORY1 AS "categoryType"), XMLAGG (LISTVALUES) ) GROUPEDCAT FROM (SELECT EXTRACTVALUE ( VALUE (T), '/TaggingCategory/@categoryType' ) CATEGORY1, XMLCONCAT(EXTRACT ( VALUE (T), '/TaggingCategory/TaggingValue' )) LISTVALUES FROM TABLE(XMLSEQUENCE(EXTRACT ( :B1 , '/Tagging/TaggingCategory' ))) T) GROUP BY CATEGORY1)
    SELECT XMLCONCAT ( :B2 , DI_CONTENT_PKG.GET_ENUM_TAGGING_FN (:B1 ) ) FROM DUAL
    SELECT XMLCONCAT (:B2 , :B1 ) FROM DUAL
    SELECT * FROM EQ_RAW_TAG_ERROR A WHERE TAG_LIST_ID = :B2 AND EXTRACTVALUE (A.RAW_TAG_XML, '/TaggingValues/TaggingValue/Value' ) = :B1 AND A.STATUS = '
    NR'
    SELECT RAWTOHEX (S.PACKET_ID) AS PACKET_ID, PS.PACKET_STATUS_DESC, S.LAST_UPDATE AS LAST_UPDATE, S.USER_ID, S.USER_COMMENT, MAX (T.ALT_KEY_VALUE) AS ALTKEY, 'Y' AS IS_PACKET FROM EQ_PACKET S, CM_PACKET_ALT_KEY T, CM_REF_PACKET_STATUS PS WHERE S.STATUS_ID = PS.PACKET_STATUS_ID AND S.PACKET_ID = T.PACKET_ID AND NOT EXISTS (SELECT 1 FROM CM_RESOURCE RES WHERE RES.PACKET_ID = S.PACKET_ID AND EXISTS (SELECT 1 FROM CM_REF_CONTENT_FORMAT CF WHERE CF.CONTENT_FORMAT_ID = RES.CONTENT_FORMAT AND CF.CONTENT_FORMAT_CODE = 'I_FILE')) GROUP BY RAWTOHEX (S.PACKET_ID), PS.PACKET_STATUS_DESC, S.LAST_UPDATE, S.USER_ID, S.USER_COMMENT UNION SELECT RAWTOHEX (A.FATAL_ERROR_ID) AS PACKET_ID, C.PACKET_STATUS_DESC, A.OCCURRENCE_DATE AS LAST_UPDATE, '' AS USER_ID, '' AS USER_COMMENT, RAWTOHEX (A.FATAL_ERROR_ID) AS ALTKEY, 'N' AS IS_PACKET FROM EQ_FATAL_ERROR A, EQ_ERROR_MSG B, CM_REF_PACKET_STATUS C, EQ_SEVERITYD WHERE A.PACKET_ID IS NULL AND A.STATUS = 'NR' AND A.ERROR_MSG_ID = B.ERROR_MSG_ID AND B.SEVERITY_I
    SELECT /*+ INDEX(e) INDEX(a) INDEX(c)*/ XMLAGG(XMLELEMENT ( "TaggingCategory", XMLATTRIBUTES ( G.TAG_CATEGORY_CODE AS "categoryType" ), XMLELEMENT ("TaggingValue", XMLATTRIBUTES (C.IS_PRIMARY AS "primary", H.ORIGIN_CODE AS "origin"), XMLAGG(XMLELEMENT ( "Value", XMLATTRIBUTES ( F.TAG_LIST_CODE AS "listType" ), E.TAG_VALUE )) ) )) FROM TABLE (CAST (:B1 AS T_TAG_MAP_HIERARCHY_TAB)) A, TABLE (CAST (:B2 AS T_ENUM_TAG_TAB)) C, REM_TAG_VALUE E, REM_TAG_LIST F, REM_TAG_CATEGORY G, CM_ORIGIN H WHERE E.TAG_VALUE_ID = C.TAG_VALUE_ID AND F.TAG_LIST_ID = E.TAG_LIST_ID AND G.TAGGING_CATEGORY_ID = F.TAGGING_CATEGORY_ID AND H.ORIGIN_ID = C.ORIGIN_ID AND C.ENUM_TAG_ID = A.MAPPED_ENUM_TAG_ID GROUP BY C.IS_PRIMARY, H.ORIGIN_CODE, G.TAG_CATEGORY_CODE START WITH A.MAPPED_ENUM_TAG_ID = HEXTORAW (:B3 ) CONNECT BY PRIOR A.MAPPED_ENUM_TAG_ID = A.ENUM_TAG_ID
    SELECT /*+  INDEX(e) */ XMLAGG(XMLELEMENT ( "TaggingCategory", XMLATTRIBUTES ( G.TAG_CATEGORY_CODE AS "categoryType" ), XMLELEMENT ( "TaggingValue", XMLATTRIBUTES (C.IS_PRIMARY AS "primary", H.ORIGIN_CODE AS "origin"), XMLAGG(XMLCONCAT ( XMLELEMENT ( "Value", XMLATTRIBUTES ( F.TAG_LIST_CODE AS "listType" ), E.TAG_VALUE ), CASE WHEN LEVEL = 1 THEN :B4 ELSE NULL END )) ) )) FROM TABLE (CAST (:B1 AS T_TAG_MAP_HIERARCHY_TAB)) A, TABLE (CAST (:B2 AS T_ENUM_TAG_TAB)) C, REM_TAG_VALUE E, REM_TAG_LIST F, REM_TAG_CATEGORY G, CM_ORIGIN H WHERE E.TAG_VALUE_ID = C.TAG_VALUE_ID AND F.TAG_LIST_ID = E.TAG_LIST_ID AND G.TAGGING_CATEGORY_ID = F.TAGGING_CATEGORY_ID AND H.ORIGIN_ID = C.ORIGIN_ID AND C.ENUM_TAG_ID = A.MAPPED_ENUM_TAG_ID GROUP BY G.TAG_CATEGORY_CODE, C.IS_PRIMARY, H.ORIGIN_CODE START WITH A.MAPPED_ENUM_TAG_ID = HEXTORAW (:B3 ) CONNECT BY PRIOR A.MAPPED_ENUM_TAG_ID = A.ENUM_TAG_IDBy observing above sql queries i found some hints forcing for index usage..
    I think xml schema is created already...and its progressing as you stated above. Please correct if i am wrong.
    I found all these sql from AWR report and all of these are very high resource consuming queries.
    And i am really sorry if i am irritating you by asking all stupid questions related to xml.
    -Yasser
    Edited by: YasserRACDBA on Nov 17, 2009 3:39 PM
    Did syntax allignment.

  • Config Manager Agent - after Hardware Inventory High CPU Usage with WMIPRSVE and very fast empty Battery

    Hi there,
    since a few days there is on some machines (40-60) a high cpu usage on one core (quad core cpu machines) with the WMIPRSVE.EXE if the HARDWARE INVENTORY CYCLE started.
    i try out some tests, read some forum articles and troubleshooting the WMI management but a real problem i doesn´t see.
    in some articles i read that hardware inventory runs about minutes up to more hours but some machines runs longer, someone more as 1 day.
    here an example of mine PC:
    at 8:07 i started Hardware Inventory Cycle, in the InventoryAgent.log i can see that some Collection Namespace are captured.
    after a few minutes there stopped and does nothing round about 5.9 hours or better, after 21436.097 Seconds.
    For any hints i am grateful. :)
    Inventory: *********************** Start of message processing. ***********************
    InventoryAgent 18.03.2015 08:09:56
    11088 (0x2B50)
    Inventory: Message type is InventoryAction InventoryAgent
    18.03.2015 08:09:56 11088 (0x2B50)
    Inventory: Temp directory = C:\WINDOWS\CCM\Inventory\Temp\
    InventoryAgent 18.03.2015 08:09:56
    11088 (0x2B50)
    Inventory: Clearing old collected files. InventoryAgent
    18.03.2015 08:09:56 11088 (0x2B50)
    Inventory: Opening store for action {00000000-0000-0000-0000-000000000001} ...
    InventoryAgent 18.03.2015 08:09:56
    11088 (0x2B50)
    CInvState::VerifyInventoryVersionNumber: Mismatch found for '{00000000-0000-0000-0000-000000000001}': 4.2 vs. 0.0
    InventoryAgent 18.03.2015 08:09:56
    11088 (0x2B50)
    Inventory: Version number mismatch; will do a Full report.
    InventoryAgent 18.03.2015 08:09:56
    11088 (0x2B50)
    Inventory: Action=Hardware, ReportType=ReSync, MajorVersion=5, MinorVersion=0
    InventoryAgent 18.03.2015 08:09:56
    11088 (0x2B50)
    Inventory: Initialization completed in 0.141 seconds
    InventoryAgent 18.03.2015 08:09:56
    11088 (0x2B50)
    Collection: Namespace = \\localhost\root\Microsoft\appvirt\client; Query = SELECT __CLASS, __PATH, __RELPATH, CachedLaunchSize, CachedPercentage, CachedSize, LaunchSize, Name, PackageGUID, TotalSize, Version, VersionGUID FROM Package; Timeout = 600 secs.
    InventoryAgent 18.03.2015 08:09:56
    7836 (0x1E9C)
    Failed to get IWbemService Ptr for \\localhost\root\vm\VirtualServer Namespace: 8004100E
    InventoryAgent 18.03.2015 08:10:02
    7836 (0x1E9C)
    Failed to enumerate instances of VirtualMachine: 8004100E
    InventoryAgent 18.03.2015 08:10:02
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2\sms; Query = SELECT __CLASS, __PATH, __RELPATH, AddressWidth, BrandID, CPUHash, CPUKey, DataWidth, DeviceID, Family, Is64Bit, IsHyperthreadCapable, IsMobile, IsTrustedExecutionCapable, IsVitualizationCapable, Manufacturer,
    MaxClockSpeed, Name, NormSpeed, NumberOfCores, NumberOfLogicalProcessors, PCache, ProcessorId, ProcessorType, Revision, SocketDesignation, Status, SystemName, Version FROM SMS_Processor; Timeout = 600 secs.
    InventoryAgent 18.03.2015 08:10:02
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\CCM\powermanagementagent; Query = SELECT __CLASS, __PATH, __RELPATH, Requester, RequesterInfo, RequesterType, RequestType, Time, UnknownRequester FROM CCM_PwrMgmtLastSuspendError; Timeout = 600 secs.
    InventoryAgent 18.03.2015 08:10:03
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Availability, Description, DeviceID, Manufacturer, Name, Status FROM Win32_IDEController; Timeout = 600 secs.
    InventoryAgent 18.03.2015 08:10:03
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2\sms; Query = SELECT __CLASS, __PATH, __RELPATH, BinFileVersion, BinProductVersion, Description, ExecutableName, FilePropertiesHash, FilePropertiesHashEx, FileSize, FileVersion, HasPatchAdded, InstalledFilePath, IsSystemFile,
    IsVitalFile, Language, Product, ProductCode, ProductVersion, Publisher FROM SMS_InstalledExecutable; Timeout = 600 secs.
    InventoryAgent 18.03.2015 08:10:03
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, DefaultIPGateway, DHCPEnabled, DHCPServer, DNSDomain, DNSHostName, Index, IPAddress, IPEnabled, IPSubnet, MACAddress, ServiceName FROM Win32_NetworkAdapterConfiguration; Timeout
    = 600 secs. InventoryAgent
    18.03.2015 14:06:43 7836 (0x1E9C)
    Collection: Namespace = \\.\root\Nap; Query = SELECT __CLASS, __PATH, __RELPATH, description, fixupState, friendlyName, id, infoClsid, isBound, percentage, registrationDate, vendorName, version FROM NAP_SystemHealthAgent; Timeout = 600 secs.
    InventoryAgent 18.03.2015 14:06:43
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2\sms; Query = SELECT __CLASS, __PATH, __RELPATH, AdditionalProductCodes, CompanyName, ExplorerFileName, FileDescription, FilePropertiesHash, FileSize, FileVersion, FolderPath, LastUsedTime, LastUserName, msiDisplayName,
    msiPublisher, msiVersion, OriginalFileName, ProductCode, ProductLanguage, ProductName, ProductVersion, SoftwarePropertiesHash FROM CCM_RecentlyUsedApps; Timeout = 600 secs.
    InventoryAgent 18.03.2015 14:06:43
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, BankLabel, Capacity, Caption, CreationClassName, DataWidth, Description, DeviceLocator, FormFactor, HotSwappable, InstallDate, InterleaveDataDepth, InterleavePosition, Manufacturer,
    MemoryType, Model, Name, OtherIdentifyingInfo, PartNumber, PositionInRow, PoweredOn, Removable, Replaceable, SerialNumber, SKU, Speed, Status, Tag, TotalWidth, TypeDetail, Version FROM Win32_PhysicalMemory; Timeout = 600 secs.
    InventoryAgent 18.03.2015 14:07:02
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Availability, Description, DeviceID, InstallDate, Manufacturer, Name, PNPDeviceID, ProductName, Status FROM Win32_SoundDevice; Timeout = 600 secs.
    InventoryAgent 18.03.2015 14:07:02
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Caption, ClassGuid, ConfigManagerErrorCode, ConfigManagerUserConfig, CreationClassName, Description, DeviceID, Manufacturer, Name, PNPDeviceID, Service, Status, SystemCreationClassName,
    SystemName FROM Win32_USBDevice; Timeout = 600 secs.
    InventoryAgent 18.03.2015 14:07:12
    7836 (0x1E9C)
    Collection: 62/74 inventory data items successfully inventoried.
    InventoryAgent 18.03.2015 14:07:12
    7836 (0x1E9C)
    Inventory: Collection Task completed in 21436.097 seconds
    InventoryAgent 18.03.2015 14:07:12
    7836 (0x1E9C)
    Inventory: 12 Collection Task(s) failed. InventoryAgent
    18.03.2015 14:07:12 7836 (0x1E9C)
    Inventory: Temp report = C:\WINDOWS\CCM\Inventory\Temp\25bf01b2-12fc-4eea-8e97-a51b3c75ba50.xml
    InventoryAgent 18.03.2015 14:07:12
    7836 (0x1E9C)
    Inventory: Starting reporting task. InventoryAgent
    18.03.2015 14:07:12 7552 (0x1D80)
    Reporting: 4381 report entries created. InventoryAgent
    18.03.2015 14:07:13 7552 (0x1D80)
    Inventory: Reporting Task completed in 1.030 seconds
    InventoryAgent 18.03.2015 14:07:13
    7552 (0x1D80)
    Inventory: Successfully sent report. Destination:mp:MP_HinvEndpoint, ID: {5541A94A-BED9-4132-AE54-110CB6896F02}, Timeout: 80640 minutes MsgMode: Signed, Not Encrypted
    InventoryAgent 18.03.2015 14:07:13
    7552 (0x1D80)
    Inventory: Cycle completed in 21453.570 seconds
    InventoryAgent 18.03.2015 14:07:30
    7552 (0x1D80)
    Inventory: Action completed. InventoryAgent
    18.03.2015 14:07:30 7552 (0x1D80)
    Inventory: ************************ End of message processing. ************************
    InventoryAgent 18.03.2015 14:07:30
    7552 (0x1D80)
    Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, Caption, ClassGuid, ConfigManagerErrorCode, ConfigManagerUserConfig, CreationClassName, Description, DeviceID, Manufacturer, Name, PNPDeviceID, Service, Status, SystemCreationClassName,
    SystemName FROM Win32_USBDevice; Timeout = 600 secs.
    InventoryAgent 18.03.2015 14:07:12
    7836 (0x1E9C)
    Collection: 62/74 inventory data items successfully inventoried.
    InventoryAgent 18.03.2015 14:07:12
    7836 (0x1E9C)
    Inventory: Collection Task completed in 21436.097 seconds
    InventoryAgent 18.03.2015 14:07:12
    7836 (0x1E9C)
    Inventory: 12 Collection Task(s) failed. InventoryAgent
    18.03.2015 14:07:12 7836 (0x1E9C)
    Inventory: Temp report = C:\WINDOWS\CCM\Inventory\Temp\25bf01b2-12fc-4eea-8e97-a51b3c75ba50.xml
    InventoryAgent 18.03.2015 14:07:12
    7836 (0x1E9C)
    Inventory: Starting reporting task. InventoryAgent
    18.03.2015 14:07:12 7552 (0x1D80)
    Reporting: 4381 report entries created. InventoryAgent
    18.03.2015 14:07:13 7552 (0x1D80)
    Inventory: Reporting Task completed in 1.030 seconds
    InventoryAgent 18.03.2015 14:07:13
    7552 (0x1D80)
    Inventory: Successfully sent report. Destination:mp:MP_HinvEndpoint, ID: {5541A94A-BED9-4132-AE54-110CB6896F02}, Timeout: 80640 minutes MsgMode: Signed, Not Encrypted
    InventoryAgent 18.03.2015 14:07:13
    7552 (0x1D80)
    Inventory: Cycle completed in 21453.570 seconds
    InventoryAgent 18.03.2015 14:07:30
    7552 (0x1D80)
    Inventory: Action completed. InventoryAgent
    18.03.2015 14:07:30 7552 (0x1D80)
    Inventory: ************************ End of message processing. ************************
    InventoryAgent 18.03.2015 14:07:30
    7552 (0x1D80)

    InventoryAgent 18.03.2015 08:10:03
    7836 (0x1E9C)
    Collection: Namespace = \\.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, DefaultIPGateway, DHCPEnabled, DHCPServer, DNSDomain, DNSHostName, Index, IPAddress, IPEnabled, IPSubnet, MACAddress, ServiceName FROM Win32_NetworkAdapterConfiguration; Timeout
    = 600 secs. InventoryAgent
    18.03.2015 14:06:43 7836 (0x1E9C)
    Collection: Namespace = \\.\root\Nap; Query = SELECT __CLASS, __PATH, __RELPATH, description, fixupState, friendlyName, id, infoClsid, isBound, percentage, registrationDate, vendorName, version FROM NAP_SystemHealthAgent; Timeout = 600 secs.
    InventoryAgent 18.03.2015 14:06:43
    7836 (0x1E9C)
    Looks like something in one or both of those wmi queries.  it goes from 8:10:03 to 14:06:43 right around there.  6 hours to do that... 
    try running those queries from wbemtest manually; and see which one just never finishes.
    Standardize. Simplify. Automate.

  • High CPU usage

    I'm using Vibe Desktop Version 1.0.1 (17445) on Mac OSX 10.8. During file syncronization there is a realy high CPU load:
    Does anybody else see high CPU usage while using Vibe Desktop?

    Originally Posted by sbuechsenschuetz
    Does anybody else see high CPU usage while using Vibe Desktop?
    I'm the Novell developer responsible for Vibe Desktop and I'm sorry for the delayed response...I've been out of the office. Can you give me a little more information? I want to get a better feel for when the high CPU usage occurs.
    Approximately how many files are synced to your Desktop?
    When you click on the icon in the menu bar and select "Synchronize Now", how long does it take and how is the CPU usage? The first time you sync all the files down to your desktop can take some time, but once everything is in sync, forcing it to synchronize should not be very resource intensive. Is the high CPU utilization only when it is has files to download, or is it also high when there is nothing to download?
    When Vibe Desktop is not syncing, it's still watching the file system for changes you make to the local copies of the files. Do you see noticeable CPU utilization when Vibe Desktop is not syncing?

  • SQL Server 2012 - RESOURCE MONITOR / PREEMPTIVE_XE_CALLBACKEXECUTE high CPU usage

    Hello, 
      We are currently in the process of migrating an existing clustered SQL Server 2008 R2 instance over to a clustered SQL Server 2012 instance as we phase out the Windows Server 2008 with SQL Server 2008 R2.
      The setup is identical for the SQL Server 2012 instance as it is on the SQL Server 2008 R2 instance.  (meaning the RAM and CPU are both the same or better on the SQL Server 2012 instance)
      The process in which we are migrating is that we're moving a few databases over to the new SQL Server 2012 instance each night.  What we've noticed is that the CPU usage is much higher on the SQL Server 2012 instance than on the previous
    SQL Server 2008 R2 instance even though the there is only 1/2 of the databases migrated to the 2012 instance. 
      Running the following script:
    ;with cte ([totalCPU]) as (select sum(cpu) from master.dbo.sysprocesses)
    select
    tblSysprocess.spid
    , tblSysprocess.cpu
    , CONVERT(BIGINT,(tblSysprocess.cpu * CONVERT(BIGINT,100))) / CONVERT(BIGINT, cte.totalCPU) as [percentileCPU]
    , tblSysprocess.physical_io
    , tblSysprocess.memusage
    , tblSysprocess.cmd
    , tblSysProcess.lastwaittype
    from master.dbo.sysprocesses tblSysprocess
    cross apply cte
    order by tblSysprocess.cpu desc
    Produces the following results:
    In a clustered environment, is this normal and if not, does anyone know what this means or how to reduce the CPU usage?
    Thanks.

    Hello,
    The following query may help us identify extended events or audit configurations running on that SQL Server server that are producing that high CPU usage scenario.
    SELECT
    s.name
    AS 'Sessions'
    FROM
    sys.server_event_sessions
    AS s
    WHERE
    s.name
    <> 'system_health'
    and s.name
    <> 'AlwaysOn_health';
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Process high CPU usage

    First of all, sorry for my pour English.
    O.S.:
    pceudb9:~ # cat /etc/*release
    SUSE Linux Enterprise Server 10 (x86_64)
    VERSION = 10
    PATCHLEVEL = 2
    Database:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>
    I'm having this process on TOP whith high CPU usage:
    oracle@pceudb9:~> top
    top - 15:22:25 up 576 days, 21:09, 3 users, load average: 1.32, 1.50, 1.53
    Tasks: 326 total, 1 running, 325 sleeping, 0 stopped, 0 zombie
    Cpu(s): 12.7%us, 0.1%sy, 0.1%ni, 86.7%id, 0.4%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 66012172k total, 61524088k used, 4488084k free, 1595320k buffers
    Swap: 67108856k total, 64748k used, 67044108k free, 18705464k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    16026 oracle 16 0 1440m 807m 20m S 100 1.3 28575:34 /u01/app/oragrid/11.2.0/jdk/jre//bin/java -Doracle.supercluster.cluster.server=eonsd -Djava.net.p
    6925 oracle 16 0 9880 1528 976 R 0 0.0 0:00.01 top
    oracle@pceudb9:~> ps auxww|grep -i 16026|grep -iv grep|grep -iv /u01/app/oragrid/11.2.0/bin/orarootagent.bin
    oracle 16026 16.4 1.2 1475532 826580 ? Sl Jul20 28576:32 /u01/app/oragrid/11.2.0/jdk/jre//bin/java -Doracle.supercluster.cluster.server=eonsd -Djava.net.preferIPv4Stack=true -Djava.util.logging.config.file=/u01/app/oragrid/11.2.0/srvm/admin/logging.properties -classpath /u01/app/oragrid/11.2.0/jdk/jre//lib/rt.jar:/u01/app/oragrid/11.2.0/jlib/srvm.jar:/u01/app/oragrid/11.2.0/jlib/srvmhas.jar:/u01/app/oragrid/11.2.0/jlib/supercluster.jar:/u01/app/oragrid/11.2.0/jlib/supercluster-common.jar:/u01/app/oragrid/11.2.0/ons/lib/ons.jar oracle.supercluster.impl.cluster.EONSServerImpl
    CPU is always 100% (sometimes more...)
    Can somebody help me please? What is this process? This is a bug? I can't find anything on metalink.
    Thanks in advice.
    Regards
    Vitor

    Thanks for reply. Answer for questions:
    There was a bug where if you had a DB that was registered in CRS using an older version of srvctl it would cause eons to spin.
    Is there only one instance on this node? Has it always been 11gR2? Are there repeating messages in $GRID_HOME/log/pceudb9/agent/crsd/oraagent_oracle/oraagent_oracle.log ?
    Edit: I found the MOS note: 1062675.1
    I was remembering the bug incorrectly -- it happens if you register a DB with a newer version of srvctl than the DB is. Same questions would apply, though.
    Is there only one instance on this node?
    oracle@pceudb9:~> ps auxww|grep -i pmon
    oracle 15555 0.0 0.1 190492 88356 ? Ss Jul20 0:05 asm_pmon_+ASM1
    oracle 16181 0.0 50.8 214080 33576804 ? Ss Jul20 1:52 ora_pmon_jpharm1
    oracle 21318 0.0 0.0 3932 836 pts/2 S+ 16:07 0:00 grep -i pmon
    oracle@pceudb9:~>
    Has it always been 11gR2? No. We upgraded this db.
    Are there repeating messages in $GRID_HOME/log/pceudb9/agent/crsd/oraagent_oracle/oraagent_oracle.log ?
    oracle@pceudb9:/u01/app/oragrid/11.2.0/log> ls -ltrh pceudb9/agent/crsd/oraagent_oracle/oraagent_oracle.log
    -rw-r--r-- 1 oracle oinstall 1.9M 2011-11-18 16:10 pceudb9/agent/crsd/oraagent_oracle/oraagent_oracle.log
    tail on file:
    2011-11-18 16:12:02.617: [ora.asm][1510000960] [check] CrsCmd::ClscrsCmdData filter on LAST_SERVER eq pceudb9
    2011-11-18 16:12:02.617: [ora.asm][1510000960] [check] CrsCmd::ClscrsCmdData filter on NAME eq ora.asm
    2011-11-18 16:12:02.617: [ora.asm][1510000960] [check] CrsCmd::stat resName ora.asm statflag 1 useFilter 0
    2011-11-18 16:12:02.617: [ora.asm][1510000960] [check] CrsCmd::ClscrsCmdData::stat entity 1 statflag 1 useFilter 0
    2011-11-18 16:12:02.640: [ora.asm][1510000960] [check] CrsCmd::ClscrsCmdData::stat resname ora.asm 1 1 attr STATE value ONLINE
    2011-11-18 16:12:02.640: [ora.asm][1510000960] [check] CrsCmd::stat resName ora.asm state ONLINE
    2011-11-18 16:12:02.641: [ora.asm][1510000960] [check] CrsCmd::ClscrsCmdData::stat resname ora.asm 1 1 attr STATE_DETAILS value Started
    2011-11-18 16:12:02.641: [ora.asm][1510000960] [check] CrsCmd::stat resName ora.asm state details Started
    2011-11-18 16:12:02.641: [ora.asm][1510000960] [check] CrsCmd::ClscrsCmdData::stat resname ora.asm 1 1 attr INCARNATION value 1
    2011-11-18 16:12:02.641: [    AGFW][1510000960] check for resource: ora.asm pceudb9 1 completed with status: ONLINE
    2011-11-18 16:12:03.117: [    AGFW][1342208320] CHECK initiated by timer for: ora.jpharm.db 1 1
    2011-11-18 16:12:03.118: [    AGFW][1543559488] Executing command: check for resource: ora.jpharm.db 1 1
    2011-11-18 16:12:03.118: [ora.jpharm.db][1543559488] [check] Gimh::check condition (GIMH_NEXT_NUM) 9 exists
    2011-11-18 16:12:03.118: [    AGFW][1543559488] check for resource: ora.jpharm.db 1 1 completed with status: ONLINE
    2011-11-18 16:12:04.117: [    AGFW][1342208320] CHECK initiated by timer for: ora.jpharm.db 1 1
    2011-11-18 16:12:04.118: [    AGFW][1711352128] Executing command: check for resource: ora.jpharm.db 1 1
    2011-11-18 16:12:04.118: [ora.jpharm.db][1711352128] [check] Gimh::check condition (GIMH_NEXT_NUM) 9 exists
    2011-11-18 16:12:04.118: [    AGFW][1711352128] check for resource: ora.jpharm.db 1 1 completed with status: ONLINE
    2011-11-18 16:12:05.117: [    AGFW][1342208320] CHECK initiated by timer for: ora.jpharm.db 1 1
    2011-11-18 16:12:05.118: [    AGFW][1778469184] Executing command: check for resource: ora.jpharm.db 1 1
    2011-11-18 16:12:05.118: [ora.jpharm.db][1778469184] [check] Gimh::check condition (GIMH_NEXT_NUM) 9 exists
    2011-11-18 16:12:05.118: [    AGFW][1778469184] check for resource: ora.jpharm.db 1 1 completed with status: ONLINE
    2011-11-18 16:12:06.117: [    AGFW][1342208320] CHECK initiated by timer for: ora.jpharm.db 1 1
    2011-11-18 16:12:06.118: [    AGFW][1744910656] Executing command: check for resource: ora.jpharm.db 1 1
    2011-11-18 16:12:06.118: [ora.jpharm.db][1744910656] [check] Gimh::check condition (GIMH_NEXT_NUM) 9 exists
    2011-11-18 16:12:06.118: [    AGFW][1744910656] check for resource: ora.jpharm.db 1 1 completed with status: ONLINE
    2011-11-18 16:12:07.117: [    AGFW][1342208320] CHECK initiated by timer for: ora.jpharm.db 1 1
    2011-11-18 16:12:07.118: [    AGFW][1308649792] Executing command: check for resource: ora.jpharm.db 1 1
    2011-11-18 16:12:07.118: [ora.jpharm.db][1308649792] [check] Gimh::check condition (GIMH_NEXT_NUM) 9 exists
    2011-11-18 16:12:07.118: [    AGFW][1308649792] check for resource: ora.jpharm.db 1 1 completed with status: ONLINE
    2011-11-18 16:12:08.117: [    AGFW][1342208320] CHECK initiated by timer for: ora.jpharm.db 1 1
    2011-11-18 16:12:08.118: [    AGFW][1644235072] Executing command: check for resource: ora.jpharm.db 1 1
    2011-11-18 16:12:08.118: [ora.jpharm.db][1644235072] [check] Gimh::check condition (GIMH_NEXT_NUM) 9 exists
    2011-11-18 16:12:08.118: [    AGFW][1644235072] check for resource: ora.jpharm.db 1 1 completed with status: ONLINE
    oracle@pceudb9:/u01/app/oragrid/11.2.0/log>
    Thanks again! :)

  • High CPU usage in cisco 7613 with rsp720-3cxl

    Hi everybody,
    our cisco 7613 has about  4.5 Gbps  Tx/Rx IP traffic in total, and we run ospf with other cisco cloud for routing I list in the following some our router show.what is your idea about our high cpu usage .Is it in normal range with the listed cards and modules.How can I tune the rsp720 and other SIP-200,400,600 for better performances
    why our interrupt rate is high ,and one thing more the total sum of 5sec in separate rows not equal to cpu utilization for five second 50% 
    show proc cpu sor
    CPU utilization for five seconds: 50%/46%; one minute: 54%; five minutes: 59%
     PID Runtime(ms)     Invoked      uSecs   5Sec   1Min   5Min TTY Process
       8   196795220    12640741      15568  1.51%  0.38%  0.26%   0 Check heaps
     224  1048610528  4169501364          0  1.19%  1.45%  1.44%   0 IP Input
      13   374006320  3155162661          0  0.23%  0.26%  0.24%   0 ARP Input
     217   119862004   985030884        121  0.15%  0.32%  0.25%   0 ADJ resolve pro
    c
     185      537716  1825736183          0  0.07%  0.03%  0.02%   0 ACE Tunnel Task
     260     1550992  2983272818          0  0.07%  0.13%  0.15%   0 Ethernet Msec T
    i
     305    38186336    58050485        657  0.07%  0.02%  0.00%   0 XDR mcast
      34       67208    11707798          5  0.07%  0.00%  0.00%   0 IPC Loadometer
      27      232776    57160812          4  0.07%  0.01%  0.00%   0 IPC Periodic Ti
    m
     325    17539200    92894502        188  0.07%  0.15%  0.15%   0 CEF: IPv4 proce
    s
     195     7406636    43782487        169  0.07%  0.00%  0.00%   0 esw_vlan_stat_p
    r
    show ip route summ
    IP routing table name is default (0x0)
    IP routing table maximum-paths is 32
    Route Source    Networks    Subnets     Replicates  Overhead    Memory (bytes)
    static          1           120         0           7620        20812
    connected       0           313         0           18860       53836
    ospf 98         17          4892        0           589020      863984
      Intra-area: 89 Inter-area: 383 External-1: 0 External-2: 0
      NSSA External-1: 0 NSSA External-2: 4437
    bgp 12880       0           1           0           60          172
      External: 1 Internal: 0 Local: 0
    ospf 410        0           269         0           16220       47344
      Intra-area: 1 Inter-area: 0 External-1: 0 External-2: 268
      NSSA External-1: 0 NSSA External-2: 0
    internal        137                                             260544
    Total           155         5595        0           631780      1246692
    sh module
    Mod Ports Card Type                              Model              Serial No.
      1    0  4-subslot SPA Interface Processor-200  7600-SIP-200       
      2    0  4-subslot SPA Interface Processor-400  7600-SIP-400       
      3   24  CEF720 24 port 1000mb SFP              WS-X6724-SFP       
      6    1  1-subslot SPA Interface Processor-600  7600-SIP-600       
      7    2  Route Switch Processor 720 (Active)    RSP720-3CXL-GE     
      8    2  Route Switch Processor 720 (Cold)      RSP720-3CXL-GE     
    show ver
    System image file is "bootdisk:c7600rsp72043-adventerprisek9-mz.122-33.SRE2.bin"
    1 SIP-200 controller .
    1 SIP-400 controller (1 Channelized OC3/STM-1).
    1 SIP-600 controller (1 TenGigabitEthernet).
    2 Virtual Ethernet interfaces
    28 Gigabit Ethernet interfaces
    1 Ten Gigabit Ethernet interface
    1 Channelized STM-1 port
    1 Channelized STM-1 port
    show int vlan 1
      Encapsulation ARPA, loopback not set
      Keepalive not supported
      ARP type: ARPA, ARP Timeout 04:00:00
      Last input 00:00:00, output 00:00:00, output hang never
      Last clearing of "show interface" counters 2d23h
      Input queue: 0/75/2886/1830 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/40 (size/max)
      5 minute input rate 2380531000 bits/sec, 287383 packets/sec
      5 minute output rate 422133000 bits/sec, 254113 packets/sec
      L2 Switched: ucast: 1200869468 pkt, 101172643240 bytes - mcast: 253599 pkt, 78
    873415 bytes
      L3 in Switched: ucast: 60947040633 pkt, 68919665115039 bytes - mcast: 0 pkt, 0
     bytes mcast
      L3 out Switched: ucast: 52594517004 pkt, 9869168832783 bytes mcast: 0 pkt, 0 b
    ytes
         62147839148 packets input, 69016175499764 bytes, 0 no buffer
         Received 257634 broadcasts (0 IP multicasts)
         0 runts, 0 giants, 15 throttles
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
         53647248858 packets output, 10292998021217 bytes, 0 underruns
         0 output errors, 0 interface resets
         0 unknown protocol drops
         0 output buffer failures, 0 output buffers swapped out

    Thank you for your hints and replying
    These are our show ibc in 1 min interval
    Interface information:
            Interface IBC0/0
            5 minute rx rate 20045000 bits/sec, 30183 packets/sec
            5 minute tx rate 47394000 bits/sec, 60212 packets/sec
            19879272237 packets input, 4006174536193 bytes
            19835355282 broadcasts received
            19808585787 packets output, 3981305571968 bytes
            90548 broadcasts sent
            0 Bridge Packet loopback drops
            19756362091 Packets CEF Switched, 1320184 Packets Fast Switched
            0 Packets SLB Switched, 0 Packets CWAN Switched
            Label switched pkts dropped: 0    Pkts dropped during dma: 339549
            Invalid pkts dropped: 0    Pkts dropped(not cwan consumed): 0
            IPSEC pkts dropped: 635184
            Xconnect pkts processed: 0, dropped: 0
            Xconnect pkt reflection drops: 0
            Total paks copied for process level 0
            Total short paks sent in route cache 2605317676
            Total throttle drops 265338    Input queue drops 5831090
            total spd packets classified (120217214 low, 174503 medium, 3073 high)
            total spd packets dropped (339549 low, 0 medium, 0 high)
            spd prio pkts allowed in due to selective throttling (0 med, 0 high)
            IBC resets   = 1; last at 23:52:49.004 Sat Jan 19 2013
    Driver Level Counters: (Cumulative, Zeroed only at Reset)
              Frames          Bytes
      Rx(0)   26537712        3421085217
      Rx(1)   3449063135      2838813650
      Tx(0)   3390340306      2016620276
     Input Drop Frame Count
         Rx0 = 0                Rx1 = 2488435
     Per Queue Receive Errors:
         FRME   OFLW   BUFE   NOENP  DISCRD DISABLE BADCOUNT
     Rx0 0      0      0      0      0        0    0
     Rx1 0      0      0      3633   0        0    0
      Tx Errors/State:
       One Collision Error   = 0            More Collisions       = 0
       No Encap Error        = 0            Deferred Error        = 0
       Loss Carrier Error    = 0            Late Collision Error  = 0
       Excessive Collisions  = 0            Buffer Error          = 0
       Tx Freeze Count       = 0            Tx Intrpt Serv timeout= 1
       Tx Flow State         = FLOW_ON
       Tx Flow Off Count     = 0            Tx Flow On Count      = 0
      Counters collected at Idb:
       Is input throttled    = 0            Throttle Count        = 0
       Rx Resource Errors    = 0            Input Drops           = 2488435
       Input Errors           = 194243
       Output Drops          = 0            Giants/Runts          = 0/0
       Dma Mem Error         = 0            Input Overrun         = 0
    Hash match table for multicast (in use 0, maximum 64 entries):
    show ibc 
    Interface information:
            Interface IBC0/0
            5 minute rx rate 20194000 bits/sec, 30412 packets/sec
            5 minute tx rate 47753000 bits/sec, 60663 packets/sec
            19891125514 packets input, 4007158118761 bytes
            19847185365 broadcasts received
            19820407164 packets output, 3982279276274 bytes
            90576 broadcasts sent
            0 Bridge Packet loopback drops
            19768178233 Packets CEF Switched, 1321008 Packets Fast Switched
            0 Packets SLB Switched, 0 Packets CWAN Switched
            Label switched pkts dropped: 0    Pkts dropped during dma: 339549
            Invalid pkts dropped: 0    Pkts dropped(not cwan consumed): 0
            IPSEC pkts dropped: 635574
            Xconnect pkts processed: 0, dropped: 0
            Xconnect pkt reflection drops: 0
            Total paks copied for process level 0
            Total short paks sent in route cache 2606549061
            Total throttle drops 265338    Input queue drops 5831090
            total spd packets classified (120252754 low, 174531 medium, 3074 high)
            total spd packets dropped (339549 low, 0 medium, 0 high)
            spd prio pkts allowed in due to selective throttling (0 med, 0 high)
            IBC resets   = 1; last at 23:52:49.004 Sat Jan 19 2013
    Driver Level Counters: (Cumulative, Zeroed only at Reset)
              Frames          Bytes
      Rx(0)   26550723        3422835145
      Rx(1)   3461063605      176652699
      Tx(0)   3402319442      3368513724
     Input Drop Frame Count
         Rx0 = 0                Rx1 = 2490155
     Per Queue Receive Errors:
         FRME   OFLW   BUFE   NOENP  DISCRD DISABLE BADCOUNT
     Rx0 0      0      0      0      0        0    0
     Rx1 0      0      0      3633   0        0    0
      Tx Errors/State:
       One Collision Error   = 0            More Collisions       = 0
       No Encap Error        = 0            Deferred Error        = 0
       Loss Carrier Error    = 0            Late Collision Error  = 0
       Excessive Collisions  = 0            Buffer Error          = 0
       Tx Freeze Count       = 0            Tx Intrpt Serv timeout= 1
       Tx Flow State         = FLOW_ON
       Tx Flow Off Count     = 0            Tx Flow On Count      = 0
      Counters collected at Idb:
       Is input throttled    = 0            Throttle Count        = 0
       Rx Resource Errors    = 0            Input Drops           = 2490155
       Input Errors           = 194358
       Output Drops          = 0            Giants/Runts          = 0/0
       Dma Mem Error         = 0            Input Overrun         = 0
    Hash match table for multicast (in use 0, maximum 64 entries):
    and sorry what is your idea about total sum of 5sec in separate rows not equal to cpu utilization for five second 50% 

  • Why does my cq-62 laptop gives me warnings about High CPU usage?

    I have a CQ61-420US Notebook with Nortons 360 installed. Recently I have been getting a warning pop-up from Nortons saying, I have High CPU usage. When I check the box I am taken to a Norton System performance page that indicates 90% CPU usage. Can anyone help?

    Right click on the taskbar empty space and select "Start Task Manager", you can leave it running and minimize it, it will give you an animated graph in the taskbar you can watch.
    Depending on what your are doing on the PC, this may or may not be a problem.
    If you are not doing much on the PC when it uses 90% then there could be a problem.

  • Mdworker process suddenly high CPU usage

    Hi All
    I've been running Mountain Lion since it was released, upgrading from Lion. I've never had a problem with mdworker until a few days ago when suddenly, the mdworker process started hitting 90% CPU on my iMac.
    I've disabled Spotlight, deleted the .Spotlight directories, rebooted the iMac, but each time mdworker . Prior to this, the iMac's CPU temperature was around 43C, with very little CPU usage, but now it is around 60C and 100% across the two cores. The only way to 'get back to normal' is to use :
    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
    but of course Spotlight doesn't work at all.
    I've used 'sudo fs_usage -w -f filesys mdworker' but I can't see anything that mdworker is perhaps choking on.
    Does any have any ideas? I'm racking my brain to remember if I did anything different a few days back that might have caused this to happen, but apart from just normal email and web surfing, nothing else springs to mind.
    Help!
    Paul

    David Losada
    This solved my questionRe: mdworker process suddenly high CPU usage     Nov 28, 2012 1:41 AM    (in response to antobal) 
    In my case it was the BritannicaBookmark.mdimporter that was a PowerPC mdimporter. But it was not in \library\spotlight but inBritannica 12.0/Ultimate Reference Suite.app/Contents/Library/Spotlight.
    You can see what spotlight plugin is choking on you by selecting the mdworker process in the Activity monitor and click on Open files and processes.
    Sounds helpful, but I don't see "Open files and processes" in Activity Monitor. If I click on inspect, I get a choice to "Sample" processes. I get a system log that is a bit beyond me.
    antobal Brussels, Belgium
    Re: mdworker process suddenly high CPU usage     Oct 3, 2012 12:47 PM    (in response to asfafa) 
    I was having the same problem, and a second level support person at Apple helped me solve the issue today:
    Look in the \library\spotlight folders both at your drive root level and your user folder. These folders contain spotlight plugins, with the extension .mdimporter. Some of those plugins, if defective, can make the Spotlight indexing processes to run continuously.
    Also sounds helpful, I found .mdimporter files in my system library, but nothing looked unusual. I didn't see a spotlight folder in my user library. I looked in application support and several other places. I used Onyx to repair permissions, rebuild spotlight index, clear caches etc, rebooted, it seems to be OK now.

  • High cpu usage by query

    We have a table named "tbl_geodata" which has address and latitude and longitude values. We
    also have a "History" table which has only latitude and longitude values including other information. What we need is like following...
    We get a set of records based on a query from "History" (lat long values), say 5000 records
    Now we are using the following formula to calculate address from the "tbl_geodata" for each row
    (5000 rows).
        SELECT top 1 geo_street,geo_town,geo_country,( 3959 acos( cos( radians(History.lat) ) cos( radians(
    gps_latitude ) ) cos( radians( gps_longitude ) - radians(History.long) ) + sin( radians(History.lat) ) sin( radians( gps_latitude ) ) ) ) AS distance FROM tbl_geodata ORDER BY distance
    Currently we are seeing high cpu utilisation and performance issue. What would be the optimized way to do
    this

    We are using SQL Server Web Edition. We have a table which has around 120 million records (every second around 100 insertion). It has a AFTER INSERT trigger to update another table. There is following performance issue we are facing. 
    High CPU Usage
    Insertion failed (Connection Timeout Expired.  The timeout period elapsed during the post-login phase.  The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting
    to create multiple active connections.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=0; handshake=10046; [Login] initialization=0; authentication=0; [Post-Login] complete=3999;)
    Insertion Failed (A severe error occurred on the current command.  The results, if any, should be discarded.)
    Insertion Failed (Some time we are getting connection pool error.. There is no limit set in the connection string)
    I ran sp_who2 command and found a lot of queries are in suspended mode..
    here is the "sys.dm_os_sys_info" result...
    cpu_count   hyperthread_ratio
    physical_memory_in_bytes virtual_memory_in_bytes
    8                   8
                                12853739520
                 8796092891136
    Can anyone please suggest the improvement steps...

  • Skype on older PC, high cpu usage

    Hi all!
    Tried recently to use my old PC (Pentium4, 2.0GHz, 1G memory) as skype machine. All went well except when using video+audio, it wasn't enough cpu to handle that. Cpu usage was 100% and there was latency in video and audio. Tested that in local area network. Then what I found, much of the load went from pulseaudio (skype about 60%, pulseaudio about 40%). I installed the thing since GNOME without pulseaudio is somewhat broken. Then I googled and tried to tune pulseaudio:
    From https://wiki.archlinux.org/index.php/PulseAudio, I implemented what said in "Glitches and high CPU usage since 0.9.14", it helped with sound quality.
    From http://www.pulseaudio.org/wiki/PerfectSetup, in file /etc/pulse/daemon.conf
    default-fragments = 8
    default-fragment-size-msec = 5
    And, finally, from http://linux.die.net/man/5/pulse-daemon.conf
    resample-method=trivial
    Something helped, after that PA cpu share dropped to about 15%, and I was able to skype with audio and video, even having couple % of cpu idle
    Now comes interesting part: I went to gstreamer-properties and selected audio output to pulse. PA cpu load went back to 35%. Then a reverted it back to "auto detect", cpu load subsided to 15%. Then I remembered seeing somewhere that skype through PA emulation of ALSA takes less CPU than throug PA directly
    Then I went to sleep
    Any more ideas how to further optimize PA/skype to be able running skype on slow PC? I even consider removing PA altogether but I'm worried about setting sound in GNOME.
    Anton

    Did the sharing and unsharing of screen stabilise your CPU usage? I also tried deleting the Library/Caches/com.skype* directory and whilst it helped initially, in the long run it did not work. The only thing that worked for me was sreen share and unshare.
    Personally I am just getting more and more disappointed with OS X. The way they have implemented HiDPI support with scaling (downscaling and then upscaling) is just insane and a lot of applications struggle. I am sure this is not the root cause of the high CPU usage issue for Skype. It's not long before I come off the Apple ecosystem altogether.

  • Unusually High CPU usage by almost all programs

    I have a BIG problem with my computer. It start over a week ago and ever since, I've been trying to fix it. The problem is that almost all programs I use takes up 100% of my CPU usage. The only thing that doesn't are window's program but they also take up a lot of CPU usage. It is not the usual 1-3 sec of high CPU usage that all programs use. It is high CPU usage for a long period of time. A Youtube video causes my CPU to go to 100% just by playing it. Also, scans, surfing the web and other things cause it to go up. My computer runs really slow because of this. It is about 2-3 times slower. This is strange because my computer would rarely ever go over 60% for longer than 5 seconds. The memory amount taken up from my programs are not unusual. Its just that CPU part is way to high. I am un-able to play a game and open a web browser without massive lag on both programs. I have done everything I can. I did a restore for a day before this happened and it didn't work. I scanned for viruses with McAfee Microsoft essentials and Ad-ware antivirus and removed all threats. I have clean my computer with CCleaner and Advanced system care. I have scanned for spyware with spybot S&D, Superantispyware. I have checked for malware with Malewarebytes. But the problem is not solved. I really need the help. If you want me to download something to scan my computer I'm up for it because currently, I'm desperate.
    Another thing. I have an Intel Core 2 Quad CPU. But, in msconfig, I cannot select 4 processors in advance options in the boot section. I only shows 1 for some reason. I could really use the help.
    These are my specs
    HP Pavilion a6554f Desktop PC
    Intel Core 2 Quad CPU 2.40Ghz
    5.00 GB of RAM
    Motherboard is PEGATRON CORPORATION Benicia 1.01
    BIOS: American Megatrends Inc. 5.22 03/28/2008
    I have windows vista 64-bit Home Premium

    Hi,
    In the Advanced Boot Option of the System Configuration window, if there is a tick in the box next to 'Number of Processors', click the box to remove it, click OK, click Apply and then OK in the previous window and then restart the PC for the change to take effect.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Securityd - high cpu usage. Yosemite 10.10.3

    Hi,
    I have upgraded to 10.10.3 and I am having issues with the process securityd. It constantly has high cpu usage and its causing the cpu temp to heat up. I did a clean install of yosemite at 10.10.2. Also other weird stuff is happening, such as when i click the button to open the notification/today sidebar, it gets highlighted so i know it has registered the click but the sidebar doesn't open. When i click it again, it opens.
    Any Ideas to fix this that ideally don't require a full reinstall (Doing exams at the moment, takes time to reinstall stuff).
    I have the latest 15 inch retina macbook pro. 2.2 i7 and 16gb ram.
    Thanks,
    Areeb

    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /var/db/CodeEquivalenceDatabase
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator login password. Restart the computer and empty the Trash.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for

  • Macbook Pro 15" Model - Native/Forced Resolutions

    I'm looking into buying a 15" Macbook Pro, but the only thing holding me back is it seems like it can only support 1440x900 as its native. Is there an upgrade I can buy for it from apple to achieve somewhere around 1920x1200 like the 17" model, or is

  • Lumia 720. video recording

    Hi all, I notied recently that when recording video in 720p the video stops and start every 2-3 seconds on playback. it seems to record fine on low res but not hi. Ive tried recording to phone memory and  sd card, niether make any difference. amber u

  • Camera Connection Kit Ipad 2 and Sony Video Camera

    I have got the camera  connection kit and I want to beable to put my sony video on my ipad but when i plug in the sd card to the ipad the video do not show up.  I also have converted the video to the MPEG-4.  Any kind of help would be greatly appreci

  • MacBook Pro RMA Procedure for Apple Canada?

    Hi everyone. I am new to the world of macs and is wondering if you guys can help me. I've bought a macbook pro through apple.ca. Unfortunately the MacBook Pro is dead on arrival. I called AppleCare and they say they would offer me a RMA and send me a

  • IDVD freezes when encoding audio

    Whenever the project is done encoding the video, it freezes right when it gets to the encoding audio process.