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 use the process.memoryUsage https://nodejs.org/api/process.html#process_process_memoryusage
process.memoryUsage
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()