ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 数据库 >> MySql >> Cant create a new thread errno 11 解决办法 mysql无法连接

Cant create a new thread errno 11 解决办法 mysql无法连接

来源:网络整理     时间:2015-11-03     关键词:

本篇文章主要介绍了"Cant create a new thread errno 11 解决办法 mysql无法连接",主要涉及到方面的内容,对于MySql感兴趣的同学可以参考一下: 问题的现象:错误信息:ERROR 1135 (00000): Can't create a new thread (errno 11); if you are ...

问题的现象:

错误信息:

ERROR 1135 (00000): Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent b

原因分析:

和mysql本身没关系

操作系统连接数太小。(比如centos 6 默认的  max user process只有 1024个。当mysql process大于这个值时 就会出现Can't create a new thread的问题)

连接数超限处理的办法:

ulimit -a

查看max user processes 这一项

要是这个值比较的小 当mysql中process的数目超过这个数的时候 就会抱标题相应的错误。

修改办法:

vi /etc/security/limits.d/90-nproc.conf

#修改为:

 -    nproc     65536

或者:

vi /etc/bashrc

添加 :

ulimit -u 65536

然后退出当前session 即可。

以上就介绍了Cant create a new thread errno 11 解决办法 mysql无法连接,包括了方面的内容,希望对MySql有兴趣的朋友有所帮助。

本文网址链接:http://www.codes51.com/article/detail_209073.html

相关图片

相关文章