gpt4 book ai didi

mysql - Percona 5.6 高内存使用率

转载 作者:IT王子 更新时间:2023-10-29 00:45:38 25 4
gpt4 key购买 nike

我不确定堆栈是否适合问这个问题,但我最近从 Percona 5.5 升级到 Percona 5.6,我的内存使用量猛增!

这是来自PS:

mysql     4598  0.0 29.5 1583356 465312 ?      Sl   Oct17   9:07 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib6

我在专用 VSS 上

我的服务器只有一个 ram...根据 PS,这怎么只占用了 30% 的内存?

我在配置中将 ram 设置为小于此值,当我运行 MySQLTuner 时,我得到:

[OK] Maximum possible memory usage: 338.9M (22% of installed RAM)

那么我如何使用近 500MB 的物理内存和超过 1.5 的虚拟内存?

这是 mySQL 中的错误还是我服务器的问题?

最佳答案

发现在 mysql 5.6 中 performance_schema 默认是开启的。在 5.5 及之前的版本中默认禁用它。从5.6.6开始默认开启

我的配置文件中的 performance_schema=off 解决了这个问题。

我想任何没有内存来运行 performance_schema 的人都不会使用它。

这也可能影响 mysql 5.6.6 的其他发行版。

关于mysql - Percona 5.6 高内存使用率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19570181/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com