[mongodb-user] User Exception 10085:can't map file memory

404 views
Skip to first unread message

Andreas Jung

unread,
May 16, 2010, 8:09:03 AM5/16/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The following error occurs within the following test scenario:

- mongod (1.4.2, 64-bit on Linux) is started with a fresh
database directory + option --master

- I run a unittest (Python) performing a simple map-reduce test

- I terminate mongod and restart it using the same options

- re-running the map-reduce test causes the error below

The error message is weird especially I am running a 64-bit
version of OpenSuse 11.1 (I think) and a 64-bit version of mongodb!?

Andreas

- --------------


Sun May 16 14:05:01 User Exception 10085:can't map file memory
Sun May 16 14:05:01 Caught Assertion in insert , continuing
Sun May 16 14:05:01 insert test._CloudComputationTests__topics exception
userassert:can't map file memory 0ms
mmap() failed for data/db/mongodb/test.0 len:67108864 errno:12 Cannot
allocate memory
mmap failed with out of memory, if you're using 32-bits, then you
probably need to upgrade to 64
Sun May 16 14:05:01 User Exception 10085:can't map file memory
mmap() failed for data/db/mongodb/test.0 len:67108864 errno:12 Cannot
allocate memory
mmap failed with out of memory, if you're using 32-bits, then you
probably need to upgrade to 64
Sun May 16 14:05:01 User Exception 10085:can't map file memory
Sun May 16 14:05:01 Caught Assertion in remove , continuing
Sun May 16 14:05:01 remove query: {} exception userassert:can't map
file memory 0ms
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvv4F8ACgkQCJIWIbr9KYwVPQCgxWYii5z3JbKcvWI9YI6HIbNp
nIQAoND3oqwKPDrmNoOJVXeiBuI1huy9
=TqEb
-----END PGP SIGNATURE-----

--
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.

lists.vcf

Kristina Chodorow

unread,
May 16, 2010, 8:12:10 AM5/16/10
to mongod...@googlegroups.com
Can you send the log preamble from when the database starts up, as well as uname -a?

Andreas Jung

unread,
May 16, 2010, 8:12:58 AM5/16/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Addendum: restarting mongodb w/o --master option option
+ running the unittest works as it should.

Andreas

Andreas Jung wrote:
> The following error occurs within the following test scenario:
>
> - mongod (1.4.2, 64-bit on Linux) is started with a fresh
> database directory + option --master
>
> - I run a unittest (Python) performing a simple map-reduce test
>
> - I terminate mongod and restart it using the same options
>
> - re-running the map-reduce test causes the error below
>
> The error message is weird especially I am running a 64-bit
> version of OpenSuse 11.1 (I think) and a 64-bit version of mongodb!?
>
> Andreas
>
> --------------
>
>
> Sun May 16 14:05:01 User Exception 10085:can't map file memory
> Sun May 16 14:05:01 Caught Assertion in insert , continuing
> Sun May 16 14:05:01 insert test._CloudComputationTests__topics exception
> userassert:can't map file memory 0ms
> mmap() failed for data/db/mongodb/test.0 len:67108864 errno:12 Cannot
> allocate memory
> mmap failed with out of memory, if you're using 32-bits, then you
> probably need to upgrade to 64
> Sun May 16 14:05:01 User Exception 10085:can't map file memory
> mmap() failed for data/db/mongodb/test.0 len:67108864 errno:12 Cannot
> allocate memory
> mmap failed with out of memory, if you're using 32-bits, then you
> probably need to upgrade to 64
> Sun May 16 14:05:01 User Exception 10085:can't map file memory
> Sun May 16 14:05:01 Caught Assertion in remove , continuing
> Sun May 16 14:05:01 remove query: {} exception userassert:can't map
> file memory 0ms

- --
ZOPYX Limited | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope & Plone
D-72070 Tübingen | Produce & Publish
www.zopyx.com | www.produce-and-publish.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvv4UoACgkQCJIWIbr9KYzDNQCgks1xyexDRS79CJABItd+mOT1
gcMAoJVjF7OQJVF2HWOtJUNo3TOI56wE
=z+VT
lists.vcf

Eliot Horowitz

unread,
May 16, 2010, 8:33:01 AM5/16/10
to mongod...@googlegroups.com
Opensuse sets a shell virtual size limit.
Look at ulimit -a
You'll need to make that unlimited
> <lists.vcf>

GVP

unread,
May 16, 2010, 6:18:21 PM5/16/10
to mongodb-user
If you're running SUSE you probably need at least:
ulimit -v unlimited
ulimit -n (very big, well over the normal 1024)
> > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> > iEYEARECAAYFAkvv4UoACgkQCJIWIbr9KYzDNQCgks1xyexDRS79CJABItd+mOT1
> > gcMAoJVjF7OQJVF2HWOtJUNo3TOI56wE
> > =z+VT
> > -----END PGP SIGNATURE-----
>
> > --
> > 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 athttp://groups.google.com/group/mongodb-user?hl=en

Andreas Jung

unread,
May 16, 2010, 11:37:35 PM5/16/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eliot Horowitz wrote:
> Opensuse sets a shell virtual size limit.
> Look at ulimit -a
> You'll need to make that unlimited
>
>

Thanks - that worked.

Perhaps this should be added to the sysadmin section of the docs.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvwuf4ACgkQCJIWIbr9KYzQJACg6arQDqmhSQLrcnpWBKbtICgE
t0UAn0gxpMlPYkog2yfOgKS8j+054mC8
=cobM
-----END PGP SIGNATURE-----

--
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.
lists.vcf
Reply all
Reply to author
Forward
0 new messages