This is a one line command for the cli that will spit out the amout of RAM allocated (approximately) to your nodejs process.
$ node -e "console.log(Math.round(require('v8').getHeapStatistics().heap_size_limit / (1024*1024)))"
The output value is in the megabytes.