Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (29 sloc) 1.394 kB

Zombies on a train

Guaranteed zombie passengers death.

  • no longer in passenger-status ?
  • high CPU load over long period (Optional) ?

strace of killed zombies is printed, so debugging is easier.

(god/bluepill are not suited to monitor passenger apps because of ever-changing pids)

Add passenger-status to /etc/sudoers or run with sudo.

Install

sudo gem install zombie_passenger_killer

Usage

zombie_passenger_killer [options]

Options:
    -m, --max [SIZE]                 Max high CPU entries in history before killing
        --history [SIZE]             History size
    -c, --cpu [PERCENT]              Mark as high CPU when above PERCENT
    -g, --grace [SECONDS]            Wait SECONDS before hard-killing (-9) a process
    -i, --interval [SECONDS]         Check every SECONDS
    -p, --pattern [PATTERN]          Find processes with this pattern
    -h, --help                       Show this.
    -v, --version                    Show Version

Author

Contributors

Michael Grosser
michael@grosser.it
Hereby placed under public domain, do what you want, just do not hold me accountable...

Jump to Line
Something went wrong with that request. Please try again.