How To Install ruby-puma-worker-killer on Debian 12

Learn how to install ruby-puma-worker-killer on Debian 12 with this tutorial. ruby-puma-worker-killer is kill memory leaking puma workers

Introduction

In this tutorial we learn how to install ruby-puma-worker-killer on Debian 12.

What is ruby-puma-worker-killer

ruby-puma-worker-killer is:

Memory leaks in web code can be checked using puma_worker_killer.

When there is a memory leak in a code, finding and plugging it can be a herculean effort. Instead what if processes are just killed when they got to be too large? The Puma Worker Killer does just that. It is similar to Unicorn Worker Killer but for the Puma web server.

Puma worker killer can only function cluster mode or hybrid mode (threads + worker cluster) is enabled. If only using threads (and not workers) then puma worker killer cannot help keep memory in control.

There are three methods to install ruby-puma-worker-killer on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ruby-puma-worker-killer Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ruby-puma-worker-killer using apt-get by running the following command:

sudo apt-get -y install ruby-puma-worker-killer

Install ruby-puma-worker-killer Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-puma-worker-killer using apt by running the following command:

sudo apt -y install ruby-puma-worker-killer

Install ruby-puma-worker-killer Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ruby-puma-worker-killer using aptitude by running the following command:

sudo aptitude -y install ruby-puma-worker-killer

How To Uninstall ruby-puma-worker-killer on Debian 12

To uninstall only the ruby-puma-worker-killer package we can use the following command:

sudo apt-get remove ruby-puma-worker-killer

Uninstall ruby-puma-worker-killer And Its Dependencies

To uninstall ruby-puma-worker-killer and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove ruby-puma-worker-killer

Remove ruby-puma-worker-killer Configurations and Data

To remove ruby-puma-worker-killer configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge ruby-puma-worker-killer

Remove ruby-puma-worker-killer configuration, data, and all of its dependencies

We can use the following command to remove ruby-puma-worker-killer configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby-puma-worker-killer

Dependencies

ruby-puma-worker-killer have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-puma-worker-killer package on Debian 12 using different package management tools: apt, apt-get and aptitude.