Processes

Running a web application is essentially running a suite of related programs concurrently as processes. Spawning a program process can be as simple as typing its name into a terminal, but how do we ensure that this program won’t stop at some point? We need to take a closer look at what Linux processes are and how to bring them back to life from failures.Apart from leveraging systemd as a process manager, we’ll explore system resources like CPU and virtual memory, monitoring processes, and scheduling recurring programs’ runs. Learning how to debug any Linux process by inspecting emitted system calls will make us a little bit more confident to face production issues in the future.

Table of Contents

Computers

Daemons

Process Managers

Monitoring

/proc
ps
top and htop
w, pstree and uptime

Logging

Tracing

Termination

Capabilities

Niceness

Swap

Recurring Runs

Syncing Time

Summary

Buy for $50
Rated 36x five stars
Gumroad (as of Aug 3, 2023)
I am using some scripts I downloaded from Josef Strzibny's book that are setting up Ruby on Rails deployment and automatically installing a PostgreSQL server. I am also using Dokku, but I like the idea of controlling what is happening on the server.
Lucian Ghinda, Senior Ruby Developer