MySQLinnodb_monitor及死結檢測

來源:互聯網
上載者:User

show innodb status只是其一種模式的直接展現,並且只能互動式開啟,無法自動迴圈捕獲資訊innodb狀態資訊輸出到 err 日誌   在如何 庫 下都可以,推薦在 test  資料庫下建立如下表mysql> create table innodb_monitor(a int) engine=innodb;
Query OK, 0 rows affected (0.09 sec)

mysql> create table innodb_tablespace_monitor(a int) engine=innodb;
Query OK, 0 rows affected (0.12 sec)

mysql> create table innodb_lock_monitor(a int) engine=innodb;
Query OK, 0 rows affected (0.13 sec)

mysql> create table innodb_table_monitor(a int) engine=innodb;
Query OK, 0 rows affected (0.09 sec)

建立表後innodb會每過15秒輸出一次innodb狀態資訊到error log,通過刪除錶停止該monitor功能。

  • innodb_monitor:實際上就是show engine  innodb status\G

  • innodb_lock_monitor:和innodb_monitor差不多,但還會有

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.