我正在使用Zabbix作为我的Linux监控解决方案。它显示 MySQL - The buffer pool utilization is less than 50% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment
作为一个警告。
我应该担心这个怎么办?如何克服这个问题?
你的MySQL配置了超过需要的RAM,检查你的配置(my.cnf
, my.cnf.d
诸如此类),为 innodb_buffer_pool_size
并降低它。
降低多少?这取决于有效使用量,你可以在你的Zabbix图上看到。
不要忘记重启mysql服务!
如果你没有交换,而且没有其他东西会从使用这个浪费的RAM中获益,那么不用担心。 (有句老话说得好:"如果它没有坏,就不要去修它")