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

前端 未结 4 1707
名媛妹妹
名媛妹妹 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:53

    When meteor run is executed, it starts mongodb with default mongo settings, so it creates (massive) prealloc files in .meteor/local/db/journal.

    There is no obvious way to disable this behavior. What I have done as a workaround is change the file app/lib/mongo_runner.js and add a --nojournal parameter that gets passed to mongodb at startup.

    I created an issue for this: https://github.com/meteor/meteor/issues/15

提交回复
热议问题