memory-leak-handler

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i memory-leak-handler

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • normanjoyner