0.1.3 • Published 11 years ago

runaway v0.1.3

Weekly downloads
35
License
-
Repository
github
Last release
11 years ago

runaway

Kill runaway CPU hogging process. Checks the system every minute, and if uptime reports > .90 CPU in last minute, kills the highest CPU process.

Global

$ npm runaway -g
$ runaway

Local

$ npm runaway
$ node runaway &

####Options

Check every n minutes instead of 2

$ checkevery=10 node runaway &

Show all details to console.log

$ debug=1 node runaway &

Write all details to log.txt file

$ debuglog=1 node runaway &

####Testing

Runaway uses nodejs, no additional modules, and system commands uptime, and ps, standard Linux/Unix biz, but doesn't work on Windows.

$ node badprocess

Is an infinite loop and simulates a process gone wrong. If you run it, then run runaway, after about a minute or so, runaway should catch it and kill badprocess.

BEWARE - badprocess spins up a CPU core to the max, so be careful on important or shared systems!

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago