oracle 导致cpu持续增长,Oracle进程导致CPU 100%解决步骤(转)

Oracle进程导致CPU 100%解决步骤(转)[@more@]  1-- 检查系统sar -u 5 52-- 看谁在用CPUtopasps -ef |grep ora #检查第四列,C的大小(unit,100 per cpu)3-- 检查CPU数量/usr/sbin/bindprocessor -qlsattr El proc04-- 2种可能:1) A Background (instanc...
摘要由CSDN通过智能技术生成

Oracle进程导致CPU 100%解决步骤(转)[@more@]  1-- 检查系统

sar -u 5 5

2-- 看谁在用CPU

topas

ps -ef |grep ora #检查第四列,C的大小(unit,100 per cpu)

3-- 检查CPU数量

/usr/sbin/bindprocessor -q

lsattr El proc0

4-- 2种可能:

1) A Background (instance) process

2) An oracle (user) process #此种可能最大。

5-- 如果是用户进程:那么高CPU的主要原因有:

Large Queries, Procedure compilation or execution, Space management and Sorting

5.1-- 查看每个Session的CPU利用情况:

select ss.sid,se.command,ss.value CPU ,se.username,se.program from v$sesstat ss, v$session se where ss.statistic# in (select statistic# from v$statname where name = 'CPU used by this session') and se.sid=ss.sid and ss.sid>6 order by ss.sid

5.2-- 比较上述Session,看那个session的CPU使用时间最多,然后查看该Session的具体情况:

select s.sid, event, wait_time, w.se

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值