我使用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,请检查innodb_buffer_pool_size
的配置(my.cnf
、my.cnf.d
等(并降低它。
低多少?这取决于有效的使用,你可以在Zabbix图上看到它。
不要忘记重新启动mysql服务!
如果您不进行交换,并且使用浪费的RAM不会带来任何其他好处,那么不要担心。(有句老话:"如果它没有坏,就不要修理它。"(