How to request the Garbage Collector in node.js to run?

后端 未结 3 854
说谎
说谎 2020-11-30 00:58

At startup, it seems my node.js app uses around 200MB of memory. If I leave it alone for a while, it shrinks to around 9MB.

Is it possible from within the app to:

3条回答
  •  猫巷女王i
    2020-11-30 01:46

    One thing I would suggest, is that unless you need those files right at startup, try to load only when you need them.

    EDIT: Refer to the post above.

提交回复
热议问题