memoryUsage

process.memoryUsage()

Returns an object describing the memory usage of the Node process.

var util = require('util');

console.log(util.inspect(process.memoryUsage()));
$ node doc_test.js 
{ rss: 13262848,
  vsize: 3111051264,
  heapTotal: 5493888,
  heapUsed: 2813104 }

heapTotal and heapUsed refer to V8’s memory usage.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s