摘要: 在mysql 中,可以通过设置配置参数,开启慢 SQL 的记录 在 my.cnf 的 [mysqld] 配置下,可以设置以下参数实现慢查询记录 # 启用记录慢SQL 功能 slow_query_log=1 # 设置超过 1 秒的SQL 为慢SQL long_query_time=1 # 将慢SQL 阅读全文
posted @ 2020-08-08 15:11 chenfool 阅读(4062) 评论(1) 推荐(0) 编辑
摘要: 环境信息系统 : redhat 7.4 64 位版准备工作安装 numactl 命令 【这个可以不装】yum install numactl -y检查 NUMA 状态判断系统是否开启了numa 功能grep -i numa /var/log/dmesg如果出现了: "No NUMA configuration found" ,则证明是关闭了numa 功能,如果是其他内容,则为开启了numa在作者... 阅读全文
posted @ 2020-08-08 15:11 chenfool 阅读(7917) 评论(0) 推荐(0) 编辑