FAQ系列 | InnoDB Monitor被自动打开

简介: FAQ系列 | InnoDB Monitor被自动打开

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优化

            </div><div class="article-inner" id="lark-content"><div class="lake-content-editor-core lake-engine lake-typography-traditional"><h1 style="text-align:justify;padding:7px 0px;margin:0px;font-weight:700;font-size:28px;line-height:36px">0、导读</h1><blockquote style="text-align:justify;margin-top:5px;margin-bottom:5px;padding-left:1em;margin-left:0px;border-left-width:3px;border-left-style:solid;border-left-color:rgb( 238 , 238 , 238 )"><p style="font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px">InnoDB Monitor总是被自动打开&#xff0c;为何</p></blockquote><h1 style="text-align:justify;padding:7px 0px;margin:0px;font-weight:700;font-size:28px;line-height:36px">1、问题</h1><p style="text-align:justify;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px">问题来自于我们课堂上的一位同学&#xff0c;她反应InnoDB Monitor总是被莫名其妙打开&#xff0c;启用了审计以及general log功能都找不到这个“鬼”&#xff0c;很是郁闷。</p><h1 style="text-align:justify;padding:7px 0px;margin:0px;font-weight:700;font-size:28px;line-height:36px">2、原因</h1><p style="text-align:justify;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px">其实&#xff0c;认真翻看MySQL手册的话&#xff0c;应该就能注意到下面这段话&#xff08;在 15.21 InnoDB Troubleshooting 这部分&#xff09;&#xff1a;</p><p style="text-align:justify;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px"><code style="font-family:monospace;font-size:inherit;background-color:rgba( 0 , 0 , 0 , 0.0588235 );padding:0px 2px;border:1px solid rgba( 0 , 0 , 0 , 0.0784314 );border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;line-height:inherit;text-indent:0px">InnoDB</code> temporarily enables standard <code style="font-family:monospace;font-size:inherit;background-color:rgba( 0 , 0 , 0 , 0.0588235 );padding:0px 2px;border:1px solid rgba( 0 , 0 , 0 , 0.0784314 );border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;line-height:inherit;text-indent:0px">InnoDB</code> Monitor output under the following conditions:</p><ul style="text-align:justify;list-style-type:disc;margin:0px;padding-left:23px;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none"><li>A long semaphore wait<br /></li><li><code style="font-family:monospace;font-size:inherit;background-color:rgba( 0 , 0 , 0 , 0.0588235 );padding:0px 2px;border:1px solid rgba( 0 , 0 , 0 , 0.0784314 );border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;line-height:inherit;text-indent:0px">InnoDB</code> cannot find free blocks in the buffer pool<br /></li><li>Over 67% of the buffer pool is occupied by lock heaps or the adaptive hash index<br /></li></ul><p style="text-align:justify;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px">如果您也遇到相似的情况&#xff0c;赶紧去优化MySQL吧&#xff0c;下面这些资料可能用得上&#xff0c;自取不谢 &#xff1a;&#xff09;</p><p style="text-align:justify;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px"><span style="color:rgb( 62 , 62 , 62 );font-size:19px" class="lake-fontsize-14">15.21 InnoDB Troubleshooting&#xff0c; </span><u><a href="http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html" target="_blank" rel="noopener noreferrer">http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html</a></u></p><p style="text-align:justify;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px"><a href="http://mp.weixin.qq.com/s?__biz&#61;MjM5NzAzMTY4NQ&#61;&#61;&amp;mid&#61;205830212&amp;idx&#61;1&amp;sn&#61;c018f0903454b34196081bb79c244be5&amp;scene&#61;21#wechat_redirect" target="_blank" rel="noopener noreferrer">比较全面的MySQL优化参考&#xff08;上篇&#xff09;</a></p><p style="text-align:justify;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px"><a href="http://mp.weixin.qq.com/s?__biz&#61;MjM5NzAzMTY4NQ&#61;&#61;&amp;mid&#61;205830212&amp;idx&#61;2&amp;sn&#61;ee2162050162a32bd29802b001386abe&amp;scene&#61;21#wechat_redirect" target="_blank" rel="noopener noreferrer">比较全面的MySQL优化参考&#xff08;下篇&#xff09;</a></p><p style="text-align:justify;font-size:14px;color:rgb( 38 , 38 , 38 );line-height:1.74;letter-spacing:0.05em;outline-style:none;margin:0px"><a href="http://mp.weixin.qq.com/s?__biz&#61;MjM5NzAzMTY4NQ&#61;&#61;&amp;mid&#61;200809436&amp;idx&#61;1&amp;sn&#61;91304b670535a702cf52ff3c0d5d40b4&amp;scene&#61;21#wechat_redirect" target="_blank" rel="noopener noreferrer">20141024程序员节分享&#xff1a; 步到位实现MySQL优化</a></p></div></div>
            </div>
相关实践学习
每个IT人都想学的“Web应用上云经典架构”实战
本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
MySQL数据库入门学习
本课程通过最流行的开源数据库MySQL带你了解数据库的世界。 &nbsp; 相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情:&nbsp;https://www.aliyun.com/product/rds/mysql&nbsp;
相关文章
|
JavaScript
《SAP后勤模块实施攻略—SAP在生产、采购、销售、物流中的应用》——第3章 MRP简介 3.1 MRP运行的简要说明
本节书摘来自华章计算机《SAP后勤模块实施攻略—SAP在生产、采购、销售、物流中的应用》一书中的第3章,第3.1节,作者 乐立骏,更多章节内容可以访问云栖社区“华章计算机”公众号查看。
4764 0
|
存储 缓存 算法
从二叉查找树到B*树,一文搞懂搜索树的演进!
本文从二分查找讲起,讲解了BST、AVL、红黑树、B树、B+树最后到B*树的演进过程,知其所以然!
从二叉查找树到B*树,一文搞懂搜索树的演进!
|
弹性计算
阿里云ecs服务器登入方法
阿里云ecs服务器登入方法
1715 0
阿里云ecs服务器登入方法
|
开发工具
ctags使用方法
ctags使用方法
378 0
|
JavaScript
js中页面加载完成后执行的几种方式及执行顺序
js中页面加载完成后执行的几种方式及执行顺序
747 0
python-dotenv管理项目环境变量
python-dotenv管理项目环境变量
623 0
|
分布式计算 监控 DataWorks
电商场景实战之漏斗模型
本文以某电商案例为例,通过案例为您介绍如何使用离线计算并制作漏斗图。
1461 0
|
弹性计算 固态存储 Linux
云服务器ECS,你真的懂吗?
云服务器ECS是阿里云最基础的弹性计算服务,总计规划了十余种规格族,几十种规格。用户在面对阿里云众多的产品种类,颇有种挑花了眼不知如何入手的感觉,本文就对阿里云最基础的云服务器ECS进行一下详细的介绍。
23207 4
|
Arthas JSON Java
五分钟带你玩转Arthas(八)常见问题
五分钟带你玩转Arthas(八)常见问题
911 0
|
Java 数据安全/隐私保护 C++
Java关键字大全(关键字分类详解)
Java关键字是预先定义的具有特别意义的标识符,也可以叫Java保留字,Java关键字不能用作变量名、方法名、类名、包名和参数,分享Java关键字大全: Ja.
9598 0