get the max heap size of a node.js application

前端 未结 2 1600
再見小時候
再見小時候 2021-02-20 05:21

Now I am using node.js in paas platform. And the container has memory limit. Now I want to get the maximum of the heap size of node.js application. I know that use the parameter

2条回答
  •  日久生厌
    2021-02-20 05:56

    you can use the process.memoryUsage https://nodejs.org/api/process.html#process_process_memoryusage

提交回复
热议问题