Skip to content

Instantly share code, notes, and snippets.

@kesla
Created February 14, 2013 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kesla/4952569 to your computer and use it in GitHub Desktop.
Save kesla/4952569 to your computer and use it in GitHub Desktop.
var levelup = require('levelup');
var db = levelup('levelup-leak-db');
db.put('foo', 'bar');
function read() {
db.readStream().once('end', read);
}
read();
setInterval(function() {
console.log(process.memoryUsage());
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment