1 问题描述
应用程序和MongoDB运行时,数据量在100M以内,系统运行3天左右后,MongoDB报OOM的错误并退出。
使用环境:
- windows 10
- Mongodb 3.4.2
异常信息:
2019-05-09T19:20:44.186+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\util\stacktrace_windows.cpp(239) mongo::printStackTrace+0x43
2019-05-09T19:20:44.186+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\util\signal_handlers_synchronous.cpp(332) mongo::reportOutOfMemoryErrorAndExit+0x90
2019-05-09T19:20:44.186+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\util\allocator.cpp(51) mongo::mongoRealloc+0x19
2019-05-09T19:20:44.186+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\bson\util\builder.h(332) mongo::_BufBuilder<mongo::SharedBufferAllocator>::grow_reallocate+0x195
2019-05-09T19:20:44.187+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\rpc\legacy_reply_builder.cpp(84) mongo::rpc::LegacyReplyBuilder::getInPlaceReplyBuilder+0x31
2019-05-09T19:20:44.187+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\db\commands\dbcommands.cpp(1486) mongo::Command::run+0xa7
2019-05-09T19:20:44.187+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\db\commands\dbcommands.cpp(1443) mongo::Command::execCommand+0xb9d
2019-05-09T19:20:44.187+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\db\run_commands.cpp(73) mongo::runCommands+0x4e4
2019-05-09T19:20:44.187+0800 I CONTROL [conn59] mongod.exe ...\src\mongo\db\instance.cpp(236) mongo