当前位置:网站首页>故障分析 | Federated 存储引擎表导致监控线程处于 Opening table 状态
故障分析 | Federated 存储引擎表导致监控线程处于 Opening table 状态
2022-04-21 16:58:00 【爱可生开源社区】
作者:李鹏博
爱可生 DBA 团队成员,主要负责 MySQL 故障处理和 SQL 审核优化。对技术执着,为客户负责。
本文来源:原创投稿
*爱可生开源社区出品,原创内容未经授权不得随意使用,转载请联系小编并注明来源。
--
最近发现客户的一台 MySQL 5.7.32 实例的监控线程状态一直处于 Opening table 状态,且都是在对 information_schema.tables 表做相关查询,如图:
通过 show open tables ;语句发现 opened tables 并不算太多:
相关参数也没有太大的不合理性:
虽然 ulimit 设置不是很大,但是也不会对此产生什么影响
查看 MySQL Error 日志也没有发现与此相关的异常。
因此只能使用 pstack 工具对 MySQL 打堆栈来进行分析,堆栈日志如下:
通过分析堆栈日志发现,问题出现在进行查询时会使用 Federated 存储引擎表对远程实例进行查询。
查看数据库使用 Federated 存储引擎的表,发现有两张表使用了 Federated 存储引擎:
通过在实例服务器上 Telnet Feferated 服务端的实例IP和端口发现是不通的:
所以推测问题原因为:监控线程在查询 information_schema.tables 表时,当需要获取 Federated 存储引擎表的信息时需要连接远端 Server ,而由于网络或其他原因无法连接时,就会导致本地监控线程处于 Opening table 状态。
接下来设计实验验证我们的想法:
- 启用 Federated 存储引擎
- 创建一张 Federated 存储引擎的表,连接的 server 不存在
- 查询 information_schema.tables 表,线程卡住
- 线程状态处于 Opening table 状态
这刚好验证了我们的想法是正确的。
版权声明
本文为[爱可生开源社区]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1985542
边栏推荐
- 囤货之余,该重新认识罐头了
- Roaming browser local cross site scripting vulnerability
- Interpretation of a paper that points out the small errors in the classic RMS proof process
- 吴恩达机器学习详细总结(三)
- 携程网主站XSS漏洞
- Vitis HLS 构建项目并生成IP核(Vivado HLS)
- Summary of Wu Enda's course of machine learning (I)
- 2022 Beijing purchase strategy III (Policy)
- pplive网站存在存储型跨站脚本漏洞
- 30. Overloading of construction method
猜你喜欢

Alexnet论文泛读:深度学习CV领域划时代论文具有里程碑意义NeurIPS2012

【newcode】牛牛组队竞赛

338-Leetcode 同构字符串

Vivado verifies the IP core generated by Vitis HLS

Cookie&Session学习

Apache security configuration
![[newcode] cattle team competition](/img/1f/e4bc0a246c4e6631a9201b067d07cd.png)
[newcode] cattle team competition

Microcomputer principle and interface technology -- electronic organ experiment report

Summary of Wu Enda's course of machine learning (I)

How where used list in SAP GUI is implemented
随机推荐
Are you sure you don't want to see it yet? Managing your code base in this way is both convenient and worry free
The R language uses the grepl function to check whether the substring exists in the specified string and the string matches. It is responsible for searching whether the given string object contains a
【观察】紫光云:同构混合云升级为分布式云,让云和智能无处不在
巴比特副总裁马千里:元宇宙时代NPC崛起,数字身份协议或成为入口级产品丨2022元宇宙云峰会
囤货之余,该重新认识罐头了
搜狗网站泄露信息
徽商期货开户靠谱吗?安不安全?
The R language uses the plot function to visualize the data scatter diagram, and uses the BG parameter in the par function to customize the background color in the wireframe of the visual image
Download the tutorial of chrome plug-in CRX
IO view command
30. 构造方法的重载
Go language ⌈ concurrent programming ⌋
JS milliseconds to days, minutes and seconds
golang 二进制分析与逆向
微软IE本地文件读取漏洞
1、 Overview of database system of database Series
Apache安全配置
2-4. 端口绑定
微软IE本地文件探测漏洞
众测、专属、渗透测试捡破烂小tips