wait event:gc buffer busy
由於多節點的原因,會因為節點間的資源爭用產生GC類的等待,而這其中GC Buffer Busy 最常見
檢查B2B_CORE_RAC DB(VIP:10.134.130.225/226)發現 SCHEMA:WM71_AP MODULE:JDBC Connect Client 執行很多類似SQL:
SELECT d.DocID, d.DocTimestamp, t.TypeName, s.CorporationName AS SenderCorp, s.OrgUnitName AS SenderUnit,
r.CorporationName AS ReceiverCorp, r.OrgUnitName AS ReceiverUnit, d.RoutingStatus, d.UserStatus, d.NativeID,
d.GroupID, d.ConversationID, d.Comments, dj.JobStatus FROM BizDocTypeDef t, Partner s, Partner r, BizDoc d, DeliveryJob dj
WHERE d.DocTypeID = t.TypeID AND d.SenderID = s.PartnerID AND d.ReceiverID = r.PartnerID AND d.DocID = dj.DocID(+)
AND d.NativeID = '2SADADAASDAAASSSS65467547YDF2SSS' ORDER BY d.DocTimestamp DESC;
分析:此SQL對BizDoc的query 條件為欄位NativeID,但沒有index從而全表掃描table:WM71.BIZDOC (大於1G的資料)產生
RAC環境間的gc buffer busy,gc cr multi block request等待事件,並對DB server產生極高負載。
with stats as
(select * from v$segment_statistics
where statistic_name = 'gc buffer busy'order by value desc)select * from stats where rownum<=5
看到BIZDOC排在最前面
OWNER OBJECT_NAME SUBOBJECT_NAME TABLESPACE_NAME TS# OBJ# DATAOBJ# OBJECT_TYPE STATISTIC_NAME STATISTIC# VALUE
WM71 BIZDOC B2B_LDATA 7 95908 95908 TABLE gc buffer busy 2 1300348915
DELLYSD EDIINBOUNDTRACKING B2B_LDATA 7 121244 124753 TABLE gc buffer busy 2 2553364
WM71 IDX_ACTLOG_RELATEDDOCID B2B_LINDX 9 96720 96720 INDEX gc buffer busy 2 317549
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25583515/viewspace-713071/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- gc buffer busyGC
- buffer busy wait 解析AI
- Buffer Busy Wait小結AI
- zt_buffer busy waitAI
- gc buffer busy的優化GC優化
- 等待模擬-BUFFER BUSY WAITAI
- buffer busy wait 的深度剖析AI
- gc buffer busy的最佳化GC
- buffer busy wait 等待事件說明AI事件
- gc buffer busy acquire問題處理GCUI
- rac 遭遇GC BUFFER BUSY 處理思路GC
- GC BUFFER BUSY問題的診斷GC
- 一次GC BUFFER BUSY處理GC
- Buffer Cache以及buffer busy waits/gc相關事件AIGC事件
- buffer busy wait 等待事件說明(轉)AI事件
- GC Buffer Busy Waits in RAC: Finding Hot BlocksGCAIBloC
- RAC遇到GC Buffer Busy的解決方法2GC
- RAC遇到GC Buffer Busy的解決方法1GC
- log buffer space wait event等待事件AI事件
- Oracle資料庫buffer busy wait等待事件 (2)Oracle資料庫AI事件
- Oracle資料庫buffer busy wait等待事件 (1)Oracle資料庫AI事件
- 一次gc buffer busy問題的診斷GC
- [摘錄]Oracle Wait Interface之Buffer busy waits事件OracleAI事件
- 記一次gc buffer busy等待事件的處理GC事件
- 模擬產生CBC LATCH與buffer busy wait等待事件AI事件
- 轉載經典文章 buffer busy wait 等待事件說明AI事件
- 分析解決11gR2 雙節點RAC環境下的gc cr block busy/gc buffer busy acquire等待GCBloCUI
- buffer busy waits與rac cluster wait之間的聯絡AI
- [20180305]手工模擬buffer busy wait.txtAI
- Oracle Buffer Busy WaitsOracleAI
- 【WAIT】wait eventAI
- 【等待事件】buffer busy waits事件AI
- gc current/cr block busy等待事件GCBloC事件
- enqueue wait event .ENQAI
- Buffer Busy Waits深入分析AI
- buffer cache實驗7-buffer busy waits-完成AI
- Buffer busy waits/read by other sessionAISession
- buffer busy waits你誤解了嗎?AI