Softly kills your process with SIGTERM before it runs out of memory.
- Made for processes that run inside docker.
- defaults to
Written in Rust to consume minimal resources.
Download the binary you need from target/your-arch or
cargo install preoomkiller.
Usage: target/debug/preoomkiller [options] args Options: -m, --max-memory-file PATH set file to read maximum memory from -u, --used-memory-file PATH set file to read used memory from -i, --interval SECONDS how often to check memory usage -p, --percent PERCENT maximum memory usage percent -h, --help print this help menu -v, --version show version
- install rust
Tested with Ruby to have readable / expressive tests.
gem install bundler... needs ruby installed
bundle exec rake
bundle exec rake bump:patch
bundle exec rake release
regexdependency by splitting string and searching manually
- travis + show status on crates.io
- kill child when process is killed (already has a failing test)
- find safe way of doing wait / kill ... http://stackoverflow.com/questions/35093869
rake bumprelease for multiple targets and commit all changes
--signaloption ... support numbers and ideally
- make percent a float
--restartoption to not kill but restart ... maybe don't since this is tricky / needs a limit