Reputation: 1617
Importing a json (mongoexport from unix machine) on a windows machine with mongod breaks my local db.
dated:1 upsert:1 keyUpdates:0 locks(micros) w:117382 117ms
Tue Dec 18 01:00:02 [conn2] MapViewOfFileEx for C:/xampp/mongo/data/test.9 failed with errno:8 Not enough memory available. (file size is 536608768) in MemoryMappedFile::map
Tue Dec 18 01:00:02 [conn2] test.gmd Fatal Assertion 16166
Tue Dec 18 01:00:02 [conn2] mongod.exe ???
...
***aborting after fassert() failure
Any tip, how to use mongoimport for importing this json with ~5-GB without crashing the mongo server on windows?
Upvotes: 1
Views: 1813
Reputation: 3076
The server must be hosting a 32-bit mongod on 32-bit windows platform, which limits virtual address space to 2GB. That's why the mongodb run out of memory. A 64-bit system will solve this issue.
Upvotes: 3