memory-tripwire
suicide when memory over the limit
Installation
$ npm install memory-tripwire
Usage
var tripwire = ; tripwirestart;tripwire;
Options
warning
- warning memory limit, will be killed after observationcritical
- critical memory limit, will be killed at once if memory is criticalinterval
- memory check intervalcycle
- max warning continuously cycle, or will be killeddisconnectTime
- will disconnect afterdisconnctTime
exitTime
- will exit afterexitTime
exitCode
- will exit withexitCode
Examples
License
MIT