1.0.0 • Published 8 years ago

memory-leak-handler v1.0.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
8 years ago

memory-leak-handler

Handle high memory utilization in nodejs by killing the process

Is this a good idea?

Of course

Are you sure?

Of course

Okay, can you show me how to use it?

Of course

var MemoryLeakHandler = require("memory-leak-handler");
var leak_handler = new MemoryLeakHandler({
    max_rss: 32,
    exit: function(fn){
        // clean up some things before the process is killed
        return fn();
    }
});

Features

  • Ready for prod