zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Vue 路由组件
    编写第一个JavaScript程序
    JavaScript 介绍
    JavaScript
    前台数据库
    cookie
    js date string parse
    判断时间大小 yyyy-MM-dd 格式
    正则表达式替换
    测试计时器
  • 原文地址:https://www.cnblogs.com/diyunpeng/p/6114271.html
Copyright © 2011-2022 走看看