joyent/node — Issue #1990: memory consumption in node 0.5+
Author: shtylman
Created: 2011-11-02 15:31:44+00:00
State: open

This is related to many memory growth changes I am seeing in node 0.5+ over node 0.4

var gc = global.gc || function() {};

var i=0;
for (; i < 10000000 ; ++i) {
var mem = process.memoryUsage();
console.log(++i, mem.rss);
gc();
}

In node 0.4 the following code stabilizes at under 12 Mb; however in node 0.5+ memory continues to be used up. I am running this test with --expose_gc and without.