微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

mysql状态查看 QPS/TPS/缓存命中率查看

MysqL,看到QPS,就想知道怎么查看的,看了下面这篇文章,觉得正是我需要的,留下来备用。

nofollow">http://blog.163.com/ji_1006/blog/static/106123412013101421530142/

<div style="line-height:28px;color:rgb(51,102,153);font-family:'Hiragino Sans GB W3','Hiragino Sans GB',Arial,Helvetica,simsun,u5b8bu4f53;font-size:16px;">
运行中的MysqL状态查看


<div style="line-height:28px;color:rgb(51,u5b8bu4f53;font-size:16px;">
 

<div style="line-height:28px;color:rgb(51,u5b8bu4f53;font-size:16px;">
对正在运行的MysqL进行监控,其中一个方式就是查看MysqL运行状态。 

<div style="line-height:28px;color:rgb(51,u5b8bu4f53;font-size:16px;">
<br style="line-height:28px;">

show  global  status like 'Question%'; 
show global status like 'Com_commit'; 
show global status like 'Com_rollback'; 
show  global   status  like   'key%'; 
show status like 'innodb_buffer_pool_read%'; 
show status like 'Qcache%'; 
show global  status like 'open%'; 
show global status like 'Thread%'; 
show global status like 'Connections'; 
show global  status like '%lock%'; 
show slave status 
show status like 'Create_tmp%'; 
disk_tables/Created_tmp_tables比值最好不要超过10%,如果Created_tmp_tables值比较大, 
binlog Cache 使用状况 
show status like 'binlog_cache%'; 
binlog_cache_disk_use值不为0 ,可能需要调大 binlog_cache_size大小 
show status like 'innodb_log_waits'; 
#show global status; 
#show global status like %...%; 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐