mysql常用监控项_Mysql监控项及sql语句

推荐一款mysql监控软件MONyog

1、查询缓存:

mysql> show variables like ‘%query_cache%‘;

2、缓存在Cache中线程数量thread_cache_size:

mysql> show variables like ‘thread%‘;

3、DB已连接的线程数:

mysql> show status like ‘connections‘;

4、当前连接线程状态:

mysql> show status like ‘%thread%‘;

5、索引缓存大小:

mysql> show variables like ‘key_buffer_size‘;

6、索引缓存未命中率:

mysql> show global status like ‘key_read%‘;

7、索引缓存命中率:

mysql> show global status like ‘key_%‘;

8、索引读取统计:

mysql> show global status like ‘key_blocks_u‘;

9、并发最大连接数-允许最大连接数(一般500到800比较合适):

mysql> show variables like ‘max_connections‘;

10、并发最大连接数-服务器响应最大连接数:

mysql> show global status like ‘max_used_connections‘;

11、并发最大连接数-当前连接数:

mysql> show global status like ‘connections‘;

12、并发最大连接数-线程队列(值越小越好):

mysql> show variables like ‘back_log‘;

13、临时表:

mysql> show global status like ‘created_tmp%‘;

14、mysql服务器对临时表的配置:

mysql> show variables where variable_name  in (‘temp_able_siae‘,‘max_heap_table_size‘);

15、表扫描情况:

mysql> show global status like ‘handler_read%‘;

mysql> show global status like ‘com_select‘;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值