MySQL在负载增大之后经常会出现"1135 out of memory"错误,可能是因为FreeBSD默认每个进程最大使用内存数量默认为256MB的缘故。如果需要增大这个值,需要调整MAXDSIZ参数, 另外有提及MAXSSIZ过于小的话容易在影响MySQL在biuld with LinuxThreads 情况下的性能,于是一并提高到1G。
错误描述:
050121 21:46:20 Out of memory; Check if mysqld or some other process uses all available memory. If not you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
涉及到的参数有:
options MAXDSIZ="(1024*1024*1024)"
options MAXSSIZ="(1024*1024*1024)"
参考连接:
MySQL Reference Manual - FreeBSD Notes
评论内容
发表评论