10g中占用CPU很高异常oracle进程分析

上一篇 / 下一篇 2009-07-20 16:15:19 / 个人分类:Oracle研究

查看( 107 ) / 评论( 0 ) / 评分( 0 / 0 )
在AIX 5.3平台下oracle 10.2.0.3测试环境中,经常发现某些oracle进程占用很大的CPU资源,但这些进程并不存在v$session中,具体发现脚本如下:

SQL>select spid, pid, program from v$process
where addr not in (select paddr from v$session)

SPID PID PROGRAM
------------ ------------------------------------------------
1962208 18 xxxxx@xxxx (TNS V1-V3)
2039826 49 xxxxx@xxxx (TNS V1-V3)

查看系统中发现该进程占用CPU比例很高,每个进程消耗CPU大约20%资源。

以下是该问题的具体分析:

SQL> alter session set events ' immediate trace name systemstate level 266'
或者
SQL>oradebug setospid 1962208
SQL>oradebug short_stack

查找对应的 PROCESS 18,具体信息如下:
Short stack dump: ksdxfstk+002c<-ksdxcb+04e4<-sspuser+0074<-000044BC<-ktsmg_register_tac+0074 <-kscnfy+01f4<-ksucrp+0574<-opiino+03d4<-opiodr+0adc<-opidrv+0474<-sou2o+0090
<-opimai_real+01ec<-main+0098<-__start+0098

Dump of memory from 0x070000009E5EF668 to 0x070000009E5EF870
................................
Repeat 29 times
----------------------------------------
SO: 70000009ea7aef8, type: 3, owner: 70000009e6322a0, flag: INIT/-/-/0x00
(call) sess: cur 0, rec 0, usr 0; depth: 0
----------------------------------------
SO: 7000000941eced0, type: 16, owner: 70000009e6322a0, flag: INIT/-/-/0x00
(osp req holder)

short stack分析:
start ->main->opimai_real->sou2o->opidrv->ipiodrv->opiino->ksucrp
->kscnfy->ktsmg_register_tac+0074->sspuser ..........

sspuser()功能是给oradebug 请求的代码路径,所以我们关注ktsmg_register_tac,通过metalink查询,发现BUG:6084108与我们所发现的问题非常相似,在10.2.0.4解决该bug。

附录:
其BUG:6084108具体问题描述:

PROBLEM:--------Intermittently, oracle process abnormally terminates due to ora-3115, thenconsumed one cpu 100%. There was no v$session info so could not get sessioninformation to track down the root cause.STACK TRACE:------------ktsmg_register_tac 0074 kscnfy ksucrp opiino opiodr opidrv sou2o opimai_realmain暂时解决办法,用操作系统命令kill -9 删除以上进程。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值