@Coder321

Как расшифровать лог mongodb?

Есть вот такой лог, помогите расшифровать его.

log
2017-10-10T05:59:08.519+0000 I ACCESS   [conn369] Unauthorized: not authorized on admin to execute command { listDatabases: 1 }
2017-10-10T05:59:08.582+0000 I NETWORK  [conn369] end connection 184.105.139.67:53230 (10 connections now open)
2017-10-10T08:46:49.945+0000 I COMMAND  [conn53] command BAKB-dev.City command: find { find: "City", filter: { countryId: ObjectId('5894ce8a4b73bd1000c8fdcc') }, sort: { _id: 1 } } planSummary: IXSCAN { _id: 1 } keysExamined:145658 docsExamined:145658 cursorExhausted:1 keyUpdates:0 writeConflicts:0 numYields:1137 nreturned:91 reslen:28099 locks:{ Global: { acquireCount: { r: 2276 } }, Database: { acquireCount: { r: 1138 } }, Collection: { acquireCount: { r: 1138 } } } protocol:op_query 261ms
2017-10-10T11:02:35.973+0000 I COMMAND  [conn53] warning: log line attempted (241kB) over max size (10kB), printing beginning and end ... command BAKB-dev.Order command: find { find: "Order", filter: { $and: [ { $or: [ { dispatcherId: { $in: [ ObjectId('579f6dcfca705a12009d631b'), ... около 100 айдишек ] } }, { operatorId: { $in: [ ObjectId('57b9d5cf1b53661000289217'), ObjectId('586a44aad142ab0f0057af95'), ObjectId('58e0b30508939d1000db21d2'), ObjectId('5979d5b7feff2e0f005ca24c') ] } }, { fleetOwnerId: ObjectId('5904e052c4eb94bc2fdbfee2') } ] }, { $or: [ { orderStatus: "canceled" }, { orderStatus: "returned" }, { orderStatus: "delivered" } ] }, { processedAt: { $gte: 1507506000000.0, $lte: 1507525199999.0 } } ] }, sort: { _id: 1 } } keysExamined:11769 docsExamined:11769 cursorExhausted:1 keyUpdates:0 writeConflicts:0 numYields:92 nreturned:0 reslen:120 locks:{ Global: { acquireCount: { r: 186 } }, Database: { acquireCount: { r: 93 } }, Collection: { acquireCount: { r: 93 } } } protocol:op_query 101ms
2017-10-10T11:06:04.121+0000 I COMMAND  [conn56] command BAKB-dev.RoleMapping command: find { find: "RoleMapping", filter: { roleId: ObjectId('57482452917f74d30d06bbf8'), principalType: "USER", principalId: "59c38e82674e0b1300e332e1" }, sort: { _id: 1 }, limit: 1 } planSummary: IXSCAN { _id: 1 } keysExamined:7834 docsExamined:7834 cursorExhausted:1 keyUpdates:0 writeConflicts:0 numYields:61 nreturned:1 reslen:237 locks:{ Global: { acquireCount: { r: 124 } }, Database: { acquireCount: { r: 62 } }, Collection: { acquireCount: { r: 62 } } } protocol:op_query 101ms
2017-10-10T11:52:04.236+0000 I COMMAND  [conn56] command BAKB-dev.DriverGpsLocation command: find { find: "DriverGpsLocation", filter: { driverId: { $in: [ ObjectId('592198383597ec0f00c8cc87') ] } }, sort: { _id: 1 } } planSummary: IXSCAN { _id: 1 } keysExamined:251 docsExamined:251 cursorExhausted:1 keyUpdates:0 writeConflicts:0 numYields:2 nreturned:1 reslen:381 locks:{ Global: { acquireCount: { r: 6 } }, Database: { acquireCount: { r: 3 } }, Collection: { acquireCount: { r: 3 } } } protocol:op_query 153ms
2017-10-10T13:07:06.147+0000 F -        [conn53] out of memory.

 0x1319fa2 0x13199f9 0x12a3081 0x9b7b5b 0x1109fe8 0xbc721a 0xbc84e4 0xb243f0 0xcd3395 0xcd5c26 0x9b8d5c 0x12c6775 0x7f1045d4c182 0x7f1045a7947d
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"400000","o":"F19FA2","s":"_ZN5mongo15printStackTraceERSo"},{"b":"400000","o":"F199F9","s":"_ZN5mongo29reportOutOfMemoryErrorAndExitEv"},{"b":"400000","o":"EA3081","s":"_ZN5mongo12mongoReallocEPvm"},{"b":"400000","o":"5B7B5B","s":"_ZN5mongo11_BufBuilderINS_16TrivialAllocatorEE15grow_reallocateEi"},{"b":"400000","o":"D09FE8","s":"_ZN5mongo3rpc18LegacyReplyBuilder22getInPlaceReplyBuilderEm"},{"b":"400000","o":"7C721A","s":"_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE"},{"b":"400000","o":"7C84E4","s":"_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE"},{"b":"400000","o":"7243F0","s":"_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE"},{"b":"400000","o":"8D3395"},{"b":"400000","o":"8D5C26","s":"_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE"},{"b":"400000","o":"5B8D5C","s":"_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE"},{"b":"400000","o":"EC6775","s":"_ZN5mongo17PortMessageServer17handleIncomingMsgEPv"},{"b":"7F1045D44000","o":"8182"},{"b":"7F104597F000","o":"FA47D","s":"clone"}],"processInfo":{ "mongodbVersion" : "3.2.7", "gitVersion" : "4249c1d2b5999ebbf1fdf3bc0e0e3b3ff5c0aaf2", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "3.13.0-74-generic", "version" : "#118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "A8DC02B241532EEAD31FFE2633EE8C8E565C1F1A" }, { "b" : "7FFD0BE23000", "elfType" : 3, "buildId" : "DC075B751E9FB361F14CD59BD81300A6BB5CB377" }, { "b" : "7F1046C65000", "path" : "/lib/x86_64-linux-gnu/libssl.so.1.0.0", "elfType" : 3, "buildId" : "D08DD65F97859C71BB2CBBF1043BD968EFE18AAD" }, { "b" : "7F104688A000", "path" : "/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", "elfType" : 3, "buildId" : "F86FA9FB4ECEB4E06B40DBDF761A4172B70A4229" }, { "b" : "7F1046682000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "92FCF41EFE012D6186E31A59AD05BDBB487769AB" }, { "b" : "7F104647E000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "C1AE4CB7195D337A77A3C689051DABAA3980CA0C" }, { "b" : "7F1046178000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "1D76B71E905CB867B27CEF230FCB20F01A3178F5" }, { "b" : "7F1045F62000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "36311B4457710AE5578C4BF00791DED7359DBB92" }, { "b" : "7F1045D44000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "9318E8AF0BFBE444731BB0461202EF57F7C39542" }, { "b" : "7F104597F000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "30C94DC66A1FE95180C3D68D2B89E576D5AE213C" }, { "b" : "7F1046EC4000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "9F00581AB3C73E3AEA35995A0C50D24D59A01D47" } ] }}
 mongod(_ZN5mongo15printStackTraceERSo+0x32) [0x1319fa2]
 mongod(_ZN5mongo29reportOutOfMemoryErrorAndExitEv+0x79) [0x13199f9]
 mongod(_ZN5mongo12mongoReallocEPvm+0x21) [0x12a3081]
 mongod(_ZN5mongo11_BufBuilderINS_16TrivialAllocatorEE15grow_reallocateEi+0x3B) [0x9b7b5b]
 mongod(_ZN5mongo3rpc18LegacyReplyBuilder22getInPlaceReplyBuilderEm+0x38) [0x1109fe8]
 mongod(_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE+0x3A) [0xbc721a]
 mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE+0x404) [0xbc84e4]
 mongod(_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE+0x1F0) [0xb243f0]
 mongod(+0x8D3395) [0xcd3395]
 mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x696) [0xcd5c26]
 mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE+0xEC) [0x9b8d5c]
 mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x325) [0x12c6775]
 libpthread.so.0(+0x8182) [0x7f1045d4c182]
 libc.so.6(clone+0x6D) [0x7f1045a7947d]
-----  END BACKTRACE  -----


Есть один очень большой запрос, в операторе $in находится больше 100 айдишек, после нескольких таких запросов монга падает. Проблема в нем? Какой памяти ей не хватает?
  • Вопрос задан
  • 339 просмотров
Пригласить эксперта
Ответы на вопрос 1
@c0va23
Backend-разработчик
В логе есть вполне понятное сообщение:
2017-10-10T13:07:06.147+0000 F - [conn53] out of memory.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы