•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