Master//Slave

15 views
Skip to first unread message

Admin

unread,
Nov 17, 2010, 12:29:45 AM11/17/10
to mongodb-user
Hi All,

I am trying to start an instance on 64bit linux server for setting up
Master - Slave configuration and i am getting out of memory error.Did
anyone faced the same problem???

. ./mongod --master --dbpath /apps/nosql/mongodb/data/db
Tue Nov 16 23:21:30 MongoDB starting : pid=25725 port=27017 dbpath=/
apps/nosql/mongodb/data/db master=1 64-bit
Tue Nov 16 23:21:30 db version v1.6.3, pdfile version 4.5
Tue Nov 16 23:21:30 git version:
278bd2ac2f2efbee556f32c13c1b6803224d1c01
Tue Nov 16 23:21:30 sys info: Linux domU-12-31-39-06-79-A1
2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64
BOOST_LIB_VERSION=1_41
Tue Nov 16 23:21:30 [initandlisten] waiting for connections on port
27017
Tue Nov 16 23:21:30 [initandlisten] ******
Tue Nov 16 23:21:30 [initandlisten] creating replication oplog of
size: 4769MB... (use --oplogSize to change)
Tue Nov 16 23:21:30 allocating new datafile /apps/nosql/mongodb/data/
db/local.ns, filling with zeroes...
Tue Nov 16 23:21:30 done allocating datafile /apps/nosql/mongodb/data/
db/local.ns, size: 16MB, took 0.041 secs
Tue Nov 16 23:21:30 allocating new datafile /apps/nosql/mongodb/data/
db/local.0, filling with zeroes...
Tue Nov 16 23:21:30 done allocating datafile /apps/nosql/mongodb/data/
db/local.0, size: 64MB, took 0.43 secs
Tue Nov 16 23:21:30 allocating new datafile /apps/nosql/mongodb/data/
db/local.1, filling with zeroes...
Tue Nov 16 23:21:31 done allocating datafile /apps/nosql/mongodb/data/
db/local.1, size: 128MB, took 0.9 secs
Tue Nov 16 23:21:31 allocating new datafile /apps/nosql/mongodb/data/
db/local.2, filling with zeroes...
Tue Nov 16 23:21:49 done allocating datafile /apps/nosql/mongodb/data/
db/local.2, size: 2047MB, took 17.931 secs
Tue Nov 16 23:21:49 allocating new datafile /apps/nosql/mongodb/data/
db/local.3, filling with zeroes...
Tue Nov 16 23:22:03 done allocating datafile /apps/nosql/mongodb/data/
db/local.3, size: 2047MB, took 13.377 secs
Tue Nov 16 23:22:03 allocating new datafile /apps/nosql/mongodb/data/
db/local.4, filling with zeroes...
Tue Nov 16 23:22:12 done allocating datafile /apps/nosql/mongodb/data/
db/local.4, size: 2047MB, took 9.688 secs
Tue Nov 16 23:22:12 [initandlisten] mmap() failed for /apps/nosql/
mongodb/data/db/local.4 len:2146435072 errno:12 Cannot allocate memory
Tue Nov 16 23:22:12 [initandlisten] mmap failed with out of
memory, if you're using 32-bits, then you probably need to upgrade to
64
Tue Nov 16 23:22:14 [initandlisten] exception in initAndListen
std::exception: can't map file memory, terminating
Tue Nov 16 23:22:14 dbexit:

Tue Nov 16 23:22:14 [initandlisten] shutdown: going to close listening
sockets...
Tue Nov 16 23:22:14 [initandlisten] shutdown: going to flush oplog...
Tue Nov 16 23:22:14 [initandlisten] shutdown: going to close
sockets...
Tue Nov 16 23:22:14 [initandlisten] shutdown: waiting for fs
preallocator...
Tue Nov 16 23:22:14 [initandlisten] shutdown: closing all files...
Tue Nov 16 23:22:14 closeAllFiles() finished

Tue Nov 16 23:22:14 [initandlisten] shutdown: removing fs lock...
Tue Nov 16 23:22:14 dbexit: really exiting now

Markus Gattol

unread,
Nov 17, 2010, 4:07:32 AM11/17/10
to mongodb-user
Some people have reported similiar issues with operating system
virtualization (OpenVZ, Linux-Vserver, LXC, ...) but not Xen which is
what you're using. Did you try on a non-virtualized system?

Chandra

unread,
Nov 17, 2010, 9:00:48 AM11/17/10
to mongod...@googlegroups.com
Thank Markus.I haven`t tried this on non-virtualized system....


--
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.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.




--
It is a character of life that it pays no higher price than you ask of it, do not learn too late that you have priced yourself lower than life was prepared to pay

Admin

unread,
Nov 17, 2010, 12:22:48 PM11/17/10
to mongodb-user
Hi Markus,

Do you have any links or docs which explains why mongo has issues with
OS virtualization??I need this info before i say to my client that
this doesn`t work...

Thanks in advance for your help....

Regards,
C

On Nov 17, 6:00 am, Chandra <nmchan...@gmail.com> wrote:
> Thank Markus.I haven`t tried this on non-virtualized system....
>
> On Wed, Nov 17, 2010 at 1:07 AM, Markus Gattol <markus.gat...@gmail.com>wrote:
>
> > Some people have reported similiar issues with operating system
> > virtualization (OpenVZ, Linux-Vserver, LXC, ...) but not Xen which is
> > what you're using. Did you try on a non-virtualized system?
>
> > --
> > 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<mongodb-user%2Bunsubscribe@google­groups.com>
> > .

Eliot Horowitz

unread,
Nov 17, 2010, 12:23:58 PM11/17/10
to mongod...@googlegroups.com
The only issues we've seen with virtualiziation are openvz.
More info is here: http://jira.mongodb.org/browse/SERVER-1121
Do you know what you're running on?

> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.

Admin

unread,
Nov 17, 2010, 12:32:13 PM11/17/10
to mongodb-user
Hi Eliot,

Tue Nov 16 23:21:30 sys info: Linux domU-12-31-39-06-79-A1
2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64
BOOST_LIB_VERSION=1_41

a03681a@alnncbdap02v:~> uname -a
Linux alnncbdap02v 2.6.27.19-5-default #1 SMP 2009-02-28 04:40:21
+0100 x86_64 x86_64 x86_64 GNU/Linux

It is 64bit SUSE Linux Enterprise, Virtualized (VMWARE)
> > For more options, visit this group athttp://groups.google.com/group/mongodb-user?hl=en.- Hide quoted text -
>
> - Show quoted text -

GVP

unread,
Nov 18, 2010, 10:33:01 AM11/18/10
to mongodb-user
The problem here is ulimit.

You'll need to run the following line before you start mongod:
ulimit -v unlimited

This is a known issue with SuSE. We had to do the same thing on our
servers.
> > > For more options, visit this group athttp://groups.google.com/group/mongodb-user?hl=en.-Hide quoted text -

Admin

unread,
Nov 18, 2010, 2:42:39 PM11/18/10
to mongodb-user
Thank you GVP.I was able to setup MASTER/SLAVE config....
> > > > For more options, visit this group athttp://groups.google.com/group/mongodb-user?hl=en.-Hidequoted text -
>
> > > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages