place this code at start of index.js it will provide memory usage statistics for every 30,000 milliseconds
var util = require('util'); setInterval(function() { console.log(util.inspect(process.memoryUsage())); }, 30000); i.e { rss: 40812544, heapTotal: 32171264, heapUsed: 18636952 } Where in rss = residential set a.k.a. the pages that are actually in memory heap(Total|Used) = the chunk of memory that's used for dynamic allocations On Friday, October 24, 2014 11:30:45 AM UTC+5:30, Wei wrote: > > Hi folks: > > I am trying to determine if the GC behavior for a Node application. What's > the recommended way to have Node application get some information like: > 1. V8 heap size at each minute > 2. # of GCs in a second > etc. > > From what I see in Google, there are some commercial products from > AppDynamics & NewRelic, but haven't seen much beyond that. Any suggestions? > > Thanks, > -Wei > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/251da5e5-65af-4bb5-9ef9-8ae4e9e0be5a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.