how to increase nodejs default memory?

后端 未结 4 1116
甜味超标
甜味超标 2020-12-03 13:30

On Server startup exporting 2GB(Approximately) data from mongodb to redis,then getting error as FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of mem

4条回答
  •  伪装坚强ぢ
    2020-12-03 14:05

    node SomeScript.js --max-old-space-size=8192
    
    • Where SomeScript is the file name that you want to execute using node.

提交回复
热议问题