mongodb 2.2.0 bug —— can't create new thread, closing connection
来源:互联网 发布:windows激活密钥哪里有 编辑:程序博客网 时间:2024/05/05 16:10
原文链接:http://blog.csdn.net/ylqmf/article/details/8114582
客户端反映用户连接偶尔失败,查询日志得到如下信息:
Fri Oct 26 11:15:35 [initandlisten] connection accepted from 10.100.2.xx:9811 #3441 (92 connections now open)Fri Oct 26 11:15:35 [conn3441] authenticate db: db { authenticate: 1, user: "user", nonce: "4c2bfc363cc7dafa", key: "a08f451f169cc7aa9d7dafb6bdf084fb" }Fri Oct 26 11:15:35 [initandlisten] connection accepted from 10.100.2.xx:9812 #3442 (93 connections now open)Fri Oct 26 11:15:35 [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailableFri Oct 26 11:15:35 [initandlisten] can't create new thread, closing connectionFri Oct 26 11:15:35 [initandlisten] connection accepted from 10.100.2.xx:9813 #3443 (93 connections now open)Fri Oct 26 11:15:35 [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailableFri Oct 26 11:15:35 [initandlisten] can't create new thread, closing connectionFri Oct 26 11:15:35 [conn3441] end connection 10.100.2.xx:9811 (91 connections now open)
查询 ulimit -u 发现只有1024.每个用户只能创建1024个进程。因为linux下thread是用process来实现的,所以多进程被限制在1024以内。
修改 ulimit -u 65535 后,问题解决。
不过mongo创建如此多的线程不能即使释放是由php-mongo的客户端bug,mongo 客户端driver 需 升级到1.2.x版本以上才能从根本上解决问题。
#今天研发同学发现一个问题,想某张表中写入数据报错
can't map file memory
检查了该表所在的数据文件,发现所属用户竟然是root。chown mongodb后一切正常。
原文链接:http://blog.csdn.net/ylqmf/article/details/8114582
- mongodb 2.2.0 bug —— can't create new thread, closing connection
- 解决bug:运行项目时报异常 “Can't create handler inside thread that has not called Looper.prepare()”——诺诺"涂鸦"记忆
- Bug 2974637: MANY ORA-600[KKSSCL-INF-INL-LOOP] OCCUR AND CAN NOT CREATE NEW CONNECTION
- MYSQL提示Can't create a new thread (errno 12)错误的解决办法
- Can't create a new thread (errno 11) 解决办法 mysql无法连接
- ERROR 1135 (HY000): Can't create a new thread (errno 11); 引发的血案
- 重复的mysql_init导致日志Can't create a new thread (errno 11)
- new a AsyncTask cause 'Can't create handler inside thread that has not called Looper.prepare()'
- ERROR 1135 (HY000): Can't create a new thread (errno 11); 引发的血案
- 如何解决Error: Can't create a new thread (errno 12)
- Can't create a new thread (errno 11) 解决办法 mysql无法连接
- 错误BUG解决:Can't create handler inside thread that has not called Looper.prepare()
- Handler——Can't create handler inside thread that has not called Looper.prepare()
- Can't create handler inside thread
- new Thread 时产生错误:Can't create handler inside thread that has not called Looper.prepare() 的解决方法
- 在子线程中new Handler报错--Can't create handler inside thread that has not called Looper.prepare()
- 在子线程中new Handler报错--Can't create handler inside thread that has not called Looper.prepare()
- 在子线程中new Handler报错--Can't create handler inside thread that has not called Looper.prepare()
- POJ 1125 Stockbroker Grapevine
- Quartz2.1.x案例
- JavaScript事件机制详细研究
- using强制资源清理
- 人教新课标 三年级语文上册 教学视频
- mongodb 2.2.0 bug —— can't create new thread, closing connection
- C# 两个基础知识
- spring的调度任务
- Button和ImageButton基础
- KERB_SMARTCARD_CSP_INFO structure
- ubuntu 12.04下安装adobe flash
- Python正则表达式操作指南
- 人教新课标 三年级语文下册 教学视频
- 批处理REG命令的使用