log file sync的再次思考
来源:互联网 发布:windows的相对路径 编辑:程序博客网 时间:2024/05/22 04:30
昨天系统整体慢,最终定位到是数据库层面的问题。在TOP的等待事件中可以看到log file sync平均等待达到了157,根据之前的经验这个值超过20就有性能问题。
如果按照以前的诊断思路,就是认定服务器的IO有问题,建议用IO快一点的存储。
不过通过这次问题的解决,思路有些变化,发生log file sync等待事件过高说明服务器IO出现瓶颈,这是没有问题的。如果此服务器IO一直没有问题,就今天出了问题,可能是SQL导致,接着分析Segments by Physical Reads,可以看到是查询那些表的无力度高。再通过这些表找到对应的SQL优化。
本次的优化就是优化SQL后,整个系统的物理读降下来了,log file sync也降到了5。
Top 10 Foreground Events by Total Wait Time
Segments by Physical Reads
- Total Physical Reads: 167,906,170
- Captured Segments account for 98.3% of Total
0 0
- log file sync的再次思考
- log file sync和log file parallel write的关系
- log file sync
- log file sync
- 漫谈LOG FILE SYNC
- log file sync
- log file sync
- LOG FILE SYNC概述
- log file sync总结
- log file sync
- 漫谈LOG FILE SYNC
- LOG FILE SYNC
- log file sync, log file parallell write
- log file sync, log file parallell write
- log file switch and log file sync
- log file sync, log file parallell write
- 如何产生Log File Sync
- 如何优化LOG FILE SYNC
- OC_对象copy学习笔记
- hping3-synflood攻击
- Linux IO模式及 select、poll、epoll详解
- OC中NSString 的常用方法
- vim复制、粘贴总结
- log file sync的再次思考
- 监听软键盘显示并且整体向上移动
- CI定义默认网站主页
- 【BZOJ4127】Abs
- android5.1 AlarmManagerService的学习总结(未完)
- MFC 在其他的类中引用Dlg类方法
- 抽象类与接口的区别及应用
- Java基础之instanceof
- 学习spring自我总结(一)