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.

Similar Messages

  • 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

  • High CPU usage when downloading from ITunes Match

    When attempting to download matched songs from ITunes Match, ITunes utilization spikes to over 70% and makes it almost impossible to do any other function on the computer.  Eventually ITunes fails to respond.  I have tried several remedies including reseting winsock.  Is there any other options I should try?

    Hiya,
    could it have something to do with the write speed/ cache/ram? On a "slow" disk, or one that is nearly full or one that is partitioned, it will take a great deal more ram and cache to "digest" the faster download and write it onto disk. I tend to do downloads to a separate drive. Have you got one? and can you repeat the high CPU usage when downloading / saving to the external drive? I note your drive might have 5,400 rpm, with "just" 8mB cache and 320 GB (quite a few SATA's have 7,200 rpm and 32 mB cache).
    NB: If anything, I found SL more efficient, especially on my 4 year old Macbook, which is running much faster and has got more responsive after installation of (full version of) SL.
    Message was edited by: Alexandre

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

  • Safari webpage preview fetcher high CPU usage, runs hot Macbook Pro, fan

    Even when turned off in Safari Preferences, safari webpage preview fetcher starts up and starts using high CPU % (99.8% when checked on Activity Monitor!). Macbook starts running hot, fan starts running on high. You can force quit safari webpage preview fetcher in Activity Monitor, but it starts itself back up again!

    Well, I disabled safari webpage preview in preferences, and rebooted, zapping the pram and it hasn't restarted, and I haven't had the high fan / hot running so yay!

  • High CPU usage after export from iMovie

    Makes you go hmmmmm...... Mavericks 10.9.4, 2.3 GHz i7 16 GB 1 TB. 33% full. A 32 minute camcorder movie. No editing just export. Latest iMovie and everything else no added plugins or 3rd party anything. While exporting the movie 1280X720 it uses about 200% CPU (2 virtual cores)? After the export is done it starts using about 350% CPU and will do so forever. I thought maybe it was straigtening up afterwards but it went on for about a half hour. This causes me no problems but like I said it made me go hmmmmmmm..... In case you couldn't tell I'm a newbie. I had XP for about 800 years and this is my Christmas present. It's wonderful.

    Yes they are in the same folder. After I added my Exchange account under Configuration | Mail, Contacts & Calendar, mail started to eat CPU time. If I look a the activity window of mail I see a message "downloading incoming messages" in chunks of 50-100 messages every few minutes. Maybe this is the downloading of bodies (and attachements) of my large 50K messages archive map.
    I just disabled the mail part of the Exchange account under Configuration | Mail, Contac ts & Calendar and the CPU eating seems to stop. I'll just see the coming hours.
    I currently do not use any mail plugins.

  • High CPU usage - Rapid Battery Drain - Running HOT

    Looking for help.. PLEASE!
    Z10 - Model STL100-3 Software release 10.2.1.2179
    Symptoms;
    Occasionally, and for no apparent reason, I notice my Z10 getting hot in my pocket. I run the device monitor App and see a very high CPU usage, which consequently drains the batter very quickly.
    I've tried all the solutions from every support group thread and blog. And I mean ALL!
    Pulling the battery
    Replaced the battery
    Removed the SIM
    Deleted G Mail
    Removed all 3rd party Apps (2)
    Stopped email sync
    Stopped calendar sync
    Turned off all radio
    Turned Off Wi-Fi
    Let it sit for hours, even days to let it finish doing whatever its trying to do
    Etc Etc Etc.
    Finally, I called BB support, they wanted $50 to talk to someone. I told them the issue, they said the device is bad and must be replaced. I said its software related!! They said.. no, its a hardware issue. Device is under warranty and they want me to just go get a new one. I don't want a new one, I want a fix! Stop the waste of BB $
    Temporary solution
    Eventually, I decided I would do a restore, back to the factory settings, and here's when I found something
    I run BB Link, connect the device, do a back-up... and LOW AND BEHOLD.. this fixes the high CPU usage and the device runs great, very cool, low cpu and extremely long battery life.
    Sadly! .. this problem reoccurs, after a few days, sometimes after a couple of weeks and just out of the blue.
    I can force this fault to occur, simply by doing a restart of the device. Sure enough, it will run hot, use all the cpu and I will have to do a back-up to get it to settle down again. I've tried to wait for the so called 'indexing' to finish, but it never stops running with high cpu and doesn't help.
    Can any one tell me whats happening and how to make this a permanent fix?
    There are hundreds if not thousands of people having very similar issues, and many different methods to fix it. Its my belief that there is an underlying bigger problem that relates to all these differing fixes, but as yet.. I cant find it and none of these fixes work for me. For now... I will keep doing the occasional back-up and hope I get a response that can help.
    Thanks to all that read this.

    curve8530curve8330 wrote:
    The heat may be normal. After a little water damage incident, which I repaired, I disassembled my Z10 the find a small heat sink will thermal compound. This helps dissipate heat efficiently. I found a large number of air bubbles and possibly a large air pocket by the way the paste stuck to both sides. I removed the old paste and replaced it with artic silver paste and the z10 has been much much cooler. It use to run about 105*f and now it is around 85*f.
    See this thread I posted for before and after pictures using a thermal imager.
    http://supportforums.blackberry.com/t5/BlackBerry-​Z10/Z10-heating-up-fix/m-p/3031220#M71390
    @Curve8530 .....as much a s your discovery is appreciated, I hardly believe that most people will actually dismantle their phone to remove the paste and replace with arctic silver. Besides, what you are doing is not a fix for the actual problem....
    In most cases, this heat is associated with apps using the CPU resources beyond the normal limits.
    As an easy fix, finding and removing the app(s) in question followed by a reboot, solves the issue. In some cases an OS reload is necessary.... but under no circumstances I would even remotely suggest to any member to dismantle their phone and do what you did...     

  • High CPU usage (more than 100%) while running video applications

    Hello everyone,
    I desperately need help with this.
    I have a late 2007 White Macbook running Mac OS X 10.6.8 :
    Model Name:          MacBook
      Model Identifier:          MacBook2,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          4 MB
      Memory:          3 GB
      Bus Speed:          667 MHz
    The issue that I am having is, whenever I play a video (Netflix/Silverlight player, YouTube, Skype, etc.) the CPU usage shoots up above 100% and the video or the video chat becomes VERY choppy. It becomes impossible to keep going once that starts. Originally I had 1Gb RAM (512 + 512) ... then I upgraded to (1GB + 512mb) ... it was fine for about a year and then started chocking on memory... so recently I made it (1GB +2GB) and that's when this high CPU  usage thing started (according to my knowledge)
    I have had this machine since last 4 years and its very dear to me. I dont wanna buy a new one. I will really appreciate if someone could help.

    I am spending sleepless nights, researching for a fix. From what I found so far, a considerable amount of people were able to fix this issue by simple cleaning the insides of their machines using air dusters, especially the fans. I don't know how cleaning would help with CPU utilization, but by interpolation, I feel it's worth a try. At least it will be clean, if not perfectly functional. lol
    Now the next big challenge ahead of me is getting the screws on my Macbook open. I was following the Fan Repair Guide on ifixit.com. I went and got the #00 Phillips screwdriver as suggested in the guide... came home and found out the screwdriver is too big.... went back got a #0000 Phillips (I also found out that screwdrivers with same number might be of different sizes in different stores)... got a couple of screws out and then--- another road-block!! there are a few extremely tiny Phillips screws on my macbook. Now I am hunting for the smallest Phillips screwdriver in the world. Hopefully, I will find it in some watch repair or eye-glasses repair kit in a store such as CVS or Walgreens... aaaah... this is sooo frustrating!!! I just want to get his done so that I can check it off the list of probable solutions that I want to try. Will update here if this works.
    From what you say, I think that the Silverlight upgrade might be the culprit in my case too. But the effect is there also for Youtube, Skype , or any other Video/Graphics intensive application that I use. Although, Silverlight/Netflix performs the worst among all the apps.
    I love my Macbook... don't want to part with it.

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

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

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

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

Maybe you are looking for

  • I am having a major problem saving with keynote 6.2.

    I recently bought a new MacBook which came with Keynote 6.2 preinstalled. I can make and save presentations in it fine. But when I later go to open those presentations with the exact same Keynote program I make them in, I get an error message saying

  • Setup does not detect Sound Blaster ca

    Same old story, I suppose. Formatted a Pentium 4 and reinstalled WinXP Home SP2 and the system is having problems identifying the card (a Li've! Digital 5. SB0220). There are two "Multimedia Audio Controller"s and one "PCI Simple Communications Contr

  • EXTREMELY slow to open files - Illustrator CC 2014!

    Hi, I just updated from Maverick to Yosemite 10.10.1 See my system config on this monosnap link: http://take.ms/2CAxh I have installed the latest Illustrator CC - 18.1.1 See monosnap link: http://take.ms/lgqj0 I have a big problem everytime I try to

  • App wont install

    I purchased the carcassone app, it shows up in my purchased apps, but it won't install. It just says waiting. It's been like this for 7 days. What should i do?

  • HT201210 Sign appears while upgrading iOS6 "unexpected error" is there a solution?

    I try upgrading iOS6 in my iphone 4s but at some point it stops and a sign appears "unexpected error occurred" what can ido???