關於resmgr:cpu quantum異常等待處理
故障資訊:伺服器:XXX_DB1發生: Processor load is too high on XXX_DB1故障!
告警時間:2017.06.24 12:22:42
告警主機:XXX_DB1
IP地址: x.x.x.x
告警資訊: Processor load is too high on XXX_DB1
告警專案:system.cpu.load[all,avg1]
故障值: 22.49
當前狀態:PROBLEM:22.49
事件ID:297252
負載已經很高了(備註8核)
檢視伺服器負載,絕大部分是oracle程式
立即做了一個awr快照
發現有一個異常等待
此伺服器安裝的是oracle 11.2.0.1未安裝任何補丁
Database 'Hangs'. Sessions Wait for 'resmgr:cpu quantum' (文件 ID 392037.1) 此文件記錄
The session is waiting to be allocated a quantum of cpu.
This event occurs when the resource manager is enabled and is throttling CPU consumption.
To reduce the occurrence of this wait event, increase the CPU allocation for the session's current consumer group.
Wait Time: The time the session waited to acquire a CPU quantum
"
Event 'resmgr: cpu quantum' is a standard event used by resource manager to controls the allocation of CPU to processes. It is possible that a 'hang' situation could be seen when sessions use significant CPU for whatever reason. Alternatively this could also indicate that true hang situation is taking place.
SOLUTION
Before looking at specifics, it is prudent to ensure that you are running with recommended patches installed for Resource Manager. Refer to the following article for details:
Additionally there are some known issues associated with resource manager and the Wait Event "Resmgr:Cpu Quantum" listed in the following articles:
As a workaround, resource management could be disabled:我們可以關閉resouce management
Resource Manager and SQL Tuning Advisory DEFAULT_MAINTENANCE_PLAN (文件 ID 786346.1)
To disable the resource manager you can use the below steps.
++ set the current resource manager plan to null (or another plan that is not restrictive):
alter system set resource_manager_plan='' scope=both
++ change the active windows to use the null resource manager plan (or other nonrestrictive plan) using:
execute dbms_scheduler.set_attribute('WEEKNIGHT_WINDOW','RESOURCE_PLAN',''); and
execute dbms_scheduler.set_attribute('WEEKEND_WINDOW','RESOURCE_PLAN','');
For 11g, you need to change those too:
execute dbms_scheduler.set_attribute('SATURDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('SUNDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('MONDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('TUESDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('WEDNESDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('THURSDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('FRIDAY_WINDOW','RESOURCE_PLAN','');
++ Then, for each window_name (WINDOW_NAME from DBA_SCHEDULER_WINDOWS), run:
SQL> execute dbms_scheduler.set_attribute('<window name>','RESOURCE_PLAN','');
To disable SQL tuning you can use the below procedure.
DBMS_AUTO_TASK_ADMIN.DISABLE(
client_name => 'sql tuning advisor',
operation => NULL,
window_name => NULL);
END;
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24486203/viewspace-2141217/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 異常等待事件Resmgr:Cpu Quantum導致CPU利用率高事件
- 11g rac 等待事件resmgr:cpu quantum事件
- oracle 11.1.0.6 版本中的resmgr:cpu quantum 等待事件Oracle事件
- High "Resmgr:Cpu Quantum" Wait EventsAI
- oracle常見異常等待——latch處理思路Oracle
- 關於java程式異常處理(講義)(轉)Java
- 關於Asp.net ajax下的異常處理ASP.NET
- 異常篇——異常處理
- 異常處理
- log列印及異常處理相關
- MySQL Slave異常關機的處理MySql
- Spring Boot 中關於自定義異常處理的套路!Spring Boot
- 關於專案中遇到的NullPointerException異常時處理手段NullException
- crontab導致CPU異常的問題分析及處理
- 關於HW-contention等待的處理
- 異常-throws的方式處理異常
- 異常處理與異常函式函式
- JavaScript 異常處理JavaScript
- ThinkPHP 異常處理PHP
- React 異常處理React
- 08、異常處理
- JAVA 異常處理Java
- JAVA異常處理Java
- Abp 異常處理
- oracle異常處理Oracle
- PowerShell 異常處理
- plsql異常處理SQL
- Swift 異常處理Swift
- JS異常處理JS
- app異常處理APP
- Oracle 處理異常Oracle
- MySQL異常處理MySql
- 異常處理 (轉)
- golang - 異常處理Golang
- 異常處理2
- 異常處理1
- 異常的處理
- Java 異常處理Java