Why is the database of a Meteor app that has been run once (and never loaded) taking up nearly 3GB?

前端 未结 4 1714
名媛妹妹
名媛妹妹 2021-01-12 03:05

UPDATE: this was fixed after Meteor v0.4 (2012). For historical purposes:


Excerpt from du:

2890768 ./Code/Meteor/         


        
4条回答
  •  无人共我
    2021-01-12 03:50

    The commands that work for me are:

    1. stop mongodb instance if it is running

    sudo service mongod stop

    1. create new mongodb instance without requiring 3+GB preallocated space and use smallfiles.

    mongod --noprealloc --smallfiles

    If you are getting “ERROR: dbpath (/data/db) does not exist.” when running 2, then run these commands before 2. sudo mkdir -p /data/db/

    sudo chown `id -u` /data/db

提交回复
热议问题