- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-3-20 12:58:55
Elapsed: 60.24 (mins)
DB Time: 388.04 (mins)
AAS> 6 高DB负载
Logical reads: 178,731.8 32,161.8
Block changes: 59.1 10.6
Physical reads: 2,973.3 535.0
Physical writes: 12.8 2.3
每秒逻辑读 = 178731 * 8k= 1396MB 逻辑读多
Top 5 Timed Foreground Events
Event Waits Time(s) Avg wait (ms) % DB time Wait Class
DB CPU 17,507 75.19
SQL*Net more data to client 43,392,220 2,338 0 10.04 Network
direct path read 2,043,850 245 0 1.05 User I/O
产生大量逻辑读的语句包括:
Buffer Gets Executions Gets per Exec %Total Elapsed Time (s) %CPU %IO SQL Id SQL Module SQL Text
27,126,217 5,485 4,945.53 4.20 3,238.88 65.75 0.01 6dnhd625c5gz5 JDBC Thin Client select servantapp0_.id as id49...
23,574,375 4,743 4,970.35 3.65 1,815.26 72.12 0.00 cj52cq1u1hbrf JDBC Thin Client select servantuse0_.id as id98...
18,979,084 2,246,340 8.45 2.94 339.83 97.75 0.00 akdb1nqh7k3wp JDBC Thin Client select columns0_.infoid as inf...
18,131,052 320,423 56.58 2.81 875.91 93.84 0.00 dhu478ugjs6j1 JDBC Thin Client select infos0_.columnid as col...
SQL ID :6dnhd625c5gz5 平均一次 逻辑读 4,945
SQL ID: cj52cq1u1hbrf 平均一次逻辑读 4,970
可疑点:
index fast full scans (full) 3,249,123 898.99 161.77
index fetch by key 30,586,262 8,462.84 1,522.84
==> INDEX FAST FULL SCAN的 次数很多
lob reads 2,809,938 777.48 139.90
==> LOB READ 每秒 777次
table fetch by rowid 18,094,589 5,006.55 900.90
table fetch continued row 404,320 111.87 20.13
建议你调优 SQL ID :6dnhd625c5gz5 和 cj52cq1u1hbrf 优化执行计划 减少逻辑读,从而减轻CPU的使用率。 |
|