似たSQLが多いWebサイト処理と、SQL数が多くなりがちな大量更新バッチを混在させていると次のグラフのようになることがあります。 バッチを実行していない時はfreeがかなり多いためボトルネックを見つけづらいと思います。sql area ・・・ SQL文そのもののキャッシュ CCursor/PCursor ・・・ カーソルキャッシュ library cache ・・・ コンパイル済SQLのキャッシュ free memory ・・・ 空きメモリ set pages 10000 set lines 100 set time on col name for a30 col bytes for 999,999,999,999 select name,bytes from ( select row_number() over (order by bytes desc) as rn,name,bytes from v$sgastat where pool = 'shared pool' ) where rn <= 20; NAME BYTES ------------------------------ ---------------- sql area 2,484,421,928 free memory 1,734,338,672 CCursor 678,436,864 PCursor 472,727,184 library cache 352,787,688 sql area:PLSQL 346,800,984 kglsim object batch 182,272,608 gcs resources 128,586,016 kglsim heap 104,469,120 Cursor Stats 98,273,576 gcs shadows 76,999,136 db_block_hash_buckets 47,185,920 ASH buffers 30,408,704 ges enqueues 19,842,976 ges big msg buffers 15,936,168 trace buffer 14,057,472 KGLS heap 13,290,704 event statistics per sess 12,296,000 FileOpenBlock 11,575,096 ges resource 11,342,888
このブログを検索
2011年2月17日木曜日
共有プールの利用状況を確認する
負荷特性の異なる処理を混在させている場合、共有プールの変化をウォッチしておくとボトルネックを見つけられることがあります。
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿