Install ruby-unicorn-worker-killer by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-unicorn-worker-killer
Description:
library to kill unicorn workers by memory and request counts
unicorn-worker-killer gem provides automatic restart of Unicorn workers based on 1. max number of requests, and 2. process memory size (RSS) without affecting any requests. . This will greatly improves site's stability by avoiding unexpected memory exhaustion at the application nodes.
Homepage: https://github.com/kzk/unicorn-worker-killer
Version: 0.4.4-1
Section: universe/ruby