码迷,mamicode.com
首页 > 数据库 > 详细

MongoDB numa系列问题一:[initandlisten] connection refused because too many open connections:

时间:2015-05-07 12:02:37      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:

1:Mongod日志有很多这样的报错:

[initandlisten] connection refused because too many open connections: 

 

2:查看系统的限制

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 256072
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 65535
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 65535
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

结合Mongod.conf 的启动参数确认不是系统的问题。

3:添加numactl --interleave=all 参数后重启Mongod

#numactl --interleave=all mongod --config /mongodb/mongod.conf

  

4:也可以添加如下参数临时更改内存管理策略

#echo 0 > /proc/sys/vm/zone_reclaim_mode
#echo 2 > /proc/sys/vm/overcommit_memory

 

接下一篇博客:

http://www.cnblogs.com/xiaoit/p/4484343.html

MongoDB numa系列问题一:[initandlisten] connection refused because too many open connections:

标签:

原文地址:http://www.cnblogs.com/xiaoit/p/4484330.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!