mysql: Too many connections

最近,服务器上经常出现MYSQL占用CPU100%的情况,导致和mysql有关的应用都死翘翘,估计和论坛有关系。
首先,修改了/etc/mysql/my.cnf,增大了并发数,把max_connections从100增大到500。
然后限制了论坛上的搜索设定,设定词频为40%,原来为90%。
还希望能限制搜索引擎的拜访次数,不过没有在phpbb3的后台里找到。

参考:

http://dev.mysql.com/doc/refman/5.0/en/too-many-connections.html

This entry was posted in Linux and tagged , , . Bookmark the permalink.

2 Responses to mysql: Too many connections

  1. wlx [微博 ] says:

    继续修改/etc/mysql/my.cnf
    key_buffer = 64M
    query_cache_size = 32M

  2. wlx [微博 ] says:

    继续增大一倍,在看看效果

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string AwrEww to the field below:

以新浪微博帐号登录