MySQL 监控

Table_locks_immediate 
The number of times that a request for a table lock could be granted immediately. 

•Table_locks_waited 
The number of times that a request for a table lock could not be granted immediately and a wait was needed. If this is high and you have performance problems, you should first optimize your queries, and then either split your table or tables or use replication. 

实际上应该关心的是Table_locks_waited的值
这是我们服务器上的一个值
mysql> show global status like 'table%';
+-----------------------+---------+
| Variable_name         | Value   |
+-----------------------+---------+
Table_locks_immediate | 1147514 |
| Table_locks_waited    | 135     |
+-----------------------+---------+

 

http://blog.haohtml.com/archives/4760

posted @ 2016-11-29 16:53  规格严格-功夫到家  阅读(301)  评论(0编辑  收藏  举报