mysql5.6启动占用内存过大调整参数

星期三, 2014-04-02 | Author: Lee | linux | 8,590 views

vps的内存为512M,安装好nginx,php等启动起来,mysql死活启动不起来看了日志只看到对应pid被结束了,后跟踪看发现是内存不足被killed;

调整my.cnf 参数,重新配置(系统默认配置太高直接占用400M内存,小玩家玩不起呢)即可

performance_schema_max_table_instances=200
table_definition_cache=200
table_open_cache=128

Tags: ,

文章作者: Lee

本文地址: https://www.pomelolee.com/1302.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta