title: NodeJS memory consumption in an infinite loop
body: <p>I don't know if this is a bug with Node or V8, but if I run the following code the node process leaks memory. The GC never seems to kick in and in a few seconds it's consuming >1GB of memory. This is unexpected behavior. Am I missing something?</p>
  
  <p>Here's the code:</p>
  
  <pre><code>for(;;) { console.log(1+1); }
  </code></pre>
  
  <p>Obviously, this is a little bit of a contrived situation, but I can see an issue with a long-running process that would never free memory.</p>
  
  <p>Edit: I tried both with v0.5.10 (unstable) and v0.4.12 (stable) and the unstable version performs a little bit better---the stable version just stops outputting to the console but continues to consume memory, whereas the stable version continues executing and consuming memory without pause.</p>