log file sync

通过对AWR报告的对比分析,发现事务中的回滚和提交操作显著增加,并且I/O读写速度下降。建议减少频繁的提交操作并观察OS层面的表现。

 

[现象]

 

 对比awr 报告 

今天事务有很多rollback 的操作 ,commit 操作也比平常多2倍。9/4 ,

 

 

Statistic

Total

per Second

per Trans

user commits

3,203,203

446.97

0.70

user rollbacks

1,395,843

194.77

0.30

 

正常时间段  (8/31)

Statistic

Total

per Second

per Trans

user commits

1,183,112

165.08

1.00

user rollbacks

25

0.00

0.00

 

 

建议:

 建议检查应用为啥有这么多rollback 和commit,操作

 

另外 tablespace I/O 使用情况 以及  Physical write 使用情况2个指标也需要关注,

 

这个数据表示昨天你们的业务写入量也是平常的3-4倍 ,所以导致你说的相应慢。

 

 

---issue 2

 

 

1,

1.1   ) 有问题的时间点上2017-10-27 20:00-23:00,数据库每秒读写分别为8000次和24次。每秒10笔dml事物,每秒10次commit,提交。

跟正常时间段的执行次数和频率都相差不大。说明数据库本身消耗资源没有太大变化。

 

                                Per Second          Per Transaction

Physical reads:               8,025.31       760.81 

Physical writes:        24.30        2.30

 

Per Second       Per Transaction

Transactions:  10.55       

user commits    10.54

 

 

Per Second       Per Transaction

Transactions:  10.55       

user commits    10.54

 

 

1.2). 有正常的的时间点上2017-11-06 20:00-23:00,数据库每秒读写分别为7500次和22次。每秒8 ~ 10笔dml事物,每秒8 ~ 10 次commit,提交。(相当于每次dml 事物后提交一次)

 

 

 

   Physical reads:              7,447.91                901.92

   Physical writes:                 22.02                  2.67

 

 

Per Second       Per Transaction

Transactions:  8.26

commit: 8.26

 

 

2.注意到I/O 读写速度下降不少。 因为建议部署osw ,在进行观察。

 

异常事件段:log file sync 和db file sequential read

平均每次有65ms和3ms , 而正常时间段仅为1ms和2ms.

 

Event

Waits

%Time -outs

Total Wait Time (s)

Avg wait (ms)

Waits /txn

db file sequential read

2,267,809

 

6,479

3

59.49

read by other session

4,764,379

0

6,185

1

124.99

log file sync

94,682

60

6,144

65

2.48

db file scattered read

2,654,088

 

3,612

1

69.63

 

 

正常时间段:

                                                                  Avg

                                            %Time  Total Wait    wait     Waits

Event                                 Waits -outs    Time (s)    (ms)      /txn

---------------------------- -------------- ----- ----------- ------- ---------

read by other session             4,466,525   N/A       3,328       1     149.7

db file scattered read            2,356,310   N/A       2,972       1      79.0

db file sequential read           2,271,252   N/A         875       0      76.1

log file sync                        29,590     0          45       2       1.0

 

 

可以从如下方面调整:

1.当前是每次dml 事物后提交一笔,可以改成多笔dml 事物后,在提交一次。减少提交次数 。

2.密切观察osw,最大可能是在os 上。

转载于:https://www.cnblogs.com/feiyun8616/p/7474256.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值