加入收藏 | 设为首页 | 会员中心 | 我要投稿 91站长网 (https://www.91zhanzhang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > 搜索优化 > 正文

mysql5.7-bug -information_schema的表被查询可能致使内存泄漏

发布时间:2022-03-30 11:30:26 所属栏目:搜索优化 来源:互联网
导读:mysql5.7-bug -information_schema的表被查询可能致使内存泄漏: [11 May 2017 6:57] Cho-Shing Ma Description: Running a query (on Information _Schema.tables (where clause) to exclude system schema, showing memory growing eventually Out-of-memo
       mysql5.7-bug -information_schema的表被查询可能致使内存泄漏:

      [11 May 2017 6:57] Cho-Shing Ma
     Description:
     Running a query (on Information _Schema.tables (where clause) to exclude system schema, showing memory growing eventually Out-of-memory. Number of table entries around 20,000 (40 databases with 500 tables for each db)
 
How to repeat:
Please refer to attached document.
 
table_definition_cache=10000
table_open_cache =10000
innodb_open_files=10000
open_files_limit=10000
  
Suggested fix:
No idea but the memory is growing.
         日前,作者遇到一个疑似“内存”泄露的问题,一时找不头绪,然后就从mysql的官方上找线索,发现了上面的bug(见上图,bug id 86279 ),查询information_schema下的tables表导致内存溢出。 经动手简单测试,貌似还真有这回事。 同理,该schema下的其他的一下表,可能也存在这个问题。
 
         对于表数量特别多的系统,可能更需要慎重。 但也无须惊慌,上面写的重现现象是重复查询,然后内存逐步增长,最终OOM.
  

(编辑:91站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读