Xcode 4.4 cpu utilization 100%

Since upgrading to XCode 4.4, I am seeing it use > 100% CPU. I've taken a sample, most threads appear to be spending almost all their time in mach_msg_trap (partial sample below). Known issue? Other than editing some rather simple C++ code, xcode is downloading and installing libraries, not an activity that I'd expect to spin my fans up to top speed.
Is this a known issue? Is there a workaround?
Sampling process 39159 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Xcode (pid 39159) every 1 millisecond
Process:         Xcode [39159]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Load Address:    0x101ca9000
Identifier:      com.apple.dt.Xcode
Version:         4.4 (1484)
Build Info:      IDEApplication-1484000000000000~4
Code Type:       X86-64 (Native)
Parent Process:  launchd [106]
Date/Time:       2012-07-28 14:42:37.585 +0200
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  7
Call graph:
    2121 Thread_804492   DispatchQueue_1: com.apple.main-thread  (serial)
    + 2121 ???  (in Xcode)  load address 0x101ca9000 + 0x1dc0  [0x101caadc0]
    +   2121 NSApplicationMain  (in AppKit) + 867  [0x7fff87516244]
    +     2121 -[NSApplication run]  (in AppKit) + 470  [0x7fff8729a071]
    +       2121 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]  (in AppKit) + 135  [0x7fff8729d735]
    +         2121 _DPSNextEvent  (in AppKit) + 659  [0x7fff8729de31]
    +           2121 BlockUntilNextEventMatchingListInMode  (in HIToolbox) + 62  [0x7fff8c12160e]
    +             2121 ReceiveNextEventCommon  (in HIToolbox) + 355  [0x7fff8c121781]
    +               2121 RunCurrentEventLoopInMode  (in HIToolbox) + 277  [0x7fff8c11a4d3]
    +                 2119 CFRunLoopRunSpecific  (in CoreFoundation) + 230  [0x7fff8f6ac486]
    +                 ! 2100 __CFRunLoopRun  (in CoreFoundation) + 1204  [0x7fff8f6acc74]
    +                 ! : 2100 __CFRunLoopServiceMachPort  (in CoreFoundation) + 188  [0x7fff8f6a450c]
    +                 ! :   2100 mach_msg  (in libsystem_kernel.dylib) + 73  [0x7fff8976fd71]
    +                 ! :     2100 mach_msg_trap  (in libsystem_kernel.dylib) + 10  [0x7fff8977067a]

I believe the NSLog is a different problem.
NSLog printing of a very large string can cause a beachball with XCode 4.4 eating up a very high percentage of CPU Cycles. (For example see ... http://www.openradar.me/11972490) ... I experience this on my old MacMini running XCode 4.4
I have a new MacBook air and I am seeing the high CPU usage causing my fans to spin up so high that I can hear them on my normally silent machine, but with no beachball. Quitting Xcode and reopening resolves the issue on my MaxBook Air.

Similar Messages

  • ASA 5545 NIPS CPU utilization 100%

    Hi,
    We are having two pair of NIPS SSP and working in Active and standby mode.
    All four Devices (ASA 5545 and ASA 5525 SSP IPS) showing CPU utilization 100% on both active and standby devices.
    Memory usage is also showing very highly utilized.
    Kindly help me resovle this issue.
    Regards,
    Dheeraj

    Hi Dheeraj,
    I don't think this is an issue. CPU 100% utilization is reported on every IPS (appliance or ASA software module) and it should be normal.
    If you want to see if your device is getting more traffic than it can process, you should look at inspection load.
    I hope this will help and it would be nice if someone from Cisco team could reply to this.

  • JVM 1.4.x  IE 6 CPU utilization 100% when issue window.print

    I am using JVM 1.4.2_04, IE 6 and WinXP Pro.
    When visiting internet application having applet initialized, and click the PRINT link (window.print()), suppose the print dialog box will be shown, however, the CPU utilization draw up to 100% and the dialog cannot be shown over 10 minutes.
    I had tried with 1.4.1_x, the same result found.
    If using 1.3.1_x on the same application, no problem found, can anyone help.

    case solved, which is due to the bug_id 4942346

  • Performance degrading CPU utilization 100%

    Hello,
    RHEL 4
    Oracle 10.2.0.4
    Attached to a DAS (partition is 91% full) RAID 5
    Over the past few weeks my production database performance has majorly degraded. I have not made any application, OS, or database changes (I was on vacation!). I have started troubleshooting, but need some more tips as to what else I can check.
    My users run a query against the database, and for a table with only 40,000 rows, it will take about 2 minutes before the results return. For a table with 12 million records, it takes about 10 minutes or more for the query to complete. If I run a script that counts/displays a total record count for each table in the database as well as a total count of all records in the database (~15,000,000 records total), the script either takes about 45 minutes to complete or sometimes it just never completes. The Linux partition on my DAS is currently 91% full. I do not have Flashback or auditing enabled.
    These are some things I tried/observed:
    I shut down all applications/servers/connections to the database and then restarted the database. After starting the database, I monitored the DAS interface, and the CPU utilization spiked to 100% and never goes down, even with no users/application trying to connect to the database. The alert.log file contains these errors:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-00600: internal error code arguments: [ttcdrv-recursivecall]
    ORA-03135: connection lost contact
    ORA-06512: at "CTXSYS.SYNCRN", line 1
    The database still starts, but the performance is bad. From the error above and after checking performance in EM, I see there are a lot of sync index jobs running by each of the schemas and the db sequential file read is high. There is a job to resync the indexes every 5 minutes. I am going to try disabling these jobs tihs afternoon to see what happens with the CPU utilization. If it helps, I will try adjusting the job from running every 5 minutes to something like every 30 minutes. Is there a way to defrag the CONTEXT indexes? REBUILD?
    I'm not sure if I am running down the right path or not. Does anyone have any other suggestions as to what I can check? My SGA_TARGET is currently set to 880M and the SGA_MAX_SIZE is 2032M. Would it also help for me to increase the SGA_TARGET to the SGA_MAX_SIZE; thus increasing the amount of space allocated to the buffer cache? I have ASMM enabled and currently this is what is allocated:
    Shared Pool = 18.2%
    Buffer Cache = 61.8%
    Large Pool = 16.4%
    Java Pool = 1.8%
    Other = 1.8%
    I also ran ADDM and these were the results of my Performance Analysis:
    34.7% The throughput of the I/O subsystem was significantly lower than expected (when I clicked on this it said to either implement ASM or stripe using SAME methodology...we are already using RAID5)
    31% SQL statements consuming significant database time were found (I cannot make application code changes, and my database consists entirely of INSERT statements...there are never any deletes or updates. I see that the updates that are being made were by the index resyncing job to the various DR$ tables)
    18% Individual database segments responsible for significant user I/O wait were found
    15.9% Individual SQL statements responsible for significant user I/O wait were found
    8.4% PL/SQL execution consumed significant database time
    I also recently ran a SHRINK on all possible tablespace as recommended in EM, but that did not seem to help either.
    Please let me know if I can provide any other pertinent information to solve the poor I/O problem. I am leaning toward thinking it has to do with the index sync job stepping on itself...the job cannot complete in 5 minutes before it tries to kick off again...but I could be completely wrong! What else can I check to figure out why I have 100% CPU utilization, with no users/applications connected? Thank you!
    Mimi
    Edited by: Mimi Miami on Jul 25, 2009 10:22 AM

    Tables/Indexes last analyzed today.
    I figured out that it was the Oracle Text indexes synching to frequently that was causing the problem. I disabled all the jobs that kicked off those indexes and my CPU utilization dropped to almost 0%. I will work on tuning the interval/re-enabling the indexes for my dynamic datasources.
    Thank you for everyone's suggestions!
    Mimi

  • Monitoring IP Gateway Activity hangs workstation and rise Servers CPU utilization 100%

    Hi..
    I have nw5.1 sp6 and BM 3.7 sp3 with last patches..installed with C.
    Johnson's BM Book.
    used services/proxies HTTP, FTP ,Generic TCP and Socks
    Only one acces rule with indexed logging for denyed URL-s..
    all works well except socks gateway sometimes. Sometimes, sometimes with no
    reason, if you look real time activity of IP Gateway
    (Nwadmin-tools-Bordermanager-IP Gateway) workstation hangs and server CPU
    utilization rise to 100%. and only way reboot workstation and reload
    proxy.nlm on server..
    By the way the same is for Proxy cache monitor...
    is any ideas ?
    Thanks,
    Lab.

    May be.. Actually, i have pervasive upgraded to sp4 + postfixes
    for other reasons and have some bti.cfg settings changed..
    Thanks, i will look in this way..
    Lab
    BTW, what does -c parameter mean?
    > I suspect your btrieve database hasn't been loaded with the optimal
    > parameters.
    > When loading btrieve make sure that you use the -u=1 -c parameters.
    > >
    >
    >
    > --
    > Cat
    > NSC Volunteer Sysop

  • CPU Utilization 100%

    Hi,
    I have developed an application to view images from an IP camera. By this I can simualtaneously view images from about 25 cameras. The problem is that the CPU Usage increases as the no of player increases. My Player is JPanel. which continuously paints the images from camera. The method 'paintImage' is called from another thread's run method. This thread is responsible for taking jpeg images from IP camera.
    Here is the code for this.
    public void paintImage(Image image, int fps) {
         try {
              int width = this.getWidth();
              addToBuffer(image);
              currentImage = image;
              Graphics graphics = this.getGraphics();
              if (isRunning && graphics != null) {
                   graphics.drawImage(image, 0, 0, getWidth(), getHeight(), this);
                   if(border ==true){
                        graphics.setColor(Color.RED);
              graphics.drawRect(0,0,getWidth()-1, getHeight()-1);
                   graphics.setColor(Color.white);
                   graphics.setFont(new Font("verdana", Font.ITALIC, 12));
                   graphics.drawString("FPS : " + fps, width-60, 13);
                   this.fps = fps;
                   if (isRandomRecord) {
                        graphics.setColor(new Color(0, 255, 0));
                        graphics.fillArc((getWidth() - 10), 5, 10, 10, 0, 360);
         } catch (Exception e) {
              e.printStackTrace();
    Can someone please help me to solve this problem so that the CPU usage can be reduced.

       Yes, this is expected.
    Since Web/Business tier databases do not have any guaranteed DTUs/resource limits associated with them, we normalize the percentage values in terms of the amount of resources available to a database in S2 performance level. DTU and other resource (CPU/IO/Log
    etc) consumption information in terms of an S2 database level will allow you to normalize the current consumption of your Web/Business databases in terms of new tier databases and see where they fit better for migration as needed.  Since Web
    and Business databases run in a shared pool (i.e. sharing resources with other customer loads in the same machine), the resource availability can vary based on who else is running on the same machine. If there are not many significant other active loads
    on the machine where your database is running, it is possible for you to get significantly more than 100% of an S2 performance level. Similarly, it is possible to see resource availability to fall much lower than 100% for an active database, if there are many
    other active workloads are running on the same machine.

  • IWS 6.0 100% CPU utilization hanging- very urgent

    Hi,
    We are using Iplanet Web server 6.0 on windows-2000 SP2.The problem we are facing is after 10 concurrent users have logged in the CPU utilization shoots up to 100% and we have to reboot the systesm
    Our billing Application is affected very much due to this.
    Can anybody throw some light on this?
    Thanks in advance.

    Hi,
    Are you using any plugin with iWS. Please let me know your config file. Mean while please check tunning parameters of solaris for Performance bench mark.
    http://docs.iplanet.com/docs/manuals/enterprise/50/tuning/perf6.htm#17580
    Regards,
    Dakshin.

  • Load testing and 100% CPU Utilization - Multiple JVMs?

    Hi,
    Problem:
    While stress testing the application with 20 simultaneous users, unix is 100% utilized and there is degradation in response times.
    One component of the application is invoking a unix script which is executing a java program after setting CLASSPATH, PATH etc. I guess thus each execution will be invoking a jvm. At the end of the program it will do a System.Exit(). This java program generates around 15-60 barcode images. It takes 2 secs normally.
    When, 5 and 10 concurrent users executing this unix script for a steady state time of 30 minutes is also working fine even through response time degrades to 4 secs.
    With 20 concurrent users, unix box with 4 CPUs is 100% utilized and response time degrades to 11 secs or so.
    We need to do this through unix script only because it is executed from database tier (oracle reports - rdfs) and java stored procs doesn't allow awt operations (image file creation).
    I repeated this testing using a java class which just loops for 2 secs. With 20 concurrent users, it was also degrading to 6 secs or so and fluctuating between 100% CPU utilization.
    Any pointers on what we should be analyzing more and how should we try to solve this issue.
    Thanks,
    Ayyappa

    Stupid forums made me change the ``screen name.'' Whatever...
    Anyway, it is resource intensive to invoke a new JVM per request. You can do several things but it comes down to the fact you will want to keep ONE JVM running in the background awaiting requests to do work. These requests can come from several mechanisms, such as polling a database table, sending requests over a local TCP socket, listening in on a Unix fifo file, etc, etc.
    When the shell script is exec'd, connect to your JVM (for example) by opening a socket to it, enter your request for work, and wait for the response, the JVM app will listen and accept socket requests, thread off and process and then return data. Something in this form will be substantially more scalable that what is currently being done.

  • SDK-based Management Pack causes 100% CPU utilization for HealtService.exe

    We developed an MP that uses SDK to create SCOM objects and insert a large number of performance counters ~ 2000 every 5 minute interval.
    On SCOM side the MP has about 2000 instances of UnitMonitor (only ~20 per class but there are lots of  actual objects). In these monitors we use 
    DataSource based on Microsoft.SystemCenter.TargetEntitySdkPerformanceDataProvider. All worked fine for a year but lately added a bunch of new objects/counters and CPU utilization for the MonitoringHost.exe started to spike
    to 100% a few seconds after the Performance Counters were posted via SDK. The spike lasts for up to 3 minutes. No DB or Network spikes observed. We suspect SCOM does not deal efficiently with SDK Performance data - as if a separate SdkPerformanceDataProvider
    is started for every UnitMonitor when the counters are posted rather than having cooked-down - one per Target instance.
    Can anyone shed some light on this? I suspect only the Microsoft engineers would know.
    Our environment is like this:
    SCOM 2012 R2 UR4
    Windows Server 2012 8 Core, 16 GB Ram
    Thanks,
    Dave

    Hi Dave,
    is there a way that you can reduce the number of performance insertions? Regardless of even fixing the performance issue, the impact from a database standpoint may be something to consider in the long term. My point is that fixing one issue, will take us
    to the next one, etc etc.
    I would reduce the number of insertions, only to the either insertion of the "most critical" or "top #". Also, aren't those counters already captured out of the box?
    hth
    Jose

  • 100% CPU utilization on svchost.exe or Automatic Updates service

    We have upgraded from WSUS 2.0 to 3.0 SP1 and now have few Windows XP SP2 PCs that are extremely slow because the CPU is at 100% utilization running a process called "svchost.exe."  If I go into services and stop and disable the "Automatic Updates" service the CPU drop to normal almost instantly.  I tried forcing a reinstall of the Windows Update Agent.  After I enable the "Automatic Updates" service the machine works fine for a day, than after a reboot it goes back to 100% CPU utilization.  We need this fixed so we can get these computers updates.

    Hi Ryan / Folks,
    NO CA Products here - but I have had the same issues with Microsoft updates!
    Here's the install path I used during my experience :
    Cold install of XP with SP1 on the PC (Full factory system restore/rebuild).
    Acer - Semperon 1.8GHz + 1GB RAM - 8Mb ADSL connection to Internet
    XP SP2
    Windows updates OK - used to install IE7
    Reason - I found IE is compromised if you go straight to XP SP3
    XP SP3
    Next Office 2003 Pro
    Switch to Microsoft updates - Custom Updates - SVCHost issue - Still checking for updates after 15 minutes
    Switch back to Windows updates - Custom Updates - NO SVCHost Issue - Checking complete after 2 minutes
    Tried both Microsoft fixes mentioned above
    http://support.microsoft.com/kb/927891
    Same report back - i.e. SP3 newer etc.
    http://support.microsoft.com/kb/943144 - Method 2
    Seems to install ok
    Reboot PC
    Swich back to manual Microsoft Updates and all is not really rosey as the initial "checking updates" scan can take at least 5 minutes with SVCHost at better than 90% CPU usage. So I believe the issue is not fixed, but it is just about useable.
    Interestingly, no issues on my work LAN where I am the systems manager - 20 PCs and 8 servers using WSUS. All units are up to date and no SVCHost issues.
    So.... No fix yet here, however my solution is as follows:
    On the problematic PC I decided to switch back to Automatic Windows Updates. This keeps the PC up to date with all Operating System patches. Performance is not affected. I have decided that I will manually switch to the Microsoft update system once every couple of weeks or so to catch the updates for Office etc. I'll just have to set the updates scan running over a quiet period I suppose.
    Plan B = Manual Office Updates http://office.microsoft.com/en-gb/downloads/default.aspx - Left Pane - Office Updates.
    Hope this sheds some light.
    Regards,
    Knaphie
     

  • JRun 100% CPU Utilization - Source: Attack

    When I came in this morning, I found my server (HP ML370, 2x
    Xeon 3.06MHz, 4GB RAM, Windows 2003, CF7, Java 1.4.2_05) extremely
    slow. Checking out the Task Manager, I found that JRun was taking
    up 100% of my CPU utilization. Yikes!
    First I thought it was a JVM problem, so I went about
    applying the various tweaks: No improvement.
    Rebooted: No improvement.
    Went through the CF and JVM logs: Nothing of importance
    Finally looked at the 404 error log: Blam! Ton of entries
    (where usually it's pretty empty). It appears that since midnight
    my website was under some sort of attack from 84.32.147.110 (RIPE
    network machine). Refer to the attached code - this is a single URL
    request (the /directory names/ are correct, but not that deep on my
    server - appears he's adding them one after another in a DOS attach
    or something).
    What is this? Once I tracked it down to this machine, I
    blocked access from our firewall. Yes, even now, hours later, he's
    still trying to hammer our site. Once I blocked him JRun went back
    down to around 3-15% (leaning more towards the 3%) and everything
    went to normal.
    I've written an abuse complaint to his ISP in Lithuania (I'm
    not holding by breath).
    What else can I do to avoid future attacks?
    Has anyone heard of anything like this?
    Help!!!!

    The only difference I can discern is that on the machine that doesn't work, the root drive is E
    hmmmm. if you have the drive letter for the root drive that high, it's probably worth checking to see if you're getting a Windows drive letter confusion. for troubleshooting advice on that, see:
    Windows confuses iPod with network drive or hard drive and may keep iPod from mounting or songs may seem to disappear

  • High CPU utilization with JDesktopPane.OUTLINE_DRAG_MODE

    Hello there,
    since I updated from Java SDK 1.4.0 to 1.4.1_01 I recognized a problem with MDI Java applications using a JDesktopPane with JInternalFrames. When the drag mode of the internal frames is set to OUTLINE_DRAG_MODE, which should have a better performance than the LIVE_DRAG_MODE the cpu utilization goes nearly up to 100% an the drag of the frame is quite slow.
    Does anybody else experience this problem?
    (The problem exists in the application I develop and also in the IDE Netbeans, I use for development)
    I am not sure if this is the right place for my problem, so if there is a better one to post it to, please tell me.
    Thanks
    R�diger

    Hi,
    I've also noticed this. It happens on Windows 2000 with 1.4.1, but not with version 1.4.0. Have you found a solution yet?
    Martin

  • Swiping causes spikes in CPU utilization.

    Using app to monitor CPU on iPhone 5 and iPad mini. Swiping causes spikes in CPU utilization from 5% to 65% for every swipe. Heavy swiping causes processor to run near 100%. Seems abnormal.
    Reduce Motion turned on.
    IOS 7.1
    Anything to make this not run so high? Battery drain seems much faster with just general usage.

    Hey Apple. This is likely a major issue with battery drain. Constant CPU spikes will cause the CPU to heat which increases battery drain. Swiping should not peg the CPU. I suspect it has to do with how The screen is rendered to the user.somebody needs to look into this from Apple. This is been an issue for at least the last few iOS versions.

  • Heavy CPU Utilization of Dictionary Query - After 9i to 10g Upgrade

    Hi Friends,
    We have migrated our production DB from Oracle 9i(Windows) to Oracle 10g(AIX) and after that a heavy cpu utilization query is coming frequently and hence many timeouts are happening in the application.
    Application is connecting to the database through Java Application (JDBC).
    Once the application service is started, below query is invoked and CPU takes around 20% continuously.
    The interesting thing is this query is not owned by the application schema but by SYS and it's invoked from Application Schema.
    We have raised an SR but still no luck.
    Any help will be very much appreciated.
    SELECT -- Packaged procedures with no arguments package_name AS procedu
    re_cat, owner AS procedure_schem, object_name AS procedure_name, NULL
    , NULL, NULL, 'Packaged procedure' AS remarks, 1 AS procedure_type
    FROM all_arguments WHERE argument_name IS NULL AND data_type IS NULL AN
    D package_name LIKE :3 ESCAPE '/' AND owner LIKE :4 ESCAPE '/' AND obje
    ct_name LIKE :5 ESCAPE '/' UNION ALL SELECT -- Packaged procedures with a
    rguments package_name AS procedure_cat, owner AS procedure_schem, obj
    ect_name AS procedure_name, NULL, NULL, NULL, 'Packaged procedure'
    AS remarks, 1 AS procedure_type FROM all_arguments WHERE argument_name IS
    NOT NULL AND position = 1 AND position = sequence AND package_name L
    IKE :3 ESCAPE '/' AND owner LIKE :4 ESCAPE '/' AND object_name LIKE :5
    ESCAPE '/' UNION ALL SELECT -- Packaged functions package_name AS proce
    dure_cat, owner AS procedure_schem, object_name AS procedure_name, NU
    LL, NULL, NULL, 'Pa
    Regards,
    Savad
    Edited by: user9292816 on May 9, 2011 4:35 AM

    Hi,
    We couldn't find anything in the alert log related to this.
    But we have taken the explain plan from both DBs as shown below.
    PLan of the Query in Oracle 9.2.0.8(Windows - Old DB )
    SQL> select * from table(dbms_xplan.display());
    | Id | Operation | Name | Rows | Bytes | Cost |
    | 0 | SELECT STATEMENT | | | | |
    | 1 | SORT ORDER BY | | | | |
    |* 2 | FILTER | | | | |
    |* 3 | TABLE ACCESS BY INDEX ROWID | ARGUMENT$ | | | |
    | 4 | NESTED LOOPS | | | | |
    | 5 | NESTED LOOPS | | | | |
    | 6 | TABLE ACCESS BY INDEX ROWID| USER$ | | | |
    |* 7 | INDEX RANGE SCAN | I_USER1 | | | |
    | 8 | TABLE ACCESS BY INDEX ROWID| OBJ$ | | | |
    |* 9 | INDEX RANGE SCAN | I_OBJ2 | | | |
    |* 10 | INDEX RANGE SCAN | I_ARGUMENT2 | | | |
    |* 11 | FIXED TABLE FULL | X$KZSPR | | | |
    |* 12 | TABLE ACCESS BY INDEX ROWID | OBJAUTH$ | | | |
    | 13 | NESTED LOOPS | | | | |
    | 14 | FIXED TABLE FULL | X$KZSRO | | | |
    |* 15 | INDEX RANGE SCAN | I_OBJAUTH2 | | | |
    Predicate Information (identified by operation id):
    2 - filter("SYS_ALIAS_1"."OWNER#"=:B1 OR EXISTS (SELECT /*+ */ 0 FROM
    "X$KZSPR" "X$KZSPR" WHERE "X$KZSPR"."INST_ID"=:B2 AND
    ((-"X$KZSPR"."KZSPRPRV")=(-144) OR (-"X$KZSPR"."KZSPRPRV")=(-141))) OR EXISTS
    (SELECT 0 FROM "SYS"."OBJAUTH$" "OBJAUTH$","X$KZSRO" "X$KZSRO" WHERE
    "OBJAUTH$"."OBJ#"=:B3 AND "OBJAUTH$"."GRANTEE#"="X$KZSRO"."KZSROROL" AND
    "OBJAUTH$"."PRIVILEGE#"=12))
    3 - filter(("A"."ARGUMENT" LIKE :Z ESCAPE '/' OR "A"."ARGUMENT" IS NULL AND
    DECODE("A"."TYPE#",0,NULL,1,DECODE("A"."CHARSETFORM",2,'NVARCHAR2','VARCHAR2'),2,
    DECODE("A"."SCALE",(-127),'FLOAT','NUMBER'),3,'NATIVE
    INTEGER',8,'LONG',9,DECODE("A"."CHARSETFORM",2,'NCHAR
    VARYING','VARCHAR'),11,'ROWID',12,'DATE',23,'RAW',24,'LONG
    RAW',29,'BINARY_INTEGER',69,'ROWID',96,DECODE("A"."CHARSETFORM",2,'NCHAR','CHAR')
    ,102,'REF CURSOR',104,'UROWID',105,'MLSLABEL',106,'MLSLABEL',110,'REF',111,'REF',
    112,DECODE("A"."CHARSETFORM",2,'NCLOB','CLOB'),113,'BLOB',114,'BFILE',115,'CFILE'
    ,121,'OBJECT',122,'TABLE',123,'VARRAY',178,'TIME',179,'TIME WITH TIME
    ZONE',180,'TIMESTAMP',181,'TIMESTAMP WITH TIME ZONE',231,'TIMESTAMP WITH LOCAL
    TIME ZONE',182,'INTERVAL YEAR TO MONTH',183,'INTERVAL DAY TO SECOND',250,'PL/SQL
    RECORD',251,'PL/SQL TABLE',252,'PL/SQL BOOLEAN','UNDEFINED') IS NOT NULL) AND
    DECODE("A"."PROCEDURE$",NULL,NULL,"SYS_ALIAS_1"."NAME") LIKE :Z ESCAPE '/' AND
    NVL("A"."PROCEDURE$","SYS_ALIAS_1"."NAME") LIKE :Z ESCAPE '/')
    7 - access("U"."NAME" LIKE :Z ESCAPE '/')
    filter("U"."NAME" LIKE :Z ESCAPE '/')
    9 - access("SYS_ALIAS_1"."OWNER#"="U"."USER#")
    10 - access("SYS_ALIAS_1"."OBJ#"="A"."OBJ#")
    11 - filter("X$KZSPR"."INST_ID"=:B1 AND ((-"X$KZSPR"."KZSPRPRV")=(-144) OR
    (-"X$KZSPR"."KZSPRPRV")=(-141)))
    12 - filter("OBJAUTH$"."PRIVILEGE#"=12)
    15 - access("OBJAUTH$"."GRANTEE#"="X$KZSRO"."KZSROROL" AND
    "OBJAUTH$"."OBJ#"=:B1)
    Note: rule based optimization
    PLan of the Query in Oracle 10.2.0.5.3(AIX - New DB )
    ?PLAN_TABLE_OUTPUT
    Plan hash value: 2991281545
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 109 | 451 (3)| 00:00:06 |
    | 1 | SORT ORDER BY | | 1 | 109 | 451 (3)| 00:00:06 |
    |* 2 | FILTER | | | | | |
    |* 3 | HASH JOIN | | 3 | 327 | 450 (3)| 00:00:06 |
    |* 4 | HASH JOIN | | 12 | 1128 | 448 (3)| 00:00:06 |
    |* 5 | TABLE ACCESS FULL | ARGUMENT$ | 4821 | 291K| 259 (3)| 00:00:04 |
    | 6 | TABLE ACCESS FULL | OBJ$ | 56329 | 1760K| 187 (2)| 00:00:03 |
    | 7 | TABLE ACCESS BY INDEX ROWID| USER$ | 6 | 90 | 2 (0)| 00:00:01 |
    |* 8 | INDEX RANGE SCAN | I_USER1 | 2 | | 1 (0)| 00:00:01 |
    |* 9 | FIXED TABLE FULL | X$KZSPR | 1 | 26 | 0 (0)| 00:00:01 |
    | 10 | NESTED LOOPS | | 2 | 50 | 2 (0)| 00:00:01 |
    |* 11 | INDEX RANGE SCAN | I_OBJAUTH1 | 1 | 12 | 2 (0)| 00:00:01 |
    |* 12 | FIXED TABLE FULL | X$KZSRO | 2 | 26 | 0 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - filter("OWNER#"=USERENV('SCHEMAID') OR EXISTS (SELECT 0 FROM SYS."X$KZSPR"
    "X$KZSPR" WHERE ((-"KZSPRPRV")=(-144) OR (-"KZSPRPRV")=(-141)) AND
    "INST_ID"=USERENV('INSTANCE')) OR EXISTS (SELECT 0 FROM "SYS"."OBJAUTH$"
    "OBJAUTH$",SYS."X$KZSRO" "X$KZSRO" WHERE "GRANTEE#"="KZSROROL" AND "OBJ#"=:B1 AND
    "PRIVILEGE#"=12))
    3 - access("O"."OWNER#"="U"."USER#")
    4 - access("O"."OBJ#"="A"."OBJ#")
    filter(NVL("A"."PROCEDURE$","O"."NAME") LIKE :2 ESCAPE '/' AND
    DECODE("A"."PROCEDURE$",NULL,NULL,"O"."NAME") LIKE :3 ESCAPE '/')
    5 - filter("A"."ARGUMENT" LIKE :5 ESCAPE '/' OR "A"."ARGUMENT" IS NULL AND
    DECODE("A"."TYPE#",0,NULL,1,DECODE("A"."CHARSETFORM",2,'NVARCHAR2','VARCHAR2'),2,DECO
    DE("A"."SCALE",(-127),'FLOAT','NUMBER'),3,'NATIVE
    INTEGER',8,'LONG',9,DECODE("A"."CHARSETFORM",2,'NCHAR
    VARYING','VARCHAR'),11,'ROWID',12,'DATE',23,'RAW',24,'LONG
    RAW',29,'BINARY_INTEGER',69,'ROWID',96,DECODE("A"."CHARSETFORM",2,'NCHAR','CHAR'),100
    ,'BINARY_FLOAT',101,'BINARY_DOUBLE',102,'REF
    CURSOR',104,'UROWID',105,'MLSLABEL',106,'MLSLABEL',110,'REF',111,'REF',112,DECODE("A"
    ."CHARSETFORM",2,'NCLOB','CLOB'),113,'BLOB',114,'BFILE',115,'CFILE',121,'OBJECT',122,
    'TABLE',123,'VARRAY',178,'TIME',179,'TIME WITH TIME
    ZONE',180,'TIMESTAMP',181,'TIMESTAMP WITH TIME ZONE',231,'TIMESTAMP WITH LOCAL TIME
    ZONE',182,'INTERVAL YEAR TO MONTH',183,'INTERVAL DAY TO SECOND',250,'PL/SQL
    RECORD',251,'PL/SQL TABLE',252,'PL/SQL BOOLEAN','UNDEFINED') IS NOT NULL)
    8 - access("U"."NAME" LIKE :1 ESCAPE '/')
    filter("U"."NAME" LIKE :1 ESCAPE '/')
    9 - filter(((-"KZSPRPRV")=(-144) OR (-"KZSPRPRV")=(-141)) AND
    "INST_ID"=USERENV('INSTANCE'))
    11 - access("OBJ#"=:B1 AND "PRIVILEGE#"=12)
    filter("PRIVILEGE#"=12)
    12 - filter("GRANTEE#"="KZSROROL")
    52 rows selected.
    Regards,
    Savad

  • How is GC cpu utilization % calculated?

    I am trying to find a way to capture the problem where a user process eats up a ton of cpu for over 30 minutes. I thought that I could possibly use the cpu utilization metric.
    In testing it, I reset the values to warning and critical thresholds to 0 and 5% respectively to see what would happen. I was emailed with the expected critical alert. In looking at the top sessions on the server, I noticed that 1 session was eating up 100% of one cpu (which I want to know about) but the alert email said that 45% was utilized which I noticed was about what the user load is on the server.
    Initially, I had the warning and critical threshold set to 85 and 95% respectively but did not get any warning about a user process that was taking up 100% cpu for > 5 minutes (in which the 5 minute collect times were set to once).
    My questions are
    1) How do I capture a single process eating up > 90% cpu in a multi-cpu environment
    2) Is the cpu utilization % capturing the Average Load of the cpus on the server and alerting when it's above the critical threshold?
    3) How is the cpu utilization % calculated?
    Help would be appreciated.

    The cpu load is determined by running the Grid program nmupm found in $AGENT_HOME/bin
    The output is like:
    dbc12ykf: PDBGRP> nmupm osCpuUsage
    em_result=1|206331806.000000|201540370.000000|102524043.000000|958620752.000000
    em_result=2|212731589.000000|201203614.000000|67775500.000000|948506267.000000
    em_result=3|212402913.000000|230642957.000000|76833167.000000|917779040.000000
    em_result=4|242543014.000000|367865067.000000|81554006.000000|791426607.000000
    You will get a line for each cpu.
    YOu'll need a bit of reverse engineering to figure out the columns - I think they are user, system, idle , 5min avg - Multiplied by 10000 ?
    Now to capture a big one - I think you will need a user defined metric. Just write a simple shell script to run the above command, and evaluate the numbers coming thru.

Maybe you are looking for