2014년 12월 12일 금요일

MongoDB error: out of memory BufBuilder

I use mongoengine to query MongoDB and the code is as follows:

     37     mblog_list = MicroBlog.objects(omid__exists=False)
     38     data = []
---> 39     for mblog in mblog_list:
     40         weibo_created = mblog.created

Console prints the following error msg:

AssertionError: Result batch started from 0, expected 24662


The mongod server prints the following error msg:

Thu Dec 11 16:31:06.075 [conn9] Assertion: 10000:out of memory BufBuilder
0x8a1d1dd 0x89f2575 0x89d8470 0x8697fe6 0x860d129 0x860f0e0 0x82d7dc5 0x8a07aa0 0xb75cfd4c 0xb750e9de
 tools/mongodb-linux-i686-2.4.12/bin/mongod(_ZN5mongo15printStackTraceERSo+0x2d) [0x8a1d1dd]
 tools/mongodb-linux-i686-2.4.12/bin/mongod(_ZN5mongo10logContextEPKc+0xa5) [0x89f2575]
 tools/mongodb-linux-i686-2.4.12/bin/mongod(_ZN5mongo11msgassertedEiPKc+0xc0) [0x89d8470]
 tools/mongodb-linux-i686-2.4.12/bin/mongod(_ZN5mongo14processGetMoreEPKcixRNS_5CurOpEiRbPb+0xb46) [0x8697fe6]
 tools/mongodb-linux-i686-2.4.12/bin/mongod(_ZN5mongo15receivedGetMoreERNS_10DbResponseERNS_7MessageERNS_5CurOpE+0x10c9) [0x860d129]
 tools/mongodb-linux-i686-2.4.12/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x850) [0x860f0e0]
 tools/mongodb-linux-i686-2.4.12/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x85) [0x82d7dc5]
 tools/mongodb-linux-i686-2.4.12/bin/mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x490) [0x8a07aa0]
 /lib/i386-linux-gnu/libpthread.so.0(+0x6d4c) [0xb75cfd4c]
 /lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb750e9de]
Thu Dec 11 16:31:06.187 [conn9] { $err: "out of memory BufBuilder", code: 10000 }
Thu Dec 11 16:31:06.218 [conn9] getmore kweibo.micro_blog cursorid:1096339512930094370 ntoreturn:0 keyUpdates:0 exception: out of memory BufBuilder code:10000  nreturned:0 reslen:20 0ms


OS: Ubuntu 12.04
MongoDB version: 2.4.12

Could anyone help me fix this?



I am not sure if this will help you, but it sounds like a similar issue.



댓글 없음:

댓글 쓰기