Mongodb之failed to create service entry worker thread
Mongodb "failed to create service entry worker thread" 错误。
系统:CentOS release 6.8
mongod.log中包含内容:
"[thread1] failed to create service entry worker thread for "
暂时解决方法:
ulimit -a
core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 257611 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 64000 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) 32000 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
修改:
/etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent # accidental fork bombs. # See rhbz #432903 for reasoning. * soft nproc 32000 root soft nproc unlimited
增加 /etc/security/limits.conf :
#<domain> <type> <item> <value> # #* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogins 4 # End of file * soft nofile 64000 * hard nofile 64000 * soft nproc 32000 * hard nproc 32000
暂时解决,未发现错误日志,决定继续观察几天,再来写结果。
-----------------------2.28---------------------------------
未再出现此问题