mysql5.6

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

星期三, 四月 2nd, 2014 | linux | 没有评论

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: ,

Search

文章分类

Links

Meta