Back to practice tasks

practice task

Check Memory Pressure Before Restarting

A server is slow and someone wants to restart the app. You need to see whether RAM, swap, or a specific process is the likely cause.

Independent study support only. No affiliation, endorsement, exam dumps, or guaranteed exam results.

Try first

free -h && ps aux --sort=-%mem | head

Goal

Read memory totals and identify the top memory consumers without changing service state.

Expected output

A memory summary with available RAM and swap usage, followed by the highest memory-consuming processes.

Teaches

Memory triage starts by distinguishing cache, available memory, swap activity, and process-level usage.

Common mistake

Reading Linux buff/cache as wasted memory or restarting the largest process without checking whether the system is actually under pressure.

command set

Commands to know

  1. free -h
  2. ps aux --sort=-%mem | head
  3. vmstat 1 5

Watch this command run

Example output from a temporary Linux lab

next practice

Review Failed SSH Logins

A public VPS has SSH exposed and you need to see whether failed login attempts are normal background noise or focused guessing against real usernames.