title: Why does nodejs memory keeps on growing in this test?
body: <p>I am trying to get a better understanding of memory consumption in node.js. I've created a small test script that does:</p>
  
  <ul>
  <li>every second: log current memory consumption</li>
  <li>after 5 seconds: every 10 seconds: create a big JS object</li>
  <li>after 10 seconds: every 10 seconds: delete that big JS object</li>
  </ul>
  
  <p><a href="https://gist.github.com/askmike/8183593" rel="nofollow">Here is the script</a>.</p>
  
  <p>So it only ever has a single big object to keep track of, and between deleting it there is 5 seconds before it creates a new one.</p>
  
  <p>How come the memory keeps on growing?</p>