get the max heap size of a node.js application
You can try the v8
module, it is documented here: https://nodejs.org/api/v8.html
I believe getHeapStatistics()
function will give you everything you need
you can use the process.memoryUsage
https://nodejs.org/api/process.html#process_process_memoryusage