Mongodb "failed to create service entry worker thread" 錯誤。dom
系統:CentOS release 6.8 ide
mongod.log中包含內容:日誌
"[thread1] failed to create service entry worker thread for "blog
暫時解決方法:ip
ulimit -aci
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
修改:it
/etc/security/limits.d/90-nproc.conf pip
# 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 :io
#<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
暫時解決,未發現錯誤日誌,決定繼續觀察幾天,再來寫結果。event
-----------------------2.28---------------------------------
未再出現此問題