ORACLE CPU佔率高的程式
檢視( 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
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 刪除以上程式。
在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
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 刪除以上程式。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25736250/viewspace-702827/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 11g vktm程式佔用CPU高 【轉載】Oracle
- oracle_CPU佔用率高時的問題定位Oracle
- 如何在 Linux 中找出 CPU 佔用高的程式Linux
- ORACLE程式佔用CPU情況分析(轉載)Oracle
- Java中的CPU佔用高和記憶體佔用高的問題排查Java記憶體
- cpu佔用率100%怎麼解決 cpu佔用率高怎麼辦
- sql語句引起的CPU佔用國高SQL
- chrome佔用高cpu的原因 排查大致思路Chrome
- 程式佔用cpu排序排序
- php-fpm 記憶體過高,CPU佔有率過高帶來的最佳化和調整PHP記憶體
- CPU資源佔用100%怎麼辦?cpu佔用率高的解決辦法
- rundll32.exe程式佔用率CPU高的原因及解決方法
- 面試問題---JAVA程式CPU佔用過高怎麼定位面試Java
- Mysql佔用過高CPU時的優化手段MySql優化
- cpu瓶頸 top的核心sy佔用較高
- java應用CPU佔用率過高排查Java
- win10空閒cpu很多cpu佔滿怎麼辦 win10cpu佔用率高怎麼辦Win10
- Node.js 應用高 CPU 佔用率的分析方法Node.js
- win10正式版cpu佔用高的解決方法_win10正式版cpu佔用高怎麼辦Win10
- Linux下xorg程式CPU佔用率過高時的一個解決方案Linux
- windows10cpu佔用率高怎麼辦Windows
- 10g中佔用CPU很高異常oracle程式分析Oracle
- Win10系統cpu佔有率很高的解決方法Win10
- mysql佔用CPU過高的解決辦法(新增索引)MySql索引
- oracle 高耗cpu sql語句的捕捉 。OracleSQL
- 線上Java程式佔用 CPU 過高,請說一下排查方法?Java
- 訪問ASM的ONNN程式佔用大量CPUASM
- java程式佔用cpu異常升高Java
- win10解決antimalware service executable cpu佔用率高的方法Win10
- 一次生產環境CPU佔用高的排查
- Nodejs mkdirP 模組導致CPU佔用高的問題NodeJS
- 解決WinXP中CPU佔用率過高的問題(MaxWorkitems)(轉)
- 解決Windows XP中CPU佔用率過高的問題(轉)Windows
- win10系統Antimalware Service Executable程式佔用cpu過高如何解決Win10
- Win10系統下microsoft conmpatibility telemetry程式佔CPU高如何禁用Win10ROS
- oracle11203的程式ologgerd佔有cpu資源很多Oracle
- 排查Java程序CPU佔用高之三板斧Java
- win10系統下Conhost.exe程式佔用cpu率很高如何解決Win10