rwlAk4.jpg

[root@mongo1 test]# mongod -f /data/mongo/22017/conf
tcmalloc: large alloc 9223372036854775808 bytes == (nil) @ 
2019-01-16T01:07:21.107-0500 SEVERE: out of memory, printing stack and exiting:
0x11e9b11 0x11e8e08 0x123d5fd 0x1646c90 0x11d81b4 0x11d549b 0x11d7283 0x11dc660 0x76da5c 0x780bce 0x781022 0x7813f8 0x76d5a7 0x76d909 0x7fdceec093d5 0x764589 
 mongod(_ZN5mongo15printStackTraceERSo+0x21) [0x11e9b11]
 mongod() [0x11e8e08]
 mongod() [0x123d5fd]
 mongod(tc_new+0x10) [0x1646c90]
 mongod(_ZNSt6vectorIcSaIcEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPcS1_EEmRKc+0x94) [0x11d81b4]
 mongod(_ZN5mongo17optionenvironment13OptionsParser14readConfigFileERKSsPSs+0x1bb) [0x11d549b]
 mongod(_ZN5mongo17optionenvironment13OptionsParser3runERKNS0_13OptionSectionERKSt6vectorISsSaISsEERKSt3mapISsSsSt4lessISsESaISt4pairIKSsSsEEEPNS0_11EnvironmentE+0x533) [0x11d7283]
 mongod(_ZN5mongo17optionenvironment46_mongoInitializerFunction_StartupOptions_ParseEPNS_18InitializerContextE+0x50) [0x11dc660]
 mongod(_ZN5boost6detail8function17function_invoker1IPFN5mongo6StatusEPNS3_18InitializerContextEES4_S6_E6invokeERNS1_15function_bufferES6_+0xc) [0x76da5c]
 mongod(_ZNK5mongo11Initializer7executeERKSt6vectorISsSaISsEERKSt3mapISsSsSt4lessISsESaISt4pairIKSsSsEEE+0x21e) [0x780bce]
 mongod(_ZN5mongo21runGlobalInitializersERKSt6vectorISsSaISsEERKSt3mapISsSsSt4lessISsESaISt4pairIKSsSsEEE+0x32) [0x781022]
 mongod(_ZN5mongo21runGlobalInitializersEiPKPKcS3_+0x3b8) [0x7813f8]
 mongod() [0x76d5a7]
 mongod(main+0x9) [0x76d909]
 /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fdceec093d5]
 mongod() [0x764589]

官方有bug记录:https://jira.mongodb.org/browse/SERVER-14774
mongod认为-f 的配置文件跟的是一个目录
解决方法是chmod +x /data/mongo/22017/conf

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code