This question has been asked in various forms on both the mailing list
and the bug tracker (and probably SO as well).
Each console.log() statement allocates some memory that is not
reclaimed until the next tick of the event loop. If you slice up the
loop with process.nextTick() into 100 or 1000 segments, memory usage
will be much more constant.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 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 post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Oh, that's another thing: RSS doesn't work like that. free()ing memory
doesn't mean it's returned to the operating system. The reasons for
that are kind of complicated but google for keywords like 'heap
fragmentation' or 'memory pressure' and you'll understand why.
The bottom line is that RSS is not a very reliable metric for
measuring a program's actual memory usage.