I'm doing a lengthy read via pymongo, essentially taking every doc from a 600,000 doc collection. Avg Obj size is 5843. My log looks like this before and up to the mongo death:
Note that I've broken up the 600k docs into chunks of 50k in an effort to solve this problem. What is going on with that last command, and why does it cause mongo to shut down?
Is that the end of the log? I do not see any shutdown, or error
messages at all. Can you provide the logs showing it shutting down?
Do you simply mean that the query doesn't return all of the documents,
and not that the server is unavailable? If so, what are you doing in
your python script with the documents? Are you spending logs of time
as you process or work on each document?
On Thu, Aug 16, 2012 at 6:06 AM, Daniel W <dweitzenf...@gmail.com> wrote:
> I'm doing a lengthy read via pymongo, essentially taking every doc from a
> 600,000 doc collection. Avg Obj size is 5843.
> My log looks like this before and up to the mongo death:
> Note that I've broken up the 600k docs into chunks of 50k in an effort to
> solve this problem.
> What is going on with that last command, and why does it cause mongo to shut
> down?
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
Pymongo: pymongo.errors.AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
I am not spending any time in pymongo, just doing a [row for row in cursor]: users=[] i=0 chunksize=4000 while keep_going: minU=minuser+i*chunksize maxU=minU+chunksize if minU+chunksize<=maxuser else maxuser logger.info('Requesting ' + str(minU) + ' to ' + str(maxU)) cursor=mongo.USERS.find({'id':{'$gte':minU, '$lt':maxU}}, {'_id':0}) if maxU>=maxuser: keep_going=False else: i+=1 users+=[row for row in cursor]
Let me know if there's any more info I can provide...
On Thursday, August 16, 2012 9:43:27 AM UTC-4, Scott Hernandez wrote:
> Is that the end of the log? I do not see any shutdown, or error > messages at all. Can you provide the logs showing it shutting down?
> Do you simply mean that the query doesn't return all of the documents, > and not that the server is unavailable? If so, what are you doing in > your python script with the documents? Are you spending logs of time > as you process or work on each document?
> On Thu, Aug 16, 2012 at 6:06 AM, Daniel W <dweitz...@gmail.com<javascript:>> > wrote: > > I'm doing a lengthy read via pymongo, essentially taking every doc from > a > > 600,000 doc collection. Avg Obj size is 5843. > > My log looks like this before and up to the mongo death:
> > Note that I've broken up the 600k docs into chunks of 50k in an effort > to > > solve this problem. > > What is going on with that last command, and why does it cause mongo to > shut > > down?
> > -- > > You received this message because you are subscribed to the Google > > Groups "mongodb-user" group. > > To post to this group, send email to mongod...@googlegroups.com<javascript:> > > To unsubscribe from this group, send email to > > mongodb-user...@googlegroups.com <javascript:> > > See also the IRC channel -- freenode.net#mongodb
On Thu, Aug 16, 2012 at 6:54 AM, Daniel W <dweitzenf...@gmail.com> wrote:
> Yes, that is the end of the log. Is there a way I can increase the logging
> detail?
> I just tried again, and this time there wasn't even the serverStatus line,
> it just up and 'died':
> Pymongo:
> pymongo.errors.AutoReconnect: could not connect to localhost:27017: [Errno
> 111] Connection refused
> I am not spending any time in pymongo, just doing a [row for row in cursor]:
> users=[]
> i=0
> chunksize=4000
> while keep_going:
> minU=minuser+i*chunksize
> maxU=minU+chunksize if minU+chunksize<=maxuser else maxuser
> logger.info('Requesting ' + str(minU) + ' to ' + str(maxU))
> cursor=mongo.USERS.find({'id':{'$gte':minU, '$lt':maxU}},
> {'_id':0})
> if maxU>=maxuser:
> keep_going=False
> else:
> i+=1
> users+=[row for row in cursor]
> Let me know if there's any more info I can provide...
> On Thursday, August 16, 2012 9:43:27 AM UTC-4, Scott Hernandez wrote:
>> Is that the end of the log? I do not see any shutdown, or error
>> messages at all. Can you provide the logs showing it shutting down?
>> Do you simply mean that the query doesn't return all of the documents,
>> and not that the server is unavailable? If so, what are you doing in
>> your python script with the documents? Are you spending logs of time
>> as you process or work on each document?
>> On Thu, Aug 16, 2012 at 6:06 AM, Daniel W <dweitz...@gmail.com> wrote:
>> > I'm doing a lengthy read via pymongo, essentially taking every doc from
>> > a
>> > 600,000 doc collection. Avg Obj size is 5843.
>> > My log looks like this before and up to the mongo death:
>> > Note that I've broken up the 600k docs into chunks of 50k in an effort
>> > to
>> > solve this problem.
>> > What is going on with that last command, and why does it cause mongo to
>> > shut
>> > down?
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "mongodb-user" group.
>> > To post to this group, send email to mongod...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > mongodb-user...@googlegroups.com
>> > See also the IRC channel -- freenode.net#mongodb
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
Aug 16 09:36:08 domU-12-31-39-18-3D-20 kernel: Out of memory: kill process 5866 (mongod) score 266194 or a child Aug 16 09:36:08 domU-12-31-39-18-3D-20 kernel: Killed process 5866 (mongod) Aug 16 09:36:08 domU-12-31-39-18-3D-20 kernel: init invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0
(should I run these commands while mongod is running? here they are w/o mongo)
[root@domU-12-31-39-18-3D-20 log]# uname -a Linux domU-12-31-39-18-3D-20 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> What does "free -ltm", and "uname -a" look like?
> On Thu, Aug 16, 2012 at 6:54 AM, Daniel W <dweitz...@gmail.com<javascript:>> > wrote: > > Yes, that is the end of the log. Is there a way I can increase the > logging > > detail?
> > I just tried again, and this time there wasn't even the serverStatus > line, > > it just up and 'died':
> > Pymongo: > > pymongo.errors.AutoReconnect: could not connect to localhost:27017: > [Errno > > 111] Connection refused
> > I am not spending any time in pymongo, just doing a [row for row in > cursor]: > > users=[] > > i=0 > > chunksize=4000 > > while keep_going: > > minU=minuser+i*chunksize > > maxU=minU+chunksize if minU+chunksize<=maxuser else maxuser > > logger.info('Requesting ' + str(minU) + ' to ' + str(maxU)) > > cursor=mongo.USERS.find({'id':{'$gte':minU, '$lt':maxU}}, > > {'_id':0}) > > if maxU>=maxuser: > > keep_going=False > > else: > > i+=1 > > users+=[row for row in cursor]
> > Let me know if there's any more info I can provide...
> > On Thursday, August 16, 2012 9:43:27 AM UTC-4, Scott Hernandez wrote:
> >> Is that the end of the log? I do not see any shutdown, or error > >> messages at all. Can you provide the logs showing it shutting down?
> >> Do you simply mean that the query doesn't return all of the documents, > >> and not that the server is unavailable? If so, what are you doing in > >> your python script with the documents? Are you spending logs of time > >> as you process or work on each document?
> >> On Thu, Aug 16, 2012 at 6:06 AM, Daniel W <dweitz...@gmail.com> wrote: > >> > I'm doing a lengthy read via pymongo, essentially taking every doc > from > >> > a > >> > 600,000 doc collection. Avg Obj size is 5843. > >> > My log looks like this before and up to the mongo death:
> >> > Note that I've broken up the 600k docs into chunks of 50k in an > effort > >> > to > >> > solve this problem. > >> > What is going on with that last command, and why does it cause mongo > to > >> > shut > >> > down?
> >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "mongodb-user" group. > >> > To post to this group, send email to mongod...@googlegroups.com > >> > To unsubscribe from this group, send email to > >> > mongodb-user...@googlegroups.com > >> > See also the IRC channel -- freenode.net#mongodb
> > -- > > You received this message because you are subscribed to the Google > > Groups "mongodb-user" group. > > To post to this group, send email to mongod...@googlegroups.com<javascript:> > > To unsubscribe from this group, send email to > > mongodb-user...@googlegroups.com <javascript:> > > See also the IRC channel -- freenode.net#mongodb
On Thu, Aug 16, 2012 at 7:17 AM, Daniel W <dweitzenf...@gmail.com> wrote:
> Yep, that's it (right?):
> Aug 16 09:36:08 domU-12-31-39-18-3D-20 kernel: Out of memory: kill process
> 5866 (mongod) score 266194 or a child
> Aug 16 09:36:08 domU-12-31-39-18-3D-20 kernel: Killed process 5866 (mongod)
> Aug 16 09:36:08 domU-12-31-39-18-3D-20 kernel: init invoked oom-killer:
> gfp_mask=0x201d2, order=0, oomkilladj=0
> (should I run these commands while mongod is running? here they are w/o
> mongo)
>> What does "free -ltm", and "uname -a" look like?
>> On Thu, Aug 16, 2012 at 6:54 AM, Daniel W <dweitz...@gmail.com> wrote:
>> > Yes, that is the end of the log. Is there a way I can increase the
>> > logging
>> > detail?
>> > I just tried again, and this time there wasn't even the serverStatus
>> > line,
>> > it just up and 'died':
>> > Pymongo:
>> > pymongo.errors.AutoReconnect: could not connect to localhost:27017:
>> > [Errno
>> > 111] Connection refused
>> > I am not spending any time in pymongo, just doing a [row for row in
>> > cursor]:
>> > users=[]
>> > i=0
>> > chunksize=4000
>> > while keep_going:
>> > minU=minuser+i*chunksize
>> > maxU=minU+chunksize if minU+chunksize<=maxuser else maxuser
>> > logger.info('Requesting ' + str(minU) + ' to ' + str(maxU))
>> > cursor=mongo.USERS.find({'id':{'$gte':minU, '$lt':maxU}},
>> > {'_id':0})
>> > if maxU>=maxuser:
>> > keep_going=False
>> > else:
>> > i+=1
>> > users+=[row for row in cursor]
>> > Let me know if there's any more info I can provide...
>> > On Thursday, August 16, 2012 9:43:27 AM UTC-4, Scott Hernandez wrote:
>> >> Is that the end of the log? I do not see any shutdown, or error
>> >> messages at all. Can you provide the logs showing it shutting down?
>> >> Do you simply mean that the query doesn't return all of the documents,
>> >> and not that the server is unavailable? If so, what are you doing in
>> >> your python script with the documents? Are you spending logs of time
>> >> as you process or work on each document?
>> >> On Thu, Aug 16, 2012 at 6:06 AM, Daniel W <dweitz...@gmail.com> wrote:
>> >> > I'm doing a lengthy read via pymongo, essentially taking every doc
>> >> > from
>> >> > a
>> >> > 600,000 doc collection. Avg Obj size is 5843.
>> >> > My log looks like this before and up to the mongo death:
>> >> > Note that I've broken up the 600k docs into chunks of 50k in an
>> >> > effort
>> >> > to
>> >> > solve this problem.
>> >> > What is going on with that last command, and why does it cause mongo
>> >> > to
>> >> > shut
>> >> > down?
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups "mongodb-user" group.
>> >> > To post to this group, send email to mongod...@googlegroups.com
>> >> > To unsubscribe from this group, send email to
>> >> > mongodb-user...@googlegroups.com
>> >> > See also the IRC channel -- freenode.net#mongodb
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "mongodb-user" group.
>> > To post to this group, send email to mongod...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > mongodb-user...@googlegroups.com
>> > See also the IRC channel -- freenode.net#mongodb
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb