摘要: 以前一直都是用redhat5,redhat6也处于测试阶段,当然也遇到了很多奇奇怪怪的问题,比如之前写的一篇博客,当时候是用root启动了mysqld_unsafe,在mysql的QPS到1W以上后,会出现ERROR 1135 (HY000): Can’t create a new thread (errno 11); 当时候的解决办法是用mysql用户来启动就解决了问题。但因为在系统重启后,如果用sudo -u mysql来启动的话,脚本会被卡主。这个问题今天得到了一个稍微深入一点的结论。首先我们看看这个错误ERROR 1135 (HY000): Can’t create a new thr 阅读全文
posted @ 2012-12-06 13:56 596448745 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 待整理中。。。。。。cat /etc/security/limits.conf # /etc/security/limits.conf##Each line describes a limit for a user in the form:##<domain> <type> <item> <value>##Where:#<domain> can be:# - an user name# - a group name, with @group syntax# - the wildcard *, for default entry# .. 阅读全文
posted @ 2012-12-06 13:48 596448745 阅读(683) 评论(0) 推荐(0) 编辑
摘要: mysql used mem = key_buffer_size + query_cache_size + tmp_table_size+ innodb_buffer_pool_size + innodb_additional_mem_pool_size+ innodb_log_buffer_size+ max_connections * (read_buffer_size + read_rnd_buffer_size+ sort_buffer_size+ join_buffer_size+ binlog_cache_size + thread_stack)在mysql 中输入如下命令,可自动 阅读全文
posted @ 2012-12-06 13:29 596448745 阅读(2070) 评论(0) 推荐(0) 编辑
摘要: [root@localhost ~]# cat /etc/security/limits.conf# /etc/security/limits.conf##Each line describes a limit for a user in the form:##<domain> <type> <item> <value>##Where:#<domain> can be:# - an user name# - a group name, with @group syntax# - the wildcard *, for default 阅读全文
posted @ 2012-12-06 13:26 596448745 阅读(228) 评论(0) 推荐(0) 编辑