摘要: 1. 服务器负载:平均负载、cpu使用率、磁盘空间、IO使用率、SWAP使用情况。 常用的命令:uptime、top、sar -u -P ALL -C 1 1、df -h 、iostat -xd 2 2 、free -g 2. 数据库检查:数据库存活、连接数(select count(1) from 阅读全文
posted @ 2020-08-15 17:21 别看窗外的世界 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 假如仅仅从processlist 无法确定哪个SQL的效率问题,那么需要进一步通过分析慢查询日志来确定问题SQL 解决报错:BEGIN failed--compilation aborted at ./pt-query-digest line 2492. yum install perl-Diges 阅读全文
posted @ 2020-08-15 17:03 别看窗外的世界 阅读(259) 评论(0) 推荐(0) 编辑