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
You can try the v8 module, it is documented here: https://nodejs.org/api/v8.html
v8
I believe getHeapStatistics() function will give you everything you need
getHeapStatistics()