MongoDb - newgeekorder/TechWiki GitHub Wiki

Running in Dev Mode

the mongodb command can reduce the development footprint with the following commands:

--smallfiles
--nojournal
--noprealloc
  • --smallfiles tells mongod to limit data files to 512 MB instead of 2 GB each.
  • --nojournal will disable single-server durability (not recommended) but it will eliminate mapping every open data file twice.
  • --noprealloc will not create a data file until it is needed, which may cause delays on inserts and updates as the data file is created, but it enables you to map only the files that already have data in them. These would help you if you were starting fresh, but if you already are in a situation where mongod can't read your existing files, you may need to recreate your database(s) or export (copy) the files to a machine that can load them and then start over on your VPS instance using --smallfiles and --noprealloc.

Links and Reference