Oracle taking 100% CPU usage

Hi,
I have a situation. I am trying to execute a big query by involving 3 tables (joins). The query is taking about 20 minutes time to execute. While the query is executing the CPU usage for ORACLE is 100%. Please put somelight on this as of to why this is happening? Do I need to tweak my query a bit more. This is happening only recently as there are more number of records. ORACLE is installed on a Unix machine
Thanks in advance.

The First Rule Of Performance Troubleshooting: IDENTIFY THE PERFORMANCE PROBLEM.
All you have done thus far is identifying a symptom. High CPU utilisation. This in itself is totally meaningless - nothing can be inferred from this symptom without additional troubleshooting.
This means determining WHAT is happening when that query/process runs. What is it doing? (look at wait states and event state summaries of the process)
WHY is it doing that? Look at the execution plan.
With performance tuning, one needs to deal with facts. So you need to pop the hood and get your hands dirty so see what is actually happening under the hood.

Similar Messages

  • DotMac Translator 100% CPU usage

    During the last few weeks I have a process called dotMac translator running and it's taking 100% CPU usage, I can kill the process off but it just comes back after about 10 minutes.
    Does anybody have any ideas on what's causing this and how to fix it.
    Thanks
    MacBook   Mac OS X (10.4.10)  

    run the 'top' utility and see what the processes are. You will certainly see some oracle procs in the list. can you post back the output here so we can review it?
    Also run the command vmstat 10 130 whilst the cpu is at 100% and post back.
    rgds
    alan

  • Oracle on NT(taking 100% CPU)

    I have my Oracle running on NT.It is a Dell machine .The database isna test database.When the instance starts up it is taking 100% CPU.No activity possible on it.All querries hanging.Any suggestions ?

    Please look at patch name EM_NT_1224539.
    null

  • Oracle uses 100% CPU

    Hi,
    I have installed Oracle 10g R2 on 64bit linux. It was working fine, until last week. I got alert that oracle uses 100% CPU.
    Some lines from alert:
    4894 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 56.3 12978 7720 22860 oracle
    9244 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 50.4 10357 7720 22860 oracle
    11798 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 41.1 4429 7720 22860 oracle
    11740 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 28.3 45350 7724 22864 oracle
    1516 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 24.2 29968 7728 22868 oracle
    17006 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 21.8 21913 7724 22864 oracle
    19449 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 21.5 20865 7720 22860 oracle
    24877 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 21.0 18708 7728 22868 oracle
    26566 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 18.4 5727 7724 22864 oracle
    1788 /opt/oracle/product/10.2.0/db/perl/bin/perl /opt/oracle/product/10.2.0/db/sysman/admin/scripts/db/dbresp.pl 17.1 3319 7724 22864 oracle
    When I log in to EM, I can see section
    Host CPU
    It is 100%.
    I have only instance named "parama". and it uses 1% CPU ant the picture shows that 99% CPU is used By Other.
    What is Other? Why does it use that much CPU?
    I had another oracle instance few months ago, but I is not used now (it is not even started).
    How do I restore normal system performance?
    Can I kill these processes?

    Hello,
    I have a similar problem. I see 2 perl processes related to Oracle that are taking up 99% of 2 cpus. These 2 perl processes have been running for days and keeping the load average high (above 2) on a mostly idle system.
    The 2 perl processes are running:
    /oracle/app/product/10.2.0/db_1/perl/bin/perl /oracle/app/product/10.2.0/db_1/sysman/admin/scripts/db/dbarchfull.pl
    and
    /oracle/app/product/10.2.0/db_1/perl/bin/perl /oracle/app/product/10.2.0/db_1/sysman/admin/scripts/db/dbresp.pl
    Has anyone seen this problem? Can I kill the perl processes?
    --Dan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Server 2012R2 Windows backup 100% CPU usage and no backup

    Hello!
    I have a problem with two VM´s on a HP Proliant ML350p Gen8, that has Windows Server 2012R2 operating system with Hyper-V role installed.
    Both VM´s are also 2012R2, one is DC/DNS/FILE/PRINT and the other one is Exchange 2013.
    The problem itself is that, when Windows backup (wbengine.exe - Block level backup engine service) inside VM starts, it uses almost maximum CPU resource, so the VM´s CPUs are 100% used. Backup itself is not working, there is no network trafic. Only
    way to get rid of 100% CPU usage is to restart the server.
    When i start backup manually (Backup once - scheduled backup options), it is working and the CPU usage is around 20-30%.
    One VM (DC/DNS/FILE/PRINT) has 2x vCPU and Exchange has 4x vCPU.
    The problem started suddenly, the backup were performing slowly and failed.
    Backups are scheduled on different time. Host level Hyper-V backup of VM´s works without any problem.
    The backup location is Synology DS414 NAS and the servers are set up using iSCSI, for connecting separate backup lun´s for each server.
    The Hyper-V host and both VM´s are patched up-to-date. Ofcourse i have tried a lot of restarts, looking event log, VSSADMIN - cannot find any errors...
    The network setup:
    Hyper-V host has a team of two physical adapters, that is set up with a external virtual switch (shared with management operating system) and used by the VM`s normal network trafic.
    Hyper-V host itself is using separte physcial network card, for connecting with iSCSI to Synology NAS.
    I tried to set up another physical network card on the host and create a new virtual swich, add extra virtual nic to VM`s and use this for iSCSI traffic for Windows backup and it didnt make things better.
    I need to find a solution, because i cannot restart the server every night for the backups to work.

    Hi,
    There is a similar thread, please change the performance options in WSB from fast to normal:
    wbengine.exe taking all CPU 
    http://social.technet.microsoft.com/Forums/en-US/be5d5743-1ea7-4c26-8072-0c010b47dd9a/wbengineexe-taking-all-cpu?forum=winserveressentials
    If the issue still exists, please check if there any error message in the Event Log.
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • 100% CPU usage... does anyone else get this?

    Here is my code. I would have simplidied it for you... but I honestly have no idea where it went wrong.
    One second it is running fine, the next it starts taking up 100% of my CPU cycles. I can't figure out what I did to it to make it do this... nothing I added creates an infinite loop or infinite threads. It's just... weird.
    The code is probably too big for anyone to look at and tell me what's wrong, but can someone else download it and tell me if you also get 100% CPU usage? It needs to be run on Windows... it uses a couple JNI calls that are Windows-specific. Those calls were the first place I looked when trying to find the problem, but I have not changed that part of the code for a long time, and it has never been a problem before.
    Don't run the bat file... just navigate to the Watchdog2 directory and do 'java Watchdog'.
    Are there any tools that can help me figure out where the program is getting hung up? It's not freezing at any specific spot... just moving super slow and taking up 100% of my CPU. I'm so confused...
    Message was edited by:
    L4E_WakaMol-King

    Nevermind!
    Sorry for the trouble. The problem was that last time I compiled the code, it reverted back to and older version of a class I had compiled days ago. Why it did this is totally beyond me... but it did, and it just so happens that the old version of that class combined with the new version of my program were the perfect recipe for an infinite loop.
    Seriously, if you are in inveterate debugger, you might get a good laugh out of this. I've spent the last week and a half trying to find a way to set the Windows console into cbreak mode (single character processing rather than line-at-a-time processing), and I finally managed to do it by writing some c code and putting it into a DLL with the JNI. So now my program (which runs from the console) can process each character as it is entered rather than waiting for a line return. The older version of the class that got reverted was one that used System.in rather than the input stream generated by the socket. I had set it to System.in for testing purposes, and apparently that testing version is the one it got reverted back to. So combine the two, and you have a console that is feeding System.in each character as it is pressed and a socket wrapper that is listening infinitely. It was a mess... but an uncannily serindipitous mess...
    Ahh... debugging... good time...

  • HELP PLEASE - syslogd gone mad taking 100% CPU!!!!!!!!!!!!!!!!!

    Hi PLEASE HELP
    I have no idea what is going on but syslogd has suddenly started taking 100% CPU.
    This started around 6pm this evening and despite 5 restarts 2 hours later it is STILL consuming 100% CPU.
    Kicks in as soon as the machine has finished booting.
    Did stop for no reason for about 10 minutes then started again!!!!!!!!!!!!!!!
    Robin

    This topic should be a Sticky untill Apple releases a fix for the issue!
    Also these 2 Links are very useful!
    http://smartic.us/2007/11/8/leopard-100-cpu-usage-caused-by-syslogd-and-possibly -time-machine
    http://julianschrader.de/20080131-100-cpu-usage-caused-by-syslogd-leopard/

  • Queue consumer stops with 100% cpu usage

    I'm trying to use Berkeley DB queue with transactions. When I tested what happens when transactions with DB_APPEND are aborted I found that while it works and DB_CONSUME correctly skips over rolled back records, unfortunately extents that have those records are never deleted, which causes database to always grow. Next I tried DB_CONSUME with database opened using DB_INORDER flag and it seems there's a serious regression in Berkeley DB that causes it to loop indefinitely with 100% cpu usage when it encounters a rolled back record. I tested various versions and found that this bug doesn't happen with 5.1.29, but it is reproducible with 5.2.42, so this regression might have been introduced in 5.2. I have also tested 5.3 and 6.0, and both have this behavior. There may be something wrong with the way queue records are rolled back, one indication of that would be that in 5.1.29 doesn't have neither of the two problems I found with DB_QUEUE: extents are deleted after being consumed, and there are no issues when consuming with DB_INORDER either.
    You can find Python code to reproduce this issue here:
    https://gist.github.com/snaury/027a3c546f5b0a62a440
    Sorry for using Python and not e.g. C++, but it's a lot shorter that way.

    We have looked at the issues and they are valid.   We will roll the fixes out for this in our next release of BDB.   The test case was very useful and really helped to speed the process up.    If you have any questions, please contact me directly at [email protected]  Thanks again for bringing this to our attention.
    thanks
    mike

  • HP LaserJet Pro MFP M127fn - DNS issue, hundreds of UDP connections affects my router 100% CPU usage

    Hi all,
    We've bought about ten pieces (HP LaserJet Pro MFP M127fn), tested only one the other 9 are waiting for their time to be sent in our branch offices. The MFP works fine, no complains till later that day I noticed that our Mikrotik Router was struguling with high CPU usage, it took me some time to find the issue and it was the new bought MFP. Don't know why but it creates hundreds of UDP connections and almost 100% CPU usage goes to DNS service. As soon as I shutdown the MFP and delete all the connections everything goes back to normal. I've disabled almost all services (HP web service, Ipv6, SNMP, AirPrint, SLP, LPD, WS-Discovery, Bonjour), leaving only Ipv4 but without luck the issue persists. Here are some print screens confirming my saying:
    http://i.imgur.com/UiOPSiu.jpg
    http://i.imgur.com/dlgObPb.jpg
    http://i.imgur.com/4RmQhot.jpg
    http://i.imgur.com/oBuo9UO.jpg
    http://i.imgur.com/Zf77V6b.jpg
    Don't know if it is the same case but it look like, found this post that ha no answer to the issue: http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/New-HP-LaserJet-Pro-MFP-M127fw-network-...
    Why does this happen? And how to solve my issue? Thank you in advance.

    Hi @EugenX ,
    I have brought your issue to the attention of an appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post serial numbers and case details.
    If you are unfamiliar with how the Forum's private message capability works, this Post has instructions.
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Problem:100 % cpu usage with tcp server dll

    Hello,
     I am trying to write a dll with labwindows/cvi that allows me to create a TCP Server. This dll is integrated in labview.I created this Dll with example provides by Labwindows/cvi(rtserver.dll).
    Description of my problem: when i execute this dll in a "While Loop" in labview,the TCp server wait a connection and 100% cpu usage occurs. However when a client is connect to the server,the CPU is normaly used because the program stop when he meets the timeout of the tcpread() function. I would like to know how i could limit CPU usage  when the server is awaiting a client in the labview "While loop".
    I know I could use a DELAY() to limit Cpu usage ,but I would like to know if there are any others solutions.
    thank you.

    i dont know your exact application, but i generally use Q to transfer data to TCP loop in my prgram it helps me in two ways.
    1. it automatically restricts the iteration when ther is no data (Less CPU Usage, Less Unnecessary Trafic)
    2. Q can eliminate problems arising due to non synchronization of loop
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • 100% CPU usage with XP Cooler from PCAlert4

         Any idea why I would be running 100% cpu usage when running XP Cooler from PCAlert4?  I noticed PC was sluggish when running it so CTRL+ALT+DEL and under performance is 100% CPU with 245MB Ram Usage. No other TSR's running - several application but under 10% CPU usage without PCAlert and XP Cooler.
         I was also wondering if anyone had any ideas on the video?  I have the K7N2G with 768MB DDR PC 2100 (3x256) XP2200+ 266FSB running 1804MHz - Maxtor 30GB 7200RPM - 350W PSU (raidmax - yea yea I know, dont say a word though LOL) on board video and here is the problem - graphics are great, but they get choppy - running NFS HotPursuit 2 at 32bit 800x600 (doesnt seem to matter even when running 16bit 640x480still does it.) what setting am I missing?  Thanks in advance.

    Deathstalker (Richard),
         I did what you suggest in memory management and also changed out the mem on the board - it did make a difference, not as much as I had hoped, but it did.
    Raven,
         I have used Fraps in the past, forgot about it, but went ahead and downloaded it to get a better look.
    To the Both of you,
         Thanks so much for your replies, sometimes it just takes someone outside looking in to see the things overlooked.  But I went ahead and also ran all of the latest updates for the board (semi new system and I only installed with the CD that came with the Mobo) and everything is running better than expected.  Thanks again for your thoughts - keep 'em flowin, it's amazing whom we could help.  Take care.
    Don

  • Distiller 8 and 9 both locking up, 100 % CPU usage

    Not sure if its related, but probably, since it happened right after...I just transferred everything from my quad core mac pro to my new 8-core Mac Pro. Everything went well, but now Distiller 8 starts and then sits and gives the beachball of death, and one of the cores shows 100% cpu usage. (I have that utility that shows memory used, CPU usage, etc.). I hadn't bought Acrobat 9 yet so I downloaded it and installed, and Distiller 9 does the EXACT same thing. The ONLY thing I can call an "error message" is that I can see in the window after it launches is "Error in /Library/Application Support/Adobe PDF/Settings/PDFX4 2007.joboptions:/CheckCompliance out of Range."
    That message may have been there whole time, even when it worked, though. I don't know. At any rate, I need distiller working! Any ideas?

    Glad to hear all is well. Preference files can cause big problems. Eons
    ago, in the 1980s, I used a communications program called Red Ryder. I
    loved the program. After it was updated to a new version (it might have
    been called White Knight by that time), I started to have terrible
    problems. I wrote to their technical support. They couldn't duplicate
    the problem. It couldn't happen etc. I eventually got a little hot under
    the collar. After all, if I couldn't use my modem, I couldn't check my
    email, etc. It turned out to be a problem with my preference file when
    converted to the latest version, that was causing the problem. Since
    they always started with a new preference file, they couldn't duplicate
    the problem that was obvious to me.
    ...Mike

  • Music store & 100% CPU usage

    I've had this problem on my newly built computer, and my older machine. When I browse the iTunes music store, the status bar on the top will often move like it's opening the music store, but it'll do this for a long period of time (several minutes) and iTunes will work, but the music store will not load, and you cannot click the 'X' to stop the contacting of the music store. During this time if you open task manager, iTunes uses 100% of CPU resources. If you close iTunes it still uses 100%. you have to end the process in task manager in order to make it stop. On occasion the music store will work to view maybe one album, but if you search for another album, or click another link it'll do the whole not-responding-100% CPU usage cycle again.
    All drivers are up to date and like I said it's done this on two seperate computers of mine on the same iTunes account. I also have a laptop and the music store works completely fine on it. It's only on my desktops that I have this issue.
    Some specs on my machine if this will help
    Asus motherboard
    AMD Athlon XP 4000+ processor
    2gb Kingston 184 pin DDR ram
    Seagate SATA II 160 GB HD
    Windows XP PRO service pack 2
    thanks for your help!

    I'm only guessing here, but perhaps iTunes is having a conflict with another application. If you are anything like me you probably install your favourite applications on all your computers. As a shortcut to troubleshooting, perhaps consider an application you have installed on the desktops, but NOT on the laptop. Then try uninstalling that application from your desktop computer and test iTunes.
    HP Compaq dx6120 P4 2.8 GHz 1GB RAM (BABYJANE)   Windows XP   iPod : 5G 30GB (BLANCHE)

  • 100% CPU usage by iCal

    For some reason my iCal application uses 100% of CPU. What can I do to avoid it?

    I had a similar problem with iTunes.
    Here's the link to what fixed my problem immediately.  Please note: my problem was resolved following just the three steps pasted below.  The original link has additional steps that may be necessary, although I did not employ them, and my problem of 100% CPU USAGE is gone!!!  Thank God!
    URL source:     http://www.hotcomm.com/faq/FAQ_ResetWinsock.asp
    Good Luck
    Copyright (c) 2009 1stWorks Corporation. All rights reserved.
    This article gives instructions for resetting Winsock on Windows XP and Windows Vista: 
    Reset Winsock (Vista) 
    To reset Winsock in Vista: 
    1.Click the Windows Start button. 
    2. Type Cmd in the Start Search text box and press Ctrl-Shift-Enter (keyboard shortcut to run Command Prompt as Administrator). Click Continue to allow elevation request. 
    3. Type netsh winsock reset in the Command Prompt shell, and then press the Enter key. 
    URL source:     http://www.hotcomm.com/faq/FAQ_ResetWinsock.asp

  • Procedure is taking 100% cpu

    Hi ,
     One of my procedure is taking 100% CPU, I looked execution plan .. But I am not sure what to look on that .. I didn't find any anything wrong in execution plan. like all are index seek ..  Even the query is not taking much time just 2 sec
    Regards Vikas Pathak

    In addition to great suggestion Sean has been posted , I always start with the below
    ---This first thing to check if CPU is at 100% is to look for parallel queries:
    -- Tasks running in parallel (filtering out MARS requests below):
    select * from sys.dm_os_tasks as t
     where t.session_id in (
       select t1.session_id
        from sys.dm_os_tasks as t1
       group by t1.session_id
      having count(*) > 1
      and min(t1.request_id) = max(t1.request_id));
    -- Requests running in parallel:
     select *
       from sys.dm_exec_requests as r
       join (
               select t1.session_id, min(t1.request_id)
              from sys.dm_os_tasks as t1
             group by t1.session_id
            having count(*) > 1
               and min(t1.request_id) = max(t1.request_id)
          ) as t(session_id, request_id)
         on r.session_id = t.session_id
        and r.request_id = t.request_id;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • How to extract a .eml (e-mail file) "attachment" from an e-mail

    Hi, I have a slight problem with e-mail attachments. It's quite an explanation, so stick with me please. I have to extend, debug and adapt an e-mail archive for my company. I already worked on this project for 2 months, to make an extra batch and cha

  • Conversion of ACVHD video to .mov file

    How do I convert video ACVHD video to a .mov file so that I can make it compatible to use on a MAC?  I have a P.C. at home, where I edit on Premier Elements, but the studio uses MACS.  I know a .mov file is compatible with a MAC.  Correct me if I'm w

  • USB Card Reader not recognized on new Mac Pro (late 2013)

    My Sony USB multi-card reader (model: MRW62E), which I use for SD cards mostly, works on my MacBook Pro (Retina, Mid 2012), my new iMac, and my old Mac Pro (2009), via the USB ports, but is unrecognized entirely on my new Mac Pro (late 2013). All mac

  • No sound from internal speakers or headphones when using ART Tube interface

    Hi - can anyone help with this... I have no sound fromthe internal speakers or headphones when using my new ART Tube USB interface - I get a nice loud recording level from the ART but cant monitor - in Logic 7.2 Audio hardware interface in logic 7.2

  • Duration of upgrade WLC with 75 AP

    I'm planning to upgrade a 4404 WLC with 75 LWAPP's, from 5.1 to 5.2.193. I read that after the WLC upgrade the AP's are automatically upgraded in groups of 10 and that the upgrade can last as long as 30 minutes. Does this mean some AP's are not funct