can't map file memory - mongo requires 64 bit build

1,926 views
Skip to first unread message

Michael

unread,
Nov 1, 2010, 4:28:42 AM11/1/10
to mongodb-user
Hi all,
I run mongodb on 32 bit Windows XP. When I inserted 200W documents
in my collection pmhis_errcode_1,and then I run command on shell, I
always get folling errors.

> db.portesreport.drop()
Mon Nov 01 16:26:21 uncaught exception: drop failed: {
"assertion" : "can't map file memory - mongo requires 64 bit
build for l
arger datasets",
"assertionCode" : 10084,
"errmsg" : "db assertion failure",
"ok" : 0
}
> show collections
Mon Nov 01 16:26:42 uncaught exception: error: {
"$err" : "can't map file memory - mongo requires 64 bit build
for larger
datasets",
"code" : 10084


besides, I sharding my collection, it seems like my database file has
corruptd. Any help, Thanks.

> db.printShardingStatus();
--- Sharding Status ---
sharding version: { "_id" : 1, "version" : 3 }
shards:
{ "_id" : "shard0000", "host" : "localhost:10000" }
{ "_id" : "shard0001", "host" : "localhost:10001" }
{ "_id" : "shard0002", "host" : "localhost:10002" }
{ "_id" : "shard0003", "host" : "localhost:10003" }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" :
"config" }
{ "_id" : "tutorial", "partitioned" : true, "primary" :
"shard0000" }
tutorial.pmhis chunks:
tutorial.pmhis_errcode_1 chunks:
tutorial.pmhis_optpower_1 chunks:
{ "_id" : "tmp", "partitioned" : false, "primary" :
"shard0001" }
{ "_id" : "countmap1", "partitioned" : false, "primary" :
"shard0000" }
{ "_id" : "toturial", "partitioned" : false, "primary" :
"shard0001" }

Kyle Banker

unread,
Nov 1, 2010, 10:34:38 AM11/1/10
to mongod...@googlegroups.com
There's no indication here that your database has been corrupted.
What's happening in that you've exceeded the 2GB limit permitted for
32-bit instances. You'll ultimately need to run 64-bit to fix the
problem.

Also, we don't really recommend running sharded 32-bit.

In order to drop the portesreport collection, you'll need to reduce
total data size. Can you list the contents of your /data/db folder? It
might be possible to temporarily relocate a database.

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

T#

unread,
Nov 1, 2010, 1:21:33 PM11/1/10
to mongodb-user
Sharding aside, from what I have experienced and read, if your data
files in data/db have gone over 2GB from your inserts or adding
indexes, any operation will return that message as you have gone over
the limit for 32-bit machines.

Michael

unread,
Nov 1, 2010, 9:04:48 PM11/1/10
to mongodb-user
Thanks.
my data\sharda have following files,
tutorial.0 65536K
tutorial.1 131072K
tutorial.2 262144K
tutorial.3 524288K
tutorial.4 524288K
tutorial.5 524288K
tutorial.ns 16384K

the total size reach 2G.

I know the 32 bit limitations, so I shard my collection.(add shard
without set maxSize),
but all my data just go to one shard.When does sharding start? Thanks.
> > "shard0001" }- Hide quoted text -
>
> - Show quoted text -

Eliot Horowitz

unread,
Nov 2, 2010, 9:06:55 PM11/2/10
to mongod...@googlegroups.com
You probably need to make the chunkSize small - the default is 200mb.
Try setting it to 20mb or so

Reply all
Reply to author
Forward
0 new messages