jac*_*ouh 5 mysql memory flush
MySQL 5.1.63在Debian Sqeeze OS中占用了越来越多的内存.
这是我的最高输出:

目前MySQLd使用732Mb驻留内存(RES列),VIRT 855M.但它在两天前从大约330Mb的RAM开始.
不幸的是,有一天它通过一些未经识别的错误查询达到1.2G的峰值,并且永远不会下降......导致服务器关闭.
I tried the following stuffs to lower the VIRT (virtual memory) and RES (Resident RAM) using mysql console, without restarting the MySQLd server, but no success:
mysql> FLUSH TABLES;
mysql> FLUSH QUERY CACHE;
mysql> RESET QUERY CACHE;
Run Code Online (Sandbox Code Playgroud)
The MySQL RAM usage remains 732m.
Any idea ?
小智 -2
阅读此内容:http ://www.chriscalender.com/?p=1278
打开 my.cnf 并在末尾添加:performance_schema=0
重新启动您的服务。从 620MB 我现在使用了 38MB 内存。
| 归档时间: |
|
| 查看次数: |
4879 次 |
| 最近记录: |