terminal.cab

Linux Basics Lesson 27 of 38

guestLevel 1Badges and progress0/100 XP, XP to the next levelStreak0

03:12, was it the OOM killer?

Detective 100 XP

10 minutes

Learning goals

The tools from this module are ready, with a few limits on this page. sudo, systemctl and grep are not loaded: sudo and systemctl answer with a hint, and grep with command not found. You do not need them here. journalctl is enough, because lerner is in the group adm. dmesg fails without root, as it does on Debian in general.

On a real server, the usual ways are sudo dmesg | grep -i oom and systemctl status app. Keep them in mind for the day it counts.

Steps

Step 1/4: Get the proof from the kernel log. You are looking for the line in which the kernel names the process it killed.

Detective 100 XP

At 03:12 the alarm went off: the app was gone. The early shift started it again at six, and now it is 09:30 and the ticket asks one question: a crash, a failed deploy, or the OOM killer? You are supposed to prove it. A guess will not do.

  1. Step 1

    Get the proof from the kernel log. You are looking for the line in which the kernel names the process it killed.

  2. Step 2

  3. Step 3

  4. Step 4

Loading terminal …

lerner@web-01: ~bash
lerner@web-01:~$

Esc, then Tab leaves the terminal

Step 1 of 4

Cards

  1. Card 1 of 2

    Tap the card or press Space to turn it over.

  2. Card 2 of 2

    Tap the card or press Space to turn it over.

Cheat sheet

The most important command lines of this module on one A4 page, black and white, to print or keep on your phone.