一条SQL占用CPU 100%

一个查询语句执行时占用单核CPU资源100%,请帮忙分析原因。
SQL及执行计划如下:
*** 2012-08-29 11:46:25.764
WAIT #9: nam='SQL*Net message from client' ela= 16994971 driver id=1413697536 #bytes=1 p3=0 obj#=16923 tim=1314660142349078
STAT #7 id=1 cnt=3 pid=0 pos=1 obj=0 op='HASH GROUP BY (cr=8283188 pr=0 pw=0 time=75576024 us)'
STAT #7 id=2 cnt=3 pid=1 pos=1 obj=0 op='NESTED LOOPS (cr=8283188 pr=0 pw=0 time=22207347 us)'
STAT #7 id=3 cnt=20138 pid=2 pos=1 obj=0 op='NESTED LOOPS (cr=58213 pr=0 pw=0 time=503569 us)'
STAT #7 id=4 cnt=20138 pid=3 pos=1 obj=16923 op='TABLE ACCESS BY INDEX ROWID REAL_XS_BMSDHZ (cr=17935 pr=0 pw=0 time=161196 us)'
STAT #7 id=5 cnt=20138 pid=4 pos=1 obj=16925 op='INDEX RANGE SCAN IDX_REAL_XS_BMSDHZ_SP (cr=205 pr=0 pw=0 time=20201 us)'
STAT #7 id=6 cnt=20138 pid=3 pos=2 obj=16307 op='TABLE ACCESS BY INDEX ROWID BM (cr=40278 pr=0 pw=0 time=263247 us)'
STAT #7 id=7 cnt=20138 pid=6 pos=1 obj=16308 op='INDEX UNIQUE SCAN PK_BM (cr=20140 pr=0 pw=0 time=130059 us)'
STAT #7 id=8 cnt=3 pid=2 pos=2 obj=16307 op='TABLE ACCESS BY INDEX ROWID BM (cr=8224975 pr=0 pw=0 time=75131469 us)'
STAT #7 id=9 cnt=3 pid=8 pos=1 obj=16309 op='INDEX UNIQUE SCAN BM_BMDM (cr=8224972 pr=0 pw=0 time=75063047 us)'
STAT #7 id=10 cnt=12084 pid=9 pos=1 obj=0 op='NESTED LOOPS (cr=8204832 pr=0 pw=0 time=74863852 us)'
STAT #7 id=11 cnt=3452523 pid=10 pos=1 obj=16924 op='INDEX RANGE SCAN PK_REAL_XS_BMSDHZ (cr=1287698 pr=0 pw=0 time=34756285 us)'
STAT #7 id=12 cnt=12084 pid=10 pos=2 obj=16307 op='TABLE ACCESS BY INDEX ROWID BM (cr=6917134 pr=0 pw=0 time=36180549 us)'
STAT #7 id=13 cnt=3452523 pid=12 pos=1 obj=16308 op='INDEX UNIQUE SCAN PK_BM (cr=3464611 pr=0 pw=0 time=17895710 us)'
=====================
PARSING IN CURSOR #5 len=985 dep=0 uid=36 oct=3 lid=36 tim=1314660142349798 hv=3549420567 ad='fb568520'
SELECT C.BMDM,
C.DEPT_NAME,
A.XSSD1,
A.XSSD2,
0 XSJE,
0 XSBS,
0 YHJE,
0 XSJE_BHQ,
SUM (A.XSJE) OLD_XSJE,
SUM (A.YHJE) OLD_YHJE,
SUM (A.XSJE - A.YHJE) OLD_XSJE_BHQ,
SUM (A.XSBS) OLD_XSBS,
0 COMPARE,
0 KDJ,
0 OLD_KDJ,
0 KDJ_BHQ,
0 OLD_KDJ_BHQ
FROM REAL_XS_BMSDHZ A, BM B, BM C
WHERE A.DEPTID = B.DEPTID
AND SUBSTR (B.BMDM, 1, 4) = C.BMDM
AND A.JZRQ = '2012-8-22'
AND NOT EXISTS
(SELECT 1
FROM REAL_XS_BMSDHZ Z1, BM B1
WHERE Z1.XSSD1 = A.XSSD1
AND Z1.DEPTID = B1.DEPTID
AND SUBSTR (B1.BMDM, 1, 4) = C.BMDM
AND Z1.JZRQ = '2012-8-23')
GROUP BY C.BMDM,
C.DEPT_NAME,
A.XSSD1,
A.XSSD2
END OF STMT
PARSE #5:c=0,e=186,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=1314660142349795
EXEC #5:c=0,e=128,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=1314660142350084
WAIT #5: nam='SQL*Net message to client' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=16923 tim=1314660142350130
WAIT #5: nam='gc cr block 2-way' ela= 394 p1=129 p2=25709 p3=1 obj#=16923 tim=1314660144811060
*** 2012-08-29 11:47:46.104
FETCH #5:c=80317790,e=78455566,p=0,cr=8283188,cu=0,mis=0,r=1,dep=0,og=1,tim=1314660220805742
WAIT #5: nam='SQL*Net message from client' ela= 3424 driver id=1413697536 #bytes=1 p3=0 obj#=16923 tim=1314660220809320
WAIT #5: nam='SQL*Net message to client' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=16923 tim=1314660220809468
FETCH #5:c=0,e=78,p=0,cr=0,cu=0,mis=0,r=2,dep=0,og=1,tim=1314660220809529
WAIT #5: nam='SQL*Net message from client' ela= 12233 driver id=1413697536 #bytes=1 p3=0 obj#=16923 tim=1314660220821911
=====================
在fetch阶段出现耗费大量CPU等待时间,这是为何?
环境:
OS:
lsb_release -d
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
数据库版本:
SQL> select * From v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production

bf01</oracle/admin/bfdb/udump>$cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 3
siblings : 4
core id : 12
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4270.34
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 8
siblings : 4
core id : 32
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.12
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 4
siblings : 4
core id : 16
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.11
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 15
siblings : 4
core id : 60
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.08
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 3
siblings : 4
core id : 13
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 8
siblings : 4
core id : 33
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.22
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 4
siblings : 4
core id : 17
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.06
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 15
siblings : 4
core id : 61
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.10
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 8
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 3
siblings : 4
core id : 14
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.12
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 9
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 8
siblings : 4
core id : 34
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.21
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 10
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 4
siblings : 4
core id : 18
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.08
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 11
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 15
siblings : 4
core id : 62
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.09
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 12
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 3
siblings : 4
core id : 15
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.01
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 13
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 8
siblings : 4
core id : 35
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.07
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 14
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 4
siblings : 4
core id : 19
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.13
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 15
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
stepping : 11
cpu MHz : 2132.385
cache size : 2048 KB
physical id : 15
siblings : 4
core id : 63
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4264.11
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

Similar Messages

  • SQL CPU always on top at 10:00 am, no jobs are execute at that time...any tool that helps me to find the issue?

    Hi everyone,since one month ago, my sql server 2008 has been experimented that something makes that my cpu server always be on 100% at 10:00 am , and even sometimes have crashed the server because of this,i have no executions jobs programmed at that time,
    ran sql history jobs to see if i missed some job, but not even one job seems to be executed at that time, also there is no antivirus or windows update programmed at time
    Does any one can recommend me a tool that not be the sql profiler , that we can use to be on monitoring at that time and tried or catch what makes that the sql cpu go to 100%, this happens all days at the same time. 
    Thanks for your time and if there is any way that i can give you more information please tellme
    ----More Information
    Well basically the sql server its a virtual server, at 10:00 am the sql works slower than usually, the ti support that is monitoring the virtual machine , see that cpu starts to raise at that time (10:00 am) and
    usually takes 1-2 minutes to back to normally, i had a back up BD log and differencial at that casually was execute at time, i had to change the time and now does not affect at 10:00, when i had this backups the server crashes, because the cpu was not enough,
    now i moved the job (back up log adn diff) and the server dont crashes anymore, but still be something at 10:00 that make the cpu raises to the top. by test we disabled mcaffe and even with mcaffe down the server still having the same issue. 
    elijos3110

    Elijos,
    What do task manager or  ProcessExplorer say at 10:00 AM? Could be an anti-virus program or something.
    Hi, thanks for your time, Well
    basically the sql server its a virtual server, at 10:00 am the sql works slower than usually, the ti support that is monitoring the virtual machine , see that cpu starts to raise at that time (10:00 am) and usually takes 1-2 minutes to back to normally, i
    had a back up BD log and differencial at that casually was execute at time, i had to change the time and now does not affect at 10:00, when i had this backups the server crashes, because the cpu was not enough, now i moved the job (back up log adn diff) and
    the server dont crashes anymore, but still be something at 10:00 that make the cpu raises to the top. by test we disabled mcaffe and even with mcaffe down the server still having the same issue.
    elijos3110
    elijos3110

  • CPU 100% When Playing Minecraft iMac

    Hi There!
    As the title says, "CPU 100% When Playing Minecraft". Every time I boot up Minecraft the Fan becomes loud. I have another iMac (Late 2013) Model and it runs Minecraft fine with all the same settings. So I don't really no what to do. But if you could help me try to get the CPU usage down or maybe turn the fan down? Or something like that that would be great!!
    My iMac Specs.
    Mac (Retina 5K, 27-inch, Late 2014)
    Processor: 4 GHz Intel Core i7
    Memory: 32 GB 1600 MHz DDR3
    Graphics: AMD Radeon R9 M295X 4096 MB
    So Yeah, if you could give me a hand, I would be so much appreciated!
    Thanks!

    Firefox 3.6.6 Windows XP - often goes to 80-100% CPU even with only one tab open (in this case the one I'm writing this message on). When this happens the only cure is to kill it with task manager and start again.

  • Sony mw600 a2dp avrcpagent mac air os 10.8.2 cpu 100%

    sony mw600 a2dp avrcpagent (mac air 4,2   2011 mid)  os 10.8.2 cpu 100%  ? why..?

    sony mw600 a2dp avrcpagent (mac air 4,2   2011 mid)  os 10.8.2 cpu 100%  ? why..?

  • G580(20150) CPU 100%

    При добавлении или уменьшении гровкости, а так же яркости экрана с помощью кнорки Fn +нужная стрелочка вылазит сообщение. В заголовке написано "Energy Managment", сообщение внутри окна"CPU 100%" и кнопка "OK". Посмотрев по диспетчеру задач процессор не загружается на 100 процентов, а просто выскакивает окно. Которое мешает постоянно. Как исправить? Спасибо заранее за ответ.

    Приветствую
    Никаких других идей, кроме удаления и переустановки драйвера Lenovo Energy Management лично у меня нет. Вы не назвали ОС, для win8.1, например, есть два разных релиза, для разных платформ ноутов. Для 20150:
    http://support.lenovo.com/us/en/products/laptops-and-netbooks/lenovo-g-series-laptops/lenovo-g580-notebook/20150/downloads/DS037135

  • Lenovo S10-1 CPU 100%

    Hello
    I have S10-2 with Windows 7 Home edition. Problem is when I have open 2 or three windows explorer and maybe 2 google chrome windows CPU goes to 100%. Is there some controller problem or something else. Same problem if I copy some files from USB removable disk to my local disk and open internet explorer. Again CPU 100%
    Thanks for answers
    Marko

    Hi and welcome...
    agreed ... depends on memory, energyprofile, and usage of background tasks (there are a few  
    Quote "" Same problem if I copy some files from USB removable disk to my local disk""
    ...  USB to HDD transfer is indeed a huge process for our Intel N270/945 combo ...
    where a C2D have enough power ... our N270/945 comes to sweat ... if you get him more tasks, while usb transfer to hdd, so give them a bit time  
    ..  its a netbook not a subnote or note  .... some times we forgot this..
    because all other things is nearly managed with same performance with this small device ...  
    sincerely KalvinKlein
    Thinkies 2x X200s/X301 8GB 256GB SSD @ Win 7 64
    Ideas Centre A520 ,Yoga 2 256GB SSD,Yoga 2 tablet @ Win 8.1

  • SQL developer 100% CPU utilization

    SQL dev: ver 1.5.1 - 5440
    Win xp SP3 on a Dell dual core laptop, 2Gs ram
    All options in Code insight disabled.
    This is sporadic. I open sql dev up and don't open any connections or workbook or files. And it just sits there, 100% on one of the CPU's, Mem usage increasing, started at about 118MB and went up to over 350MB before i had to close the app. having the second CPU made sure that the machine was still responsive.
    The next time I open it, all's fine. It sits there, again with nothing open (connections/files etc), at 118MB usage steady with 0% util. Seems like the first time I run the app after a reboot, it goes haywire on resources. Wish I could attach a screen print image.

    I have the same issue, same sporadic behavior.
    SQL Dev ver 1.5.1 54 40
    Win XP sp 3 , Gateway dual core laptop, 4G ram
    All options in Code Insight disabled.
    When it kicks off, it goes to mem usage 634M or so,
    It seems to happen only if I leave SQL Dev idle for a few minutes with a connection open and work in progress. I will try with no connection open at all to see if the same occurs.
    Is there any option I can turn off to possibly avoid this ?
    I am willing to work with someone to figure it out,
    Thanks!

  • Sql using 100%cpu

    Hopefully someone will be able to advise me on something i am stuck on.
    this is the sql statement running from a client machine (windows xp) and is connected to a database on a db server running oracle linux and oracle 10.2.0.3 database.
    SELECT M.FID, M.ANCHORPOSITION, M.HEIGHT, M.ORIENTATION, M.TEXTSTRING, M.GEOM.SDO_POINT.X X, M.GEOM.SDO_POINT.Y Y
    FROM CARTOGRAPHICTEXT M
    WHERE M.FID IN (SELECT FID FROM CTDESCRIPTIVEGROUP WHERE DESCRIPTIVEGROUPID = 40)
    AND M.PROCESSED = 'F'
    during the execution of this statement, the following stats were determined.
    Total Per Execution Per Row
    Executions 1 1 0.00
    CPU Time (sec) 450745.25 450745.25 6.70
    Buffer Gets 1895169951 1895169951.00 28180.97
    Disk Reads 36611613 36611613.00 544.41
    Direct Writes 0 0.00 0.00
    Rows 67250 67250.00 1
    Fetches 2690 2690.00 0.04
    the table cartographictext has circa 1million rows and the select statement selecting from ctdescripitvegroup will return 12million rows.
    when viewing the top events in linux, oracle pid calling this sql is showing %cpu at 100. similarly when viewing the diagnostics in em console, the cpu is at 100%.
    the application runs a number of sql statements onthe table with varying where clauses. on similar sql events on another table prior to this, the first sql call to the table took 11 hours to complete, but the subsequent sql were completed in less then 2 minutes per call.
    the above statement has been running for 4 days now and only returned 67000 rows.
    having checked the other stats, i wasn't able to determine where the problem lies.
    some other stats gathered for the sql running were (name, value, per second, per transaction)
    session logical reads           15656741223.00           33714.06      196601.34
    db block changes           112877872.00           243.06           1417.40
    physical reads                43149624.00           92.92           541.83
    redo size (KB)                13437993.80           28.94           168.74
    execute count                2748199.00           5.92           34.51
    physical writes           2456826.00           5.29           30.85
    DB time (seconds)           1899189.45           4.09           23.85
    user calls                1085873.00           2.34           13.64
    opened cursors cumulative      1047893.00           2.26           13.16
    parse count (total)           1002199.00           2.16           12.58
    session cursor cache hits      696558.00           1.50           8.75
    workarea executions - optimal      504960.00           1.09           6.34
    user commits                75505.00           0.16           0.95
    user rollbacks                4132.00           0.01           0.05
    parse time elapsed (seconds)      50.86                0.00           0.00
    parse time cpu (seconds)      26.27                0.00           0.00
    workarea executions - onepass      16.00                0.00           0.00
    sql tuning advisor does flag it as not very well tuned, but then doesn't offer any recommendations. stats have been gathered on the tables. have tried some hints, but not to much success, explain plan said it was using a hash join right semi.
    any help would be appreiciated.

    execution plan for original sql
    12260902 rows selected.
    Elapsed: 00:03:15.46
    Execution Plan
    Plan hash value: 662574731
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost
    (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1476K| 108M| | 198K (3)| 00:39:39 |
    |* 1 | HASH JOIN RIGHT SEMI| | 1476K| 108M| 50M| 198K (3)| 00:39:39 |
    |* 2 | TABLE ACCESS FULL | CTDESCRIPTIVEGROUP | 1476K| 33M| | 20567 (4)| 00:04:07 |
    |* 3 | TABLE ACCESS FULL | CARTOGRAPHICTEXT | 22M| 1118M| | 106K (4)| 00:21:18 |
    Predicate Information (identified by operation id):
    1 - access("M"."FID"="FID")
    2 - filter("DESCRIPTIVEGROUPID"=40)
    3 - filter("M"."PROCESSED"='F')
    Statistics
    1905 recursive calls
    0 db block gets
    561135 consistent gets
    797262 physical reads
    0 redo size
    710207339 bytes sent via SQL*Net to client
    8991723 bytes received via SQL*Net from client
    817395 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    12260902 rows processed

  • Oracle.exe and java.exe are running my CPU 100% under XP Prof SP3

    11gR1
    oracle.exe and java.exe are running 100% CPU
    I have increased virtual memory to 4 gig
    I have defragmented the drive.
    I checked the drive for errors.
    I am searching the whole drive for viruses
    I do not have the problem with Redhat Fedora 12 running 11gR1
    I have 1 gig of RAM but cannot install release 2 because the installer expects
    1 gig + 1

    ooops!!! left that off...sorry
    XP Prof SP3 32 bit..*.no problem with Redhat Fedora 12 running MySQL and 11gR1*
    1 gig RAM Dell precision W/S 1.5 Gig rate 74 GiG SCSI HD 15000 RPM
    Don't pass out but I am also running MySQL server 5.1.41 and MS SQL Server Express 2008.
    Lucky it didn't catch fire
    I installed XP prof months ago but this CPU domination occurred only starting last night!
    However slow everything works in 11gR1
    sqlplus myname/password and then select rows from table
    sqldeveloper
    PHP web sites
    I've had plenty of trouble with Java running slow and hogging memory!
    Edited by: landonmkelsey on May 2, 2010 12:21 PM
    Edited by: landonmkelsey on May 2, 2010 12:24 PM
    Let me guess...stop services for MySQL and MS SQL Server and see what happens!
    Edited by: landonmkelsey on May 2, 2010 12:26 PM

  • High SQL cpu usage?

    Just for clarification, you are talking about the alerts caused by VeeamOne, not Veeam Backup & Replication, correct?

    So I started getting warnings from Veeam about our SQL server's CPU usage. It got up to 100% at one point in the day and stayed there for 30 minutes or so.Our SQL Server specs are:4 CPU's @ 2.GHZ each I think.... 4 CPU's nonetheless.16 GB ramvirtualized on vsphere 5.1So I logged into the SQL server to see what was up (note that this has been happening for the past month or so, just hadn't had time to actually sit down and work on it, plus it didn't seem to effect the performance of our patient software too much which runs on SQL. Until this morning and it was very sluggish.)I noticed that the SQL server processes were running at 50% or more sometimes. I caught a screen shot of it when it was on it's way down. How can I trouble shoot something like this and figure out what in the hell is causing it to spike? I am not a master at SQL so...
    This topic first appeared in the Spiceworks Community

  • SQL CPU spikes

    Hi everyone,
    got a strange occurrence that takes place often and I wondered if anyone had come across this type of behavior before.
    I have a test server that is running SQL 2005 sp4 (don't believe the version is the cause), it's running on a esxi VM which I don't actually have control over.
    every couple days, the customer will report that the system is running slow. I check the server, and find that SQL is running at 90%+ of the CPU...constantly.
    checking activity monitor, I see that the queries are the same select queries that the site would run every day for testing. Except, that now, it's taking a minute plus to execute.
    I have to then run a reindex (with online= ON, for them to continue using the DB), and that takes about 2 minutes, and then the CPU is back to normal and the same select queries take less than a second to complete.
    This is a very small DB (maybe about 3 gigs), and the fragmentation of the indexes are hardly anything to note.
    My initial thought was that maybe the site is using Vmotion or some ESXi feature that's somehow causing the DB to get into this state. But, it's only a theory at this point.
    wondering if anyone has come across this type of behavior before and can shed some light or tips for me to track the issue down.
    thanks!

    In addition
    ---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

  • [GNOME 3.4] gnome-shell overview search + gnome-documents - CPU 100%

    Hello
    When I type something in the gnome shell overview my CPU goes to 100% for a few seconds even after I left the overview.
    The process which is taking my CPU is : gjs-console
    With gnome 3.4 you can search for documents via the gnome shell overview, this search is based on gnome-documents. So I tried dis-installing gnome-documents and the problem was solved.
    I don't know if it's a bug... but if the gjs-console really is the documents overview search process, it's strange that it doesn't stop when I leave this overview.
    What do you think ? Should I report it as a bug ? Arch bug / upstream bug ?
    PS : By the way, the gnome-shell extension "tracker-search" is faster and, I think, better for finding documents via the overview.

    This behaviour is the same in my box but I don't think it's an arch bug but an upstream issue (its not a bug formally speaking)... maybe it should be reported to the gnome-documents team in order they do more polish to it.
    Best,

  • Slow throughput Ironport S370 Proxy CPU 100%

    We have a cluster of 3 x Ironport S370's all running 7.7.0-753
    The throughput is really poor we have a 500Mbps Internet connection which at it's peak is only getting to 120Mbps as the Ironports don't seem to be able to handle the traffic.
    The Proxy CPU% is always close to 100% but the overall CPU is usually at no more than 30% at times it can take up to 60 seconds to load the initial page particularly if the site is an HTTPS site.
    We have
    22 Identities
    62 Access policies
    6 decryption Policies
    Our maintainer says that having this number of Identities / policies should not be an issue but I have my doubts.
    Can anyone advise as it's really become a major issue, Output from the rate and status commands are below.
     %proxy  reqs                         client    server    %bw  disk  disk
         CPU  /sec   hits blocks misses    kb/sec    kb/sec  saved   wrs   rds
     99.00   285    373   1293   1193     26484     21838   17.5   550   100
     99.00   286    209   1313   1335     28682     24532   14.5   635    80
     99.00   285    182   1323   1359     37083     33529    9.6  1351     0
    100.00   231    132   1051   1113     34816     34151    1.9   355     0
     98.00   253    161   1171   1195     39668     37236    6.1  1363     0
     99.00   294    256   1225   1469     51371     43304   15.7  1117    40
     96.00   346    525   1166   1763     31882     23300   26.9  1328     0
     98.00   302    228   1258   1534     30385     25565   15.9  1302     0
     99.00   295    149   1200   1597     26253     22888   12.8   816     0
     98.00   275    199   1020   1536     35237     31443   10.8   838     0
     99.00   288    184   1131   1574     35019     26688   23.8  1433     0
     99.00   262    116   1073   1437     24744     23228    6.1  1306     0
    105.00   307    292   1165   1610     24249     20236   16.6  1061     0
    Status as of:                  Thu Oct 16 08:28:10 2014 GMT
    Up since:                      Wed Oct 15 15:21:19 2014 GMT (17h 6m 51s)
    System Resource Utilization:
      CPU                                    28.2%
      RAM                                    82.6%
      Reporting/Logging Disk                 16.0%
    Transactions per Second:
      Average in last minute                   266
      Maximum in last hour                     296
      Average in last hour                     118
      Maximum since proxy restart              296
      Average since proxy restart                9
    Bandwidth (Mbps):
      Average in last minute                25.461
      Maximum in last hour                  49.605
      Average in last hour                  16.400
      Maximum since proxy restart           49.605
      Average since proxy restart            1.365
    Response Time (ms):
      Average in last minute                   179
      Maximum in last hour                     526
      Average in last hour                     192
      Maximum since proxy restart            17710
      Average since proxy restart             3165
    Cache Hit Rate:
      Average in last minute                    16
      Maximum in last hour                      25
      Average in last hour                       7
      Maximum since proxy restart               25
      Average since proxy restart                0
    Connections:
      Idle client connections                 1276
      Idle server connections                 1170
      Total client connections                1638
      Total server connections                1890

    In the release notes it states...
    IMPORTANT: During testing of AsyncOS 7.7.0, Cisco observed performance changes ranging from + 
    33% to - 16%, depending on the model and configuration. Performance degradation risk is limited to 
    S160 & S360 models and models S370 and S660 that are running the web proxy without security 
    services. If you experience performance degradation with AsyncOS 7.7.0, Cisco recommends that you 
    revert to AsyncOS 7.5.x. 
    http://www.cisco.com/c/dam/en/us/td/docs/security/wsa/wsa7-7/Release_Notes/WSA_7-7-0_Builds_after_725_Release_Notes.pdf

  • [linux] 9.0.115.0 causes CPU 100% with firefox

    The 9.0.115.0 version of FlashPlayer causes 80-100% CPU
    consumption with latest Firefox on linux.
    The only solution I found, I get back to the 48... Can you
    fix it? Can you help me?

    I have the same problem with 9.0.115.0 in Linux.
    I have posted a bug-report to Adobe support last week - no
    reaction yet.
    Good site for testing is:
    http://www.lanik.us/misc/ff-flash-test.html

  • Pages 5.1 Fluctuates between 0.6% CPU & 100% CPU

    I have only used Pages a few times.  I recently got iWork when I upgraded to Mavericks.  I designed a template that looks exactly like a college ruled notebook so I can visualize ruled pages. 
    There are about 36 objects, which are a set of GROUPED & LOCKED horizontal blue lines and one vertical red line and are not obstructed or moved by text. 
    Now when I begin to write or type on the page after I've saved as template, I can usually get about 5 words or so in before I get that spinning pinwheel / beach ball.  The spinning lasts about 2 minutes.
    At this time, I open the Activity Monitor and watch what occurs.  The % CPU goes from 0.6 - 100% when this occurs.  It also says in the Process name that the application is (Not Responding) while it spins. 
    I am not sure if this is an autosave thing that is occurring or not.  I have saved a file directly on the Desktop as well as iCloud, and it seems that this occurs in both forms of working on Pages. 
    I have done simple procedures like quit app, restart / shutdown computer, etc to no avail.  I would like to continue to use Pages, but this is completely not acceptable.
    Any suggestions?
    Cheers,
    jeff

    Thanks, mate, thought that might be an issue, but didn't want to believe that was the case.
    How does one spend any time at all working in Pages if they truly used what it is designed for - adding objects / images, etc. - without feeling like they've timewarped back to 133mHz computers?
    It is bizarre, because I set the object as static objects and not to be manipulated by the text.  Is it still doing a calculation even though they are fixed vector lines?  I would think that the LOCKED option eliminates that factor and sees it sort of as a flattened object in the background, no?
    It's truly painful.  I can type on my iPhone with much less issues.

Maybe you are looking for