天天看點

FAQ系列 | InnoDB Monitor被自動打開0、導讀1、問題2、原因

0、導讀

InnoDB Monitor總是被自動打開,為何

1、問題

問題來自于我們課堂上的一位同學,她反應InnoDB Monitor總是被莫名其妙打開,啟用了審計以及general log功能都找不到這個“鬼”,很是郁悶。

2、原因

其實,認真翻看MySQL手冊的話,應該就能注意到下面這段話(在 15.21 InnoDB Troubleshooting 這部分):

InnoDB

temporarily enables standard

InnoDB

Monitor output under the following conditions:

  • A long semaphore wait
  • InnoDB

    cannot find free blocks in the buffer pool
  • Over 67% of the buffer pool is occupied by lock heaps or the adaptive hash index

如果您也遇到相似的情況,趕緊去優化MySQL吧,下面這些資料可能用得上,自取不謝 :)

15.21 InnoDB Troubleshooting,

http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html 比較全面的MySQL優化參考(上篇) 比較全面的MySQL優化參考(下篇) 20141024程式員節分享: 步到位實作MySQL優化

繼續閱讀