Sqlquery to find out high CPU usage
Hi,
I want to find out the queries which using high CPU in a RAC database. What is the best way to find it out.
Regards,
Koushik
I have executed the following query block enabling set event level 12.
begin
for i_rec in 1..4000
loop
TRD_TABLE_POPULATION;
end loop;
end;
The procedure contains deque and merge statement. Please find the output below of the trace output.
TKPROF: Release 10.1.0.2.0 - Production on Thu Oct 11 18:09:02 2007
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Trace file: orbit02_ora_5933.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
The following statement encountered a error during parse:
SELECT 1 FROM DUAL WHERE ORD.ORDL = TRD.ORDER_LINE_I
Error encountered: ORA-00904
ALTER SESSION SET EVENTS '10046 trace name context forever, level 12'
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 0
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: 280
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 74.65 74.65
begin
for i_rec in 1..4000
loop
TRD_TABLE_POPULATION;
end loop;
end;
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 1.13 1.22 11 2257403 970 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 1.13 1.23 11 2257403 970 0
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: 280
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#,
sample_size, minimum, maximum, distcnt, lowval, hival, density, col#,
spare1, spare2, avgcln
from
hist_head$ where obj#=:1 and intcol#=:2
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 26 0.00 0.00 0 0 0 0
Fetch 26 0.00 0.00 0 103 0 25
total 53 0.00 0.00 0 103 0 25
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: RULE
Parsing user id: SYS (recursive depth: 3)
select metadata
from
kopm$ where name='DB_FDO'
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
1 TABLE ACCESS BY INDEX ROWID KOPM$ (cr=2 pr=0 pw=0 time=19 us)
1 INDEX UNIQUE SCAN I_KOPM1 (cr=1 pr=0 pw=0 time=11 us)(object id 350)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
row cache lock 3 0.00 0.00
select o.owner#,o.name,o.namespace,o.remoteowner,o.linkname,o.subname,
o.dataobj#,o.flags
from
obj$ o where o.obj#=:1
call count cpu elapsed disk query current rows
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 8 0 2
total 6 0.00 0.00 0 8 0 2
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
1 TABLE ACCESS BY INDEX ROWID OBJ#(18) (cr=4 pr=0 pw=0 time=34 us)
1 INDEX UNIQUE SCAN OBJ#(36) (cr=3 pr=0 pw=0 time=21 us)(object id 36)
select /*+ INDEX(TAB) */ tab.rowid, tab.msgid, tab.corrid, tab.priority,
tab.delay, tab.expiration, tab.retry_count, tab.exception_qschema,
tab.exception_queue, tab.chain_no, tab.local_order_no, tab.enq_time,
tab.time_manager_info, tab.state, tab.enq_tid, tab.step_no,
tab.sender_name, tab.sender_address, tab.sender_protocol,
tab.dequeue_msgid, tab.user_prop, tab.cscn, tab.dscn, tab.user_data
from
"GENESYS_POC_AQ"."FM_ORDERLINE_QUEUE_TBL" tab where q_name = :1 and state =
:2 order by q_name, state, enq_time, step_no, chain_no, local_order_no
for update skip locked
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 968 0.36 0.34 0 165 0 0
Fetch 968 0.10 0.05 0 4840 0 0
total 1937 0.46 0.39 0 5005 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
MERGE INTO FM_ORDERLINES_TRD TRD USING (SELECT :B41 ORDL, :B40 SYSINS, :B39
CUST_ORD_ID, :B38 SERV_ID, :B37 INS_TEL, :B36 CUST_REQ_DATE, :B35
CUST_AGG_DATE, :B34 RCV_DATE, :B33 APP_DATE, :B32 APP_TIME, :B31 COMM_DATE,
:B30 EU_POST_CODE, :B29 PROD, :B28 SER_PRV, :B27 EXCH_ID, :B26 SRV_CARE_LVL,
:B25 ORD_TYPE, :B24 CAN_RES, :B23 AU_DELAY_RES, :B22 BILL_ACC_NO, :B21
CUST_ID, :B20 ACC_LINE_ID, :B19 COMP_DATE, :B18 COOR_ID, :B17 LOP_ID, :B16
EXCH_NAME, :B15 MDF_SITE, :B14 DES_DP, :B13 MPF_TIE_CABLE, :B12
MPF_TIE_PAIR, :B11 MPF_TIE_PAIR_ST, :B10 PSTN_ORD_NUM, :B9
PSTN_TIE_CABLE_ID, :B8 PSTN_TIE_PAIR_ST, :B7 CP_CONTACT_NUM, :B6
LINK_ORD_REF, :B5 BT_POST, :B4 CSS_SMPF_ORD, :B3 MNG_BES_ID, :B2 CSS_PROD,
:B1 CSS_DRV FROM DUAL) ORD ON(ORD.ORDL = TRD.ORDER_LINE_ID) WHEN MATCHED
THEN UPDATE SET TRD.SYSTEM_INSTANCE = ORD.SYSINS , TRD.CUST_ORDER_ID =
ORD.CUST_ORD_ID, TRD.SERVICE_ID =ORD.SERV_ID, TRD.INSTALLATION_TELEPHONE =
ORD.INS_TEL, TRD.CUSTOMER_REQ_DATE =ORD.CUST_REQ_DATE,
TRD.CUSTOMER_AGREED_DATE =ORD.CUST_AGG_DATE, TRD.RECEIVED_DATE =
ORD.RCV_DATE, TRD.APPOINTMENT_DATE =ORD.APP_DATE, TRD.APPOINTMENT_TIME =
ORD.APP_TIME, TRD.COMMIT_DATE =ORD.COMM_DATE, TRD.EU_POSTCODE =
ORD.EU_POST_CODE, TRD.PRODUCT =ORD.PROD, TRD.SERVICE_PROVIDER =ORD.SER_PRV,
TRD.EXCHANGE_ID =ORD.EXCH_ID, TRD.SERVICE_CARE_LEVEL =ORD.SRV_CARE_LVL,
TRD.ORDER_TYPE =ORD.ORD_TYPE, TRD.CANCELLED_REASON =ORD.CAN_RES,
TRD.AUTO_DELAY_REASON =ORD.AU_DELAY_RES, TRD.BILLING_ACCOUNT_NO =
ORD.BILL_ACC_NO, TRD.CUSTOMER_ID =ORD.CUST_ID, TRD.ACCESS_LINE_ID =
ORD.ACC_LINE_ID, TRD.COMPLETION_DATE =ORD.COMP_DATE, TRD.COORDINATOR_ID =
ORD.COOR_ID, TRD.LOP_ID =ORD.LOP_ID, TRD.EXCHANGE_NAME =ORD.EXCH_NAME,
TRD.MDF_SITE_ID =ORD.MDF_SITE, TRD.DESIGN_DP =ORD.DES_DP,
TRD.MPF_TIE_CABLE_ID =ORD.MPF_TIE_CABLE, TRD.MPF_TIE_PAIR_ID =
ORD.MPF_TIE_PAIR, TRD.MPF_TIE_PAIR_STATUS =ORD.MPF_TIE_PAIR_ST,
TRD.PSTN_ORDER_NO =ORD.PSTN_ORD_NUM, TRD.PSTN_TIE_CABLE_ID =
ORD.PSTN_TIE_CABLE_ID, TRD.PSTN_TIE_PAIR_STATUS =ORD.PSTN_TIE_PAIR_ST,
TRD.CP_CONTACT_NUMBER =ORD.CP_CONTACT_NUM, TRD.LINKED_ORDER_REF =
ORD.LINK_ORD_REF, TRD.BT_POSTCODE =ORD.BT_POST, TRD.CSS_SMPF_ORDER =
ORD.CSS_SMPF_ORD, TRD.MANAGE_BES_ID =ORD.MNG_BES_ID, TRD.CSS_PRODUCT_CODE =
ORD.CSS_PROD, TRD.CSS_DRIVER_CODE =ORD.CSS_DRV WHEN NOT MATCHED THEN
INSERT(TRD.ORDER_LINE_ID, TRD.SYSTEM_INSTANCE, TRD.CUST_ORDER_ID,
TRD.SERVICE_ID, TRD.INSTALLATION_TELEPHONE, TRD.CUSTOMER_REQ_DATE,
TRD.CUSTOMER_AGREED_DATE, TRD.RECEIVED_DATE, TRD.APPOINTMENT_DATE,
TRD.APPOINTMENT_TIME, TRD.COMMIT_DATE, TRD.EU_POSTCODE, TRD.PRODUCT,
TRD.SERVICE_PROVIDER, TRD.EXCHANGE_ID, TRD.SERVICE_CARE_LEVEL,
TRD.ORDER_TYPE, TRD.CANCELLED_REASON, TRD.AUTO_DELAY_REASON,
TRD.BILLING_ACCOUNT_NO, TRD.CUSTOMER_ID, TRD.ACCESS_LINE_ID,
TRD.COMPLETION_DATE, TRD.COORDINATOR_ID, TRD.LOP_ID, TRD.EXCHANGE_NAME,
TRD.MDF_SITE_ID, TRD.DESIGN_DP, TRD.MPF_TIE_CABLE_ID, TRD.MPF_TIE_PAIR_ID,
TRD.MPF_TIE_PAIR_STATUS, TRD.CP_CONTACT_NUMBER, TRD.LINKED_ORDER_REF,
TRD.BT_POSTCODE, TRD.CSS_SMPF_ORDER, TRD.MANAGE_BES_ID,
TRD.CSS_PRODUCT_CODE, TRD.CSS_DRIVER_CODE ) VALUES(ORD.ORDL, ORD.SYSINS,
ORD.CUST_ORD_ID, ORD.SERV_ID, ORD.INS_TEL, ORD.CUST_REQ_DATE,
ORD.CUST_AGG_DATE, ORD.RCV_DATE, ORD.APP_DATE, ORD.APP_TIME, ORD.COMM_DATE,
ORD.EU_POST_CODE, ORD.PROD, ORD.SER_PRV, ORD.EXCH_ID, ORD.SRV_CARE_LVL,
ORD.ORD_TYPE, ORD.CAN_RES, ORD.AU_DELAY_RES, ORD.BILL_ACC_NO, ORD.CUST_ID,
ORD.ACC_LINE_ID, ORD.COMP_DATE, ORD.COOR_ID, ORD.LOP_ID, ORD.EXCH_NAME,
ORD.MDF_SITE, ORD.DES_DP, ORD.MPF_TIE_CABLE, ORD.MPF_TIE_PAIR,
ORD.MPF_TIE_PAIR_ST, ORD.CP_CONTACT_NUM, ORD.LINK_ORD_REF, ORD.BT_POST,
ORD.CSS_SMPF_ORD, ORD.MNG_BES_ID, ORD.CSS_PROD, ORD.CSS_DRV )
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 968 1743.31 1791.19 0 2252195 1970 966
Fetch 0 0.00 0.00 0 0 0 0
total 969 1743.31 1791.19 0 2252195 1970 966
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: 280 (recursive depth: 1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
gc current grant 2-way 2 0.00 0.00
latch: cache buffers chains 10 0.02 0.16
INSERT INTO FM_ORDERLINES_EXP (ORDER_LINE_ID , SYSTEM_INSTANCE ,
CUST_ORDER_ID, SERVICE_ID , INSTALLATION_TELEPHONE , CUSTOMER_REQ_DATE ,
CUSTOMER_AGREED_DATE , RECEIVED_DATE , APPOINTMENT_DATE , APPOINTMENT_TIME ,
COMMIT_DATE , EU_POSTCODE , PRODUCT , SERVICE_PROVIDER , EXCHANGE_ID ,
SERVICE_CARE_LEVEL , ORDER_TYPE , CANCELLED_REASON , AUTO_DELAY_REASON ,
BILLING_ACCOUNT_NO, CUSTOMER_ID , ACCESS_LINE_ID , COMPLETION_DATE ,
COORDINATOR_ID , LOP_ID , EXCHANGE_NAME , MDF_SITE_ID , DESIGN_DP ,
MPF_TIE_CABLE_ID, MPF_TIE_PAIR_ID , MPF_TIE_PAIR_STATUS , PSTN_ORDER_NO ,
PSTN_TIE_CABLE_ID , PSTN_TIE_PAIR_STATUS , CP_CONTACT_NUMBER,
LINKED_ORDER_REF, BT_POSTCODE , CSS_SMPF_ORDER , MANAGE_BES_ID ,
CSS_PRODUCT_CODE , CSS_DRIVER_CODE)
VALUES
(:B41 , :B40 , :B39 , :B38 , :B37 , :B36 , :B35 , :B34 , :B33 , :B32 , :B31 ,
:B30 , :B29 , :B28 , :B27 , :B26 , :B25 , :B24 , :B23 , :B22 , :B21 , :B20
, :B19 , :B18 , :B17 , :B16 , :B15 , :B14 , :B13 , :B12 , :B11 , :B10 , :B9
, :B8 , :B7 , :B6 , :B5 , :B4 , :B3 , :B2 , :B1 )
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.05 0.17 11 177 6 1
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.05 0.17 11 177 6 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: 280 (recursive depth: 1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
library cache lock 2 0.00 0.00
library cache pin 1 0.00 0.00
row cache lock 3 0.00 0.00
rdbms ipc reply 1 0.00 0.00
enq: TM - contention 2 0.00 0.00
db file sequential read 4 0.01 0.03
gc cr grant 2-way 1 0.00 0.00
gc current grant 2-way 2 0.00 0.00
select obj#,type#,ctime,mtime,stime,status,dataobj#,flags,oid$, spare1,
spare2
from
obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null
and linkname is null and subname is null
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 5 0 1
total 3 0.00 0.00 0 5 0 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
1 TABLE ACCESS BY INDEX ROWID OBJ#(18) (cr=5 pr=0 pw=0 time=149 us)
1 INDEX RANGE SCAN OBJ#(37) (cr=4 pr=0 pw=0 time=135 us)(object id 37)
select t.ts#,t.file#,t.block#,nvl(t.bobj#,0),nvl(t.tab#,0),t.intcols,
nvl(t.clucols,0),t.audit$,t.flags,t.pctfree$,t.pctused$,t.initrans,
t.maxtrans,t.rowcnt,t.blkcnt,t.empcnt,t.avgspc,t.chncnt,t.avgrln,
t.analyzetime,t.samplesize,t.cols,t.property,nvl(t.degree,1),
nvl(t.instances,1),t.avgspc_flb,t.flbcnt,t.kernelcols,nvl(t.trigflag, 0),
nvl(t.spare1,0),nvl(t.spare2,0),t.spare4,t.spare6,ts.cachedblk,ts.cachehit,
ts.logicalread
from
tab$ t, tab_stats$ ts where t.obj#= :1 and t.obj# = ts.obj# (+)
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.01 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 5 0 1
total 3 0.01 0.00 0 5 0 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
row cache lock 9 0.00 0.00
select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags,i.property,
i.pctfree$,i.initrans,i.maxtrans,i.blevel,i.leafcnt,i.distkey,i.lblkkey,
i.dblkkey,i.clufac,i.cols,i.analyzetime,i.samplesize,i.dataobj#,
nvl(i.degree,1),nvl(i.instances,1),i.rowcnt,mod(i.pctthres$,256),
i.indmethod#,i.trunccnt,nvl(c.unicols,0),nvl(c.deferrable#+c.valid#,0),
nvl(i.spare1,i.intcols),i.spare4,i.spare2,i.spare6,decode(i.pctthres$,null,
null,mod(trunc(i.pctthres$/256),256)),ist.cachedblk,ist.cachehit,
ist.logicalread
from
ind$ i, ind_stats$ ist, (select enabled, min(cols) unicols,
min(to_number(bitand(defer,1))) deferrable#,min(to_number(bitand(defer,4)))
valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where
i.obj#=c.enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.01 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 4 0 0
total 3 0.01 0.00 0 4 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
row cache lock 6 0.00 0.00
select /*+ rule */ bucket, endpoint, col#, epvalue
from
histgrm$ where obj#=:1 and intcol#=:2 and row#=:3 order by bucket
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 14 0.00 0.00 0 0 0 0
Fetch 14 0.01 0.04 5 42 0 245
total 29 0.01 0.04 5 42 0 245
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: RULE
Parsing user id: SYS (recursive depth: 3)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
gc cr grant 2-way 3 0.00 0.00
db file sequential read 5 0.01 0.03
select name,intcol#,segcol#,type#,length,nvl(precision#,0),decode(type#,2,
nvl(scale,-127/*MAXSB1MINAL*/),178,scale,179,scale,180,scale,181,scale,182,
scale,183,scale,231,scale,0),null$,fixedstorage,nvl(deflength,0),default$,
rowid,col#,property, nvl(charsetid,0),nvl(charsetform,0),spare1,spare2,
nvl(spare3,0)
from
col$ where obj#=:1 order by intcol#
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 42 0.00 0.00 0 4 0 41
total 44 0.00 0.00 0 4 0 41
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
row cache lock 3 0.00 0.00
select con#,obj#,rcon#,enabled,nvl(defer,0)
from
cdef$ where robj#=:1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.01 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 0
total 3 0.01 0.00 0 2 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
select con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled,0),
rowid,cols,nvl(defer,0),mtime,nvl(spare1,0)
from
cdef$ where obj#=:1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.03 2 2 0 0
total 3 0.00 0.03 2 2 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
row cache lock 6 0.00 0.00
db file sequential read 2 0.01 0.03
gc cr grant 2-way 1 0.00 0.00
select type#,blocks,extents,minexts,maxexts,extsize,extpct,user#,iniexts,
NVL(lists,65535),NVL(groups,65535),cachehint,hwmincr, NVL(spare1,0),
NVL(scanhint,0)
from
seg$ where ts#=:1 and file#=:2 and block#=:3
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 4 0 1
total 3 0.00 0.00 0 4 0 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
0 TABLE ACCESS CLUSTER SEG$ (cr=0 pr=0 pw=0 time=0 us)
0 INDEX UNIQUE SCAN I_FILE#_BLOCK# (cr=0 pr=0 pw=0 time=0 us)(object id 9)
select col#, grantee#, privilege#,max(mod(nvl(option$,0),2))
from
objauth$ where obj#=:1 and col# is not null group by privilege#, col#,
grantee# order by col#, grantee#
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.01 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 0
total 3 0.01 0.00 0 2 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
select grantee#,privilege#,nvl(col#,0),max(mod(nvl(option$,0),2))
from
objauth$ where obj#=:1 group by grantee#,privilege#,nvl(col#,0) order by
grantee#
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 0
total 3 0.00 0.00 0 2 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
select u.name,o.name, t.update$, t.insert$, t.delete$, t.enabled
from
obj$ o,user$ u,trigger$ t where t.baseobject=:1 and t.obj#=o.obj# and
o.owner#=u.user# and bitand(property,16)=0 and bitand(property,8)=0 order
by o.obj#
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 1 0 0
total 3 0.00 0.00 0 1 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
0 SORT ORDER BY (cr=1 pr=0 pw=0 time=55 us)
0 NESTED LOOPS (cr=1 pr=0 pw=0 time=36 us)
0 NESTED LOOPS (cr=1 pr=0 pw=0 time=34 us)
0 TABLE ACCESS BY INDEX ROWID TRIGGER$ (cr=1 pr=0 pw=0 time=33 us)
0 INDEX RANGE SCAN I_TRIGGER1 (cr=1 pr=0 pw=0 time=23 us)(object id 123)
0 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=0 pr=0 pw=0 time=0 us)
0 INDEX UNIQUE SCAN I_OBJ1 (cr=0 pr=0 pw=0 time=0 us)(object id 36)
0 TABLE ACCESS CLUSTER USER$ (cr=0 pr=0 pw=0 time=0 us)
0 INDEX UNIQUE SCAN I_USER# (cr=0 pr=0 pw=0 time=0 us)(object id 11)
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 2 1.13 1.22 11 2257403 970 0
Fetch 0 0.00 0.00 0 0 0 0
total 3 1.13 1.23 11 2257403 970 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 74.65 74.65
row cache lock 2 0.00 0.00
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 18 0.00 0.01 0 0 0 0
Execute 1990 1743.76 1791.75 11 2252537 1976 967
Fetch 1062 0.11 0.12 7 5026 0 317
total 3070 1743.87 1791.89 18 2257563 1976 1284
Misses in library cache during parse: 17
Misses in library cache during execute: 16
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
row cache lock 28 0.00 0.00
gc current grant 2-way 4 0.00 0.00
latch: cache buffers chains 10 0.02 0.16
library cache lock 2 0.00 0.00
library cache pin 1 0.00 0.00
rdbms ipc reply 1 0.00 0.00
gc cr grant 2-way 5 0.00 0.00
db file sequential read 11 0.01 0.10
enq: TM - contention 2 0.00 0.00
4 user SQL statements in session.
16 internal SQL statements in session.
20 SQL statements in session.
Trace file: orbit02_ora_5933.trc
Trace file compatibility: 10.01.00
Sort options: default
1 session in tracefile.
4 user SQL statements in trace file.
16 internal SQL statements in trace file.
20 SQL statements in trace file.
19 unique SQL statements in trace file.
91823 lines in trace file.
1867 elapsed seconds in trace file.
Can you please tell me why a simple merge statement using that much of CPU.
And how do I restrict the usage.
Regards,
Koushik
Similar Messages
-
High CPU usage - Rapid Battery Drain - Running HOT
Looking for help.. PLEASE!
Z10 - Model STL100-3 Software release 10.2.1.2179
Symptoms;
Occasionally, and for no apparent reason, I notice my Z10 getting hot in my pocket. I run the device monitor App and see a very high CPU usage, which consequently drains the batter very quickly.
I've tried all the solutions from every support group thread and blog. And I mean ALL!
Pulling the battery
Replaced the battery
Removed the SIM
Deleted G Mail
Removed all 3rd party Apps (2)
Stopped email sync
Stopped calendar sync
Turned off all radio
Turned Off Wi-Fi
Let it sit for hours, even days to let it finish doing whatever its trying to do
Etc Etc Etc.
Finally, I called BB support, they wanted $50 to talk to someone. I told them the issue, they said the device is bad and must be replaced. I said its software related!! They said.. no, its a hardware issue. Device is under warranty and they want me to just go get a new one. I don't want a new one, I want a fix! Stop the waste of BB $
Temporary solution
Eventually, I decided I would do a restore, back to the factory settings, and here's when I found something
I run BB Link, connect the device, do a back-up... and LOW AND BEHOLD.. this fixes the high CPU usage and the device runs great, very cool, low cpu and extremely long battery life.
Sadly! .. this problem reoccurs, after a few days, sometimes after a couple of weeks and just out of the blue.
I can force this fault to occur, simply by doing a restart of the device. Sure enough, it will run hot, use all the cpu and I will have to do a back-up to get it to settle down again. I've tried to wait for the so called 'indexing' to finish, but it never stops running with high cpu and doesn't help.
Can any one tell me whats happening and how to make this a permanent fix?
There are hundreds if not thousands of people having very similar issues, and many different methods to fix it. Its my belief that there is an underlying bigger problem that relates to all these differing fixes, but as yet.. I cant find it and none of these fixes work for me. For now... I will keep doing the occasional back-up and hope I get a response that can help.
Thanks to all that read this.curve8530curve8330 wrote:
The heat may be normal. After a little water damage incident, which I repaired, I disassembled my Z10 the find a small heat sink will thermal compound. This helps dissipate heat efficiently. I found a large number of air bubbles and possibly a large air pocket by the way the paste stuck to both sides. I removed the old paste and replaced it with artic silver paste and the z10 has been much much cooler. It use to run about 105*f and now it is around 85*f.
See this thread I posted for before and after pictures using a thermal imager.
http://supportforums.blackberry.com/t5/BlackBerry-Z10/Z10-heating-up-fix/m-p/3031220#M71390
@Curve8530 .....as much a s your discovery is appreciated, I hardly believe that most people will actually dismantle their phone to remove the paste and replace with arctic silver. Besides, what you are doing is not a fix for the actual problem....
In most cases, this heat is associated with apps using the CPU resources beyond the normal limits.
As an easy fix, finding and removing the app(s) in question followed by a reboot, solves the issue. In some cases an OS reload is necessary.... but under no circumstances I would even remotely suggest to any member to dismantle their phone and do what you did... -
High CPU usage (more than 100%) while running video applications
Hello everyone,
I desperately need help with this.
I have a late 2007 White Macbook running Mac OS X 10.6.8 :
Model Name: MacBook
Model Identifier: MacBook2,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 4 MB
Memory: 3 GB
Bus Speed: 667 MHz
The issue that I am having is, whenever I play a video (Netflix/Silverlight player, YouTube, Skype, etc.) the CPU usage shoots up above 100% and the video or the video chat becomes VERY choppy. It becomes impossible to keep going once that starts. Originally I had 1Gb RAM (512 + 512) ... then I upgraded to (1GB + 512mb) ... it was fine for about a year and then started chocking on memory... so recently I made it (1GB +2GB) and that's when this high CPU usage thing started (according to my knowledge)
I have had this machine since last 4 years and its very dear to me. I dont wanna buy a new one. I will really appreciate if someone could help.I am spending sleepless nights, researching for a fix. From what I found so far, a considerable amount of people were able to fix this issue by simple cleaning the insides of their machines using air dusters, especially the fans. I don't know how cleaning would help with CPU utilization, but by interpolation, I feel it's worth a try. At least it will be clean, if not perfectly functional. lol
Now the next big challenge ahead of me is getting the screws on my Macbook open. I was following the Fan Repair Guide on ifixit.com. I went and got the #00 Phillips screwdriver as suggested in the guide... came home and found out the screwdriver is too big.... went back got a #0000 Phillips (I also found out that screwdrivers with same number might be of different sizes in different stores)... got a couple of screws out and then--- another road-block!! there are a few extremely tiny Phillips screws on my macbook. Now I am hunting for the smallest Phillips screwdriver in the world. Hopefully, I will find it in some watch repair or eye-glasses repair kit in a store such as CVS or Walgreens... aaaah... this is sooo frustrating!!! I just want to get his done so that I can check it off the list of probable solutions that I want to try. Will update here if this works.
From what you say, I think that the Silverlight upgrade might be the culprit in my case too. But the effect is there also for Youtube, Skype , or any other Video/Graphics intensive application that I use. Although, Silverlight/Netflix performs the worst among all the apps.
I love my Macbook... don't want to part with it. -
Skype 4.2.0.11 has abnormally high CPU usage while...
Skype 4.2.0.11 has abnormally high CPU usage while idle.
I can't get my laptop under 70 degrees celsius unless I cpulimit or quit skype, and cpulimiting it actually makes it completely unresponsive, as if some other thread is constantly generating a lot of work and taking priority over the UI thread.
What the heck is skype doing? (And why do any of its threads need nice -10?) It takes up more CPU time than pulseaudio, truecrypt, and deluged combined.
Its CPU usage is constantly between 5 and 50 percent*, it's absolutely horrible.
*While idle. I'm unable to make calls.
I know this is expected from a linux user, but for all I know, Skype is malware. It's not open-source, so I can't find out for myself, and there are no open-source alternatives so the frankly shameful amount of bugs I encounter in Skype will never be fixed.
There are several bugs I'd love to be fixed in Skype, but first, PLEASE, optimize your code. It's absolutely horriffic at the moment.Attached are statistics from my desktop over approximately a 24 hour period for the processes shown (other than firefox and adb).
Pulseaudio tops skype this time but that's because I've had music playing through mpd for a few hours. Skype uses more than 16 times the CPU that pidgin does, and almost double the RAM! RAM isn't shown in the screenshot but take my word for it. Bear in mind that I haven't taken (or made) any calls in this period of time, and pidgin has been signed into three different services and using encrypted chat.
I really wish that at least the protocol would be documented so someone could work around this, at the moment I don't think the guys writing skype realize just how unstable the linux port is. At least it's better than the Android port.
[Edit for those unfamiliar with linux processes: "TIME" is the cumulative time that the program has been scheduled for on any core, effectively making it a measure of total CPU usage for a given time period]
Attachments:
2014-06-22-233238_530x119_scrot.png 9 KB -
High CPU Usage with Flash Player 11
I am not sure what the problem is but ever since I had those issues I went back to flash archive and installed a previous version that did not come with the flash plug in and I never had any problem with it since I am currently using the Adobe flash version 10 plug in with an adobe flash player active X. and I find out it was the new flash plug in that is the issue it suck all your ram. If you get some people who is having the same issues where flash player is duplicating and eating all their ram then ask them to try the version 10 plug in with the flash 11 active x it will work fine. I tried to run the version 10 flash as a complete set but some dynamic site that plays videos require a later version of flash active x to work and will be asking for an update however by keeping the flash 10 plug in there won't be any other issues. Adobe need to find out what is wrong with the new flash plug in and run a comparison with the flash 10 plug in. I hope this will help some user to get over the issues that made my online experience a nightmare for a while too.
The best way to get a resolution is to address your individual issue. Your complaint is that RAM usage is high, which is unrelated to the thread from the guy on Mac that was seeing High CPU usage on high definition video.
In order to fix the issue that you're describing, we need to be able to reproduce it. Please provide the information below, and the results of the basic troubleshooting steps as you work through them. This will help us narrow down the root-cause, and allow us to find comparable hardware in our compatibility lab to reproduce the issue with.
Basic Troubleshooting Info
To help troubleshoot we'll need the following system information:
- Operating system
- Browser
- Flash Player version - http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
- Antivirus/Anti-Malware software and versions
The first step is to work through the video troubleshooting guide for your operating system, here:
- Windows - http://helpx.adobe.com/flash-player/kb/video-playback-issues.html
- Mac - http://helpx.adobe.com/flash-player/kb/video-playback-issues.htm
When reporting issues with video or audio, it's also helpful to get your system hardware and driver details. Instructions for finding this information can be found here:
- Windows - http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_For_Windows_users
- Mac - http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_For_Mac_OS_users
Finally, sometimes video and audio problems are caused at a lower level and not directly related to Flash Player. I recommend trying both of the links below to see how they perform. If the problem exists with both, then Flash Player is most likely not the culprit as the HTML5 video link does not use Flash Player when playing. You can verify this by right clicking the HTML5 video and looking for the words "About HTML5" at the bottom of the menu.
- HTML5 video - http://www.youtube.com/watch?v=cTl3U6aSd2w&html5=True
- Non-HTML5 video - http://www.youtube.com/watch?v=cTl3U6aSd2we
Thanks! -
How can we analyze high CPU usage on JRockit ??
Is it possible to analyze high cpu usage through JRA recording ??
OS : Red Hat Linux
Or is there any other way we can analyze it .
Please let me know its urgent ....
Thanks in AdvanceHi!
It is indeed possible to use JRA to find out where the time is spent! The hot methods table in JRA shows where the JVM is spending the most time executing.
Kind regards,
Marcus -
High CPU Usage / Dropped Packets - Switch Blade WS-CBS3120X-S
Hi all,
I have a couple of Switches Blade 3120, working as active-standby model (HSRP) on a new site deployment. There are other 20 sites more or less, working on the same model, without issues. But in this one, we are seeing a high cpu usage. The traffic going through the platform is 600Mbps (on peaks), and in this case we have 40% of CPU usage. Traffic should be close to 3 Gbps. When we tried to send the whole traffic through the platform, active switch began to drop packets on the majority of interfaces.
When we analyze the CPU usage, there is a special process called "HL3U bkgrd proce" always have the most CPU use, but we do not know what concerns. We do not know if it is caused because there are PBRs configured. It should not matter. How I mentioned, there are other sites working fine and have had always the same PBR number.
Could you guys help us?. Any idea what is causing the high usage?. Is there a special debug we could to perform to diagnose the issue?. Also, we have seen a high interrupt CPU usage (9% in this case).
Find attached the whole diagnosis outputs.
Thanks for your assistance guys.
Cheers,
Juan Pablo
bog-sib-INT-rtr-1#show processes cpu sorted 5sec
CPU utilization for five seconds: 30%/9%; one minute: 25%; five minutes: 23%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
157 140004809 107071220 1307 14.24% 10.19% 9.01% 0 HL3U bkgrd proce
119 6860957 1519183 4516 0.79% 0.59% 0.53% 0 hpm counter proc
166 2511492 302802 8294 0.15% 0.15% 0.15% 0 HQM Stack Proces
199 4182906 15255882 274 0.15% 0.21% 0.20% 0 IP Input
357 237531 782101 303 0.15% 0.03% 0.00% 0 IP SNMP
186 101 148 682 0.15% 0.09% 0.02% 1 Virtual Exec
242 63071 2330717 27 0.15% 0.02% 0.00% 0 CEF: IPv4 proces
12 163754 620353 263 0.15% 0.01% 0.00% 0 ARP Input
9 0 2 0 0.00% 0.00% 0.00% 0 License Client N
8 41 1827 22 0.00% 0.00% 0.00% 0 WATCH_AFS
11 50 4 12500 0.00% 0.00% 0.00% 0 Image License br
7 0 2 0 0.00% 0.00% 0.00% 0 Timers
bog-sib-INT-rtr-1#sh ip cef summary
IPv4 CEF is enabled for distributed and running
VRF Default
119 prefixes (119/0 fwd/non-fwd)
Table id 0x0
Database epoch: 2 (119 entries at this epoch)Hi Leolaohoo,
I had not played with this one too !!!!...
1). IOS version (It was recently updated)
bog-sib-INT-rtr-1#sh ver
Cisco IOS Software, CBS31X0 Software (CBS31X0-UNIVERSALK9-M), Version 12.2(58)SE1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Thu 05-May-11 04:08 by prod_rel_team
ROM: Bootstrap program is CBS31X0 boot loader
BOOTLDR: CBS31X0 Boot Loader (CBS31X0-HBOOT-M) Version 12.2(0.0.951)SE3, CISCO DEVELOPMENT TEST VERSION
bog-sib-INT-rtr-1 uptime is 2 weeks, 3 days, 17 hours, 14 minutes
System returned to ROM by power-on
System restarted at 00:59:27 UTC Sat Jun 9 2012
System image file is "flash:cbs31x0-universalk9-mz.122-58.SE1.bin"
2). What interface do you want to see?, do you want to see all interfaces? . This switch has 16 interfaces that connect servers, and other going to our client. Below, the state of the two kind of interfaces:
Interface to Client (Bearer)
TenGigabitEthernet1/0/1 is up, line protocol is up (connected)
Hardware is Ten Gigabit Ethernet, address is 001f.275d.d81b (bia 001f.275d.d81b)
Description: BearerNContent_Aggregrate
MTU 1500 bytes, BW 10000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 10/255, rxload 14/255
Encapsulation ARPA, loopback not set
Keepalive not set
Full-duplex, 10Gb/s, link type is auto, media type is 10GBase-LR
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 2w3d, output hang never
Last clearing of "show interface" counters 07:07:56
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 562469000 bits/sec, 83641 packets/sec
5 minute output rate 430500000 bits/sec, 73141 packets/sec
2020563158 packets input, 1739897855828 bytes, 0 no buffer
Received 13257 broadcasts (13257 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 13257 multicast, 0 pause input
0 input packets with dribble condition detected
1745065310 packets output, 1347244137726 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
Interface to Server
GigabitEthernet1/0/8 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is 001f.275d.d808 (bia 001f.275d.d808)
Description: bog-15
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 15/255, rxload 12/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 1000Mb/s, link type is auto, media type is 1000BaseX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:17, output hang never
Last clearing of "show interface" counters 07:09:12
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 19418
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 47705000 bits/sec, 7155 packets/sec
5 minute output rate 58897000 bits/sec, 8011 packets/sec
178178750 packets input, 153802177226 bytes, 0 no buffer
Received 4091 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
212233312 packets output, 206621942776 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
Thanks for your help. I am losing my hair with this issue.
Cheers,
Juan P. -
Good day, can someone analyze this for me, in regards with high cpu usage.
2222222222222222222222222222222222333332222244444222222222
8888555559999955555777773333344444000007777711111555559999
100
90
80
70
60
50
40 *****
30 ************************ ************************
20 **********************************************************
10 **********************************************************
0....5....1....1....2....2....3....3....4....4....5....5....
0 5 0 5 0 5 0 5 0 5
CPU% per second (last 60 seconds)
4443333334443433334333333333333333333333343333333333333333
1006530591135079734601132535328062177773414263667168577916
100
90
80
70
60
50
40 ***** ********** ** * * * * **** * * *** ****** *
30 #############**##*####*#*##*###*#*#########*##*****###****
20 ##########################################################
10 ##########################################################
0....5....1....1....2....2....3....3....4....4....5....5....
0 5 0 5 0 5 0 5 0 5
CPU% per minute (last 60 minutes)
* = maximum CPU% # = average CPU%
4744444545444444444444444444333344444444444444444434444444433344344444
4547425182436632379924402500899822115303104140406471591734499730802883
100
90
80 *
70 *
60 *
50 * * **** ** *** * * * ** * **
40 **********************************************************************
30 #*******###**********##**********#********************************####
20 ######################################################################
10 ######################################################################
0....5....1....1....2....2....3....3....4....4....5....5....6....6....7.
0 5 0 5 0 5 0 5 0 5 0 5 0
CPU% per hour (last 72 hours)
* = maximum CPU% # = average CPU%
Local_Backbone#sh proc cpu sorted 5sec
CPU utilization for five seconds: 24%/16%; one minute: 27%; five minutes: 27%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
123 1380698152 938782622 1470 6.07% 6.66% 6.52% 0 IP Input
9 71590456 190912340 374 0.39% 0.48% 0.47% 0 ARP Input
213 53552228 246488976 217 0.23% 0.42% 0.48% 0 SNMP ENGINE
176 2804332 35409778 79 0.15% 0.02% 0.00% 0 OSPF Hello
319 918144 11719407 78 0.15% 0.01% 0.00% 0 OSPF Router 100
4 236 195 1210 0.07% 0.00% 0.00% 1 Virtual Exec
169 2374788 2035919 1166 0.07% 0.03% 0.00% 0 Adj Manager
118 5885520 15709517 374 0.07% 0.07% 0.07% 0 CDP Protocol
36 69788 9934569 7 0.07% 0.00% 0.00% 0 TTY Background
179 30669516 309965501 98 0.07% 0.23% 0.24% 0 IP SNMP
need a quick opinion as i have another backbone abroad that uses only 5-10% of cpu usage.
- same config
- same setup (2BB for Sec/firewall, 2BB for Integration, 6Distro SW)
- different number of users
thank you and god bless.I also agree with Stephan that this is not a concern that the cpu you are seeing it sohuld reduce down.
If in case still want to do the troubleshooting here is the procedure:
Here are some of the commands you can refer while you see the high cpu:
•1- Show proc cpu sorted | ex 0.00% >> First check whether CPU is due to Interrupt or due to Process Switching.
Eg: CPU utilization for five seconds: 6%/2%; one minute: 2%; five minutes: 2%
6% is total CPU utilization and 2 % is due to Interrupt. You would see this on a higher bit when you have the high cpu. Total-interrupt will give you the value of Process.
More info: http://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note09186a00804916e0.shtml
b) Show proc cpu history :---Check since how long is the CPU been affected.
2- Check if there is any interface drops are been seen:
show interface | include line|drops ( Check if any vlan/interface are having input drops)
3- check if there are any STP issue:
show spanning tree detail
show spann det | in ieee|from|occur|is exec
show spann det | in executing | changes
show interface | include line|drops
show cef drop
show ip traffic >> Check the traffic utilization.
4- There are some internal debugging which would help to find out which packets ( from Src,dst) is hitting the CPU:
debug netdr capture rx <<<<( DEBUG OF NETDR IS VERY USEFULL TO CHECK WHAT PACKETSS ARE COMING TO CPU)
show netdr capture-packet >> This will give you the captured outputs were you can see the Src and dst . Then you can take the action with those src ip address guys to check why they are punting the traffic.
HTH
Regards
Inayath
***Plz rate if this info is helpfull. -
Hi all,
I'm having high CPU usage with one of my Cisco 3845.
It works as an IP-IP Gateway and the CPU is quite high when the total number of calls only around 100-200 calls.
I check the CPU usage with "show process cpu sort" and it looks like there are some "hidden" processes that consuming CPU.
For example, 41% is total CPU, 25% is due to interrups, so CPU utilization on process level = 41 - 25 = 16%.
But as showed below, processes don't consume that much CPU, only around 7% ???
Please help to advise on this case. Any help is highly appreciated..
Thank you.
3845-GW#show process cpu sort | ex 0.00% 0.00% 0.00%
CPU utilization for five seconds: 41%/25%; one minute: 46%; five minutes: 47%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
382 6619708 1473171 4493 1.59% 1.81% 1.92% 0 CCSIP_SPI_CONTRO
141 4228940 10181955 415 1.35% 1.51% 1.57% 0 IP Input
65 2450824 163102 15026 1.19% 1.16% 1.17% 0 Per-Second Jobs
370 2702292 3709512 728 0.87% 0.88% 0.88% 0 VOIP_RTCP
224 321680 245640 1309 0.47% 0.49% 0.50% 0 AFW_application_
112 93940 18093506 5 0.39% 0.31% 0.32% 0 Ethernet Msec Ti
384 1058280 1553567 681 0.23% 0.28% 0.30% 0 CCSIP_UDP_SOCKET
2 18148 32905 551 0.07% 0.03% 0.02% 0 Load Meter
137 35644 4657843 7 0.07% 0.04% 0.05% 0 IPAM Manager
189 206392 267959 770 0.07% 0.05% 0.07% 0 TCP Protocols
30 30792 198554 155 0.07% 0.01% 0.00% 0 ARP Input
368 145456 176151 825 0.07% 0.04% 0.05% 0 CC-API_VCM
28 9628 32759 293 0.00% 0.01% 0.00% 0 Environmental mo
48 221352 37922 5837 0.00% 0.11% 0.11% 0 Net Background
63 16728 32924 508 0.00% 0.01% 0.00% 0 Compute load avg
64 72080 2781 25918 0.00% 0.01% 0.00% 0 Per-minute Jobs
6 371644 29792 12474 0.00% 0.14% 0.12% 0 Check heaps
176 12216 240288 50 0.00% 0.01% 0.00% 0 CEF: IPv4 proces
284 36416 4929826 7 0.00% 0.02% 0.01% 0 MMON MENG
307 12168 806151 15 0.00% 0.01% 0.00% 0 Atheros LED Ctro
335 35300 19755 1786 0.00% 3.16% 1.00% 708 Virtual Exec
3845-GW#sh int g0/0
GigabitEthernet0/0 is up, line protocol is up
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1Gbps, media type is RJ45
output flow-control is XON, input flow-control is XON
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/2/56803 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1551000 bits/sec, 5751 packets/sec
5 minute output rate 4207000 bits/sec, 7643 packets/sec
925128804 packets input, 939078510 bytes, 0 no buffer
Received 62732 broadcasts (0 IP multicasts)
0 runts, 0 giants, 2 throttles
2 input errors, 0 CRC, 0 frame, 2 overrun, 0 ignored
0 watchdog, 3763438515 multicast, 0 pause input
1472816545 packets output, 3214770103 bytes, 0 underruns
0 output errors, 2067720191 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 2281155551 late collision, 0 deferred
2 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
3845-GW#sh int g0/1
GigabitEthernet0/1 is up, line protocol is up
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1Gbps, media type is RJ45
output flow-control is XON, input flow-control is XON
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/30335 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1684000 bits/sec, 7697 packets/sec
5 minute output rate 3372000 bits/sec, 5632 packets/sec
1484558664 packets input, 2383177786 bytes, 0 no buffer
Received 208998 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
2 input errors, 0 CRC, 0 frame, 2 overrun, 0 ignored
0 watchdog, 3060386282 multicast, 0 pause input
903478941 packets output, 2814588854 bytes, 0 underruns
0 output errors, 2910776303 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 4157448025 late collision, 0 deferred
2 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped outHas this been something that just recently started happening, or have you had this issue for a while? Have you installed any new programs recently?
You may want to download Glary Utilities, which is a free software(they will ask you if you want to go Pro, just say no, the free version works very well). There is a module for startup manager. You can go in and disable stuff that starts with the computer. I would advise unchecking adobe, java, quicktime, printers, etc. Anything that doesn't REALLY need to start with the computer. The nice thing with Glary is that you can restart the computer, and if you find that you need one of the programs to start with windows, you can go back in and enable it again.
The Celeron 925 processor in your computer is a decent entry level processor, but if there are too many programs running in the background, it can bog down quick. I would also recommend downloading and running Malwarebytes Anti-malware, to be sure that there is nothing malicous running in the background.
Qosmio X875 i7-3630QM, 32GB RAM, OCZ SSD Qosmio X505 i7-920XM, PM55, 16GB RAM, OCZ SSD
Satellite Pro L350 T9900, GM45, 8GB RAM , Intel 320 SSD (my baby) Satellite L655 i7-620M, HM55, 8GB RAM, Intel 710 SSD (travel system) -
dear support
i have a problem recently, i have a 2811 router, there are several EIGRP VPN tunnel setup on it, recently i found this router running high CPU utilization, it almost reach 80 percent at the most day busy time, when i try to find what process causing that after " show proc cpu", the summarize number not such high, it estimate not more than 20 percent. i know in old Cisco IOS there is a command "show platform health", but seem this not exist in 2800 serials any more.
so my question is what can i do next step to finding out what is causing high CPU usage, so that i can decide if the router need to be upgraded.
thanks very muchdear support
i have a problem recently, i have a 2811 router, there are several EIGRP VPN tunnel setup on it, recently i found this router running high CPU utilization, it almost reach 80 percent at the most day busy time, when i try to find what process causing that after " show proc cpu", the summarize number not such high, it estimate not more than 20 percent. i know in old Cisco IOS there is a command "show platform health", but seem this not exist in 2800 serials any more.
so my question is what can i do next step to finding out what is causing high CPU usage, so that i can decide if the router need to be upgraded.
thanks very much -
Continual HD activity, high CPU usage when idle
I got my first notebook, a Compaq V2000, a few weeks ago and have Arch set up pretty well on it but I have a few issues. Even when the machine is sitting idle it sounds like the HD is doing a read (or whatever) about every 5 seconds. This only starts after I log into Gnome and stops if I log out.
I tried a couple of things with hdparm:
If I try 'hdparm -y /dev/hda' the drive goes to standby but immediately spins up again.
'hdparm -B 255 /dev/hda' disables APM and stops the cyclic behavior. This would seem to be good but during the 5 second cycle the drive alternates between quiet and noisy and this leaves it in the noisy state.
I tried to determine what might be causing all this disk activity so I edited lilo.conf to remove "acpi=on apm=off" from the "append=" line and in rc.conf I put a ! in front of all modules and daemons and rebooted. I removed the applets from task bar. No change.
I ran top to see if I could tell what was accessing the HD but I'm not knowledgable enough to make much sense of it. I did notice that on my notebook the top summary shows:
CPU: ~30% user, ~10% system, ~60% idle with 'wait' bouncing between 0 and 5%
On my main computer, also running Arch/Gnome, I get
CPU: ~2% user, ~1% system, ~97% idle with 'wait' solid at 0%
On the notebook, if I run hdparm -B 255 /dev/hda the CPU #'s for user and system remain high but the wait # drops to zero and stays there.
I don't think all this HD activity could be good for my machine, and I know I find it very annoying. If anyone could help me stop all the HD accesses and understand the high CPU usage I would appreciate it.I loaded lsof and frankly it scared me. It listed what looked like a couple hundred files and I didn't know exactly how to use that information.
Then I tried laptop-mode-tools. The man pages didn't sound too promising since it uses, among other things, hdparm, which I already tried with mixed results. I gave it a try anyway and right out of the box, with no configuration, it worked. HD access when idle dropped to essentially none, the drive spins down and the cooling fan runs much less frequently.
So far all I have changed in the config file are the HD idle timeouts. The default of 5 seconds was starting and stopping the HD too often so I changed that to 20 seconds for now.
Whatever laptop-mode did to stop the 5-second HD accesses the effect persists even if I run 'laptop_mode stop' and '/etc/rc.d/laptop-mode stop'. When I get the time I should be able to use 'laptop_mode status' and laptop-mode.conf settings to determine exactly what the magic bullet was.
Thanks, lucke. I never would have tried laptop-mode on my own because I thought it only duplicated functionality that I already had with hdparm and powernowd. -
Why does SCHDNEGACTION scheduler job have high CPU usage?
Hi,
In my embeded device(double CPU 1.5 G HZ ) SCHDNEGACTION scheduler job has 90% CPU usage. Why does the scheduler job have so high CPU usage? What is the job doing for?Hi,
This job is not created by the scheduler. You will have to find out what component creates the job and what exactly it does to figure out why it is using high cpu and what would be the effects of disabling it (which would prevent it from running).
Hope this helps,
Ravi. -
[help] high cpu usage with flash (Hello adobe developer)
Running youtube or facebook games, here's what I found. CPU usage rises to 90-100% or 90-100 % of a core.
Tested in XP32/Win7 64. Clean setups. Tested with Flash 9, 10, 10.1 rc's. Used uninstallers, reinstalled and so on. Googled on this, read many threads, such as granting permission on several files. Tested with IE, Firefox, Chrome. SAME stuff. Tested on an e8400 with P35 chipset, i3 530 with P55 chipset, e7400 with nvidia ion chipset, tested with 7[3|6]00gt's, gts 250.. So yes, I've tried a lot of things. And many different drivers too. I am now only pointing fingers at flash.
PC gets sluggish, laptops run out of battery fast. I can usually fix a lot of technicals issues on my own, but I'm TOTALLY stuck here. I should also add that, cpu usage rises only when there is motion. I can watch an .avi movie or play some 3D game, and they won't suck the cpu totally. I can remember in the past, flash won't do this. Flash won't drag the system down. Something is SERIOUSLY wrong.
Can an Adobe dev comment please?I find it strangely odd that you've never seen this phenomenon, but at least you must have heard of it. Google flash high cpu usage. Facebook games flash lag. Or something alike. Mind moving my thread there? So there won't be a dupe thread.
I posted a similar thread in mozilla forums to see what they have to see, since i notice lag is more apparent in firefox than in ie, although both hog up cpu.
As you can see, I'm not alone.
http://forums.mozillazine.org/viewtopic.php?f=38&t=1913819
My installation _of_ what? Let's see, I tried to replicate this in the most bare environment. With nothing else installed, and default Windows 7 drivers, I installed flash from the web, plugin only first, then activex, did the testing, same stuff. Installed OLD 183 drivers, tested with 197 drivers, then 256 beta drivers. Same deal. -
Help!!! High CPU usage on Connect 8 servers.
Hello everyone,
Recently, we upgraded our Connect servers from 8.1.1 to 8.2.2.3. Since that time almost every evening as the number of concurrent users and meetings increases so does the CPU usage on Connect servers. After all CPUs are maxed out, people are started to be disconnected from meetings in droves. Sometimes, all users in a meeting are disconnected, other times half of the users stays in while another is disconnected.
I can see that during the high CPU usage one of FMSCore processes consumes almost 80%-90% of CPU resources.
I was wondering if somebody else had the same issue and how you solved it.
Any help is appreciated,
MilenaHi MilenaITS,
It will be great if you could provide some additional informaion and that will help me in finding the cause here.
can you confirm the value for one of the tag in application.xml here are the steps you need to follow in order to check that :
1. got to connect installation folder (on cps servers where appserv/comserv presents)
2, Open comserv\win32\conf\originhost\_defaultVHost_\Application.xml
3. can you check what is the value for following tag in that xml : <SS_DYNAMIC_CODEC>
Also it might worth atry to change the value for this tag to "false" if it is "true" currently. This will remove the disconnects you are getting and may affect on FMS CPU as well . also you need to follow this on each node .
Can you give it a try and let me know if it solves the purpose for you.
Hope this will help!!
regards
Nikhil -
Hi guys
I got a problem with an IPS, from some weeks the CPU has been at 100% (all the 4 CPU's) and I don't know why, the Inspection Load is really low and I guess this is not affecting to this. Here some information of the SHOW VERSION command
*I also attach some images of the IPS*
Cisco Intrusion Prevention System, Version 7.1(1)E4
Host:
Realm Keys key1.0
Signature Definition:
Signature Update S807.0 2014-06-13
OS Version: 2.6.29.1
Platform: ASA5585-SSP-IPS10
Using 4428M out of 5839M bytes of available memory (75% usage)
system is using 25.1M out of 160.0M bytes of available disk space (16% usage)
application-data is using 68.0M out of 171.6M bytes of available disk space (42% usage)
boot is using 56.0M out of 70.5M bytes of available disk space (84% usage)
application-log is using 494.0M out of 513.0M bytes of available disk space (96% usage)
I hope somebody had some idea what could be causing the high cpu usage.
RegardsHas this been something that just recently started happening, or have you had this issue for a while? Have you installed any new programs recently?
You may want to download Glary Utilities, which is a free software(they will ask you if you want to go Pro, just say no, the free version works very well). There is a module for startup manager. You can go in and disable stuff that starts with the computer. I would advise unchecking adobe, java, quicktime, printers, etc. Anything that doesn't REALLY need to start with the computer. The nice thing with Glary is that you can restart the computer, and if you find that you need one of the programs to start with windows, you can go back in and enable it again.
The Celeron 925 processor in your computer is a decent entry level processor, but if there are too many programs running in the background, it can bog down quick. I would also recommend downloading and running Malwarebytes Anti-malware, to be sure that there is nothing malicous running in the background.
Qosmio X875 i7-3630QM, 32GB RAM, OCZ SSD Qosmio X505 i7-920XM, PM55, 16GB RAM, OCZ SSD
Satellite Pro L350 T9900, GM45, 8GB RAM , Intel 320 SSD (my baby) Satellite L655 i7-620M, HM55, 8GB RAM, Intel 710 SSD (travel system)
Maybe you are looking for
-
How to improve query performance built on a ODS
Hi, I've built a report on FI_GL ODS (BW3.5). The report execution time takes almost 1hr. Is there any method to improve or optimize th query performance that build on ODS. The ODS got huge volume of data ~ 300 Million records for 2 years. Thanx in a
-
Printers and Scanners preference pane does not work after Mavericks upgrade
I upgraded to Mavericks on my late 2011 MacBook Pro, and my printers and scanners preference pane stopped working. Sometimes it comes back as an error and wont open, other times it opens but the list of printers is obscured and not really showing, an
-
Imac and Panasonic wireless webcam
I have a 20" imac (1 year old) and use a Buffalo Super G Wireless Router for internet. It works fine and we can access the network seamlessly with both PC and macbook laptops. I just got a Panasonic Wireless Webcam (to go with a weatherstation alread
-
InDesign CS 5.5 suddenly doesn't know where Arial is.
I rebooted this morning and now InDesign dosn't know that this computer has Arial on it. I'm running a demo of Suitcase Fusion 4 and Arial is activated. It appears that all Adobe CS apps are having this problem. All other apps can see Arial. Ideas? O
-
Premiere Pro Error: Time.cpp-209
Hello, I need some help for Adobe Premiere Pro CS4. Yesterday I installed the trial Version. If I import a video file there comes the following error message: Premiere Pro Debug Event Premiere Pro has encountered an error. [..\..\Src\Time.cpp-209] Do