zoukankan      html  css  js  c++  java
  • log file sync

    [现象]

     对比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 上。

  • 相关阅读:
    【iCore1S 双核心板_ARM】例程六:WWDG看门狗实验——复位ARM
    【emWin】例程三十二:窗口对象———Progbar
    【iCore4 双核心板】DEMO V1.0 测试程序发布
    【iCore1S 双核心板_FPGA】例程二:GPIO输入实验——识别按键输入
    【iCore1S 双核心板_ARM】例程五:IWDG看门狗实验——复位ARM
    【emWin】例程三十一:窗口对象——Multipage
    【iCore1S 双核心板_ARM】例程四:USART通信实验——通过命令控制LED
    【iCore1S 双核心板_FPGA】例程一:GPIO输出实验——点亮LED
    【iCore1S 双核心板_ARM】例程三:EXTI中断输入实验——读取ARM按键状态
    【emWin】例程三十:窗口对象——Multiedit
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/7474256.html
Copyright © 2011-2022 走看看