Diagnose Linux process and resource problems

8 steps · about 3 h 55 min · Intermediate

  1. Take a process snapshot (reference, Linux man-pages project, 30 min)

    Select stable fields for identity, parentage, state, CPU time and memory.

  2. Observe change over time (reference, Linux man-pages project, 30 min)

    Separate a brief spike from sustained CPU or memory pressure.

  3. Interpret memory availability (reference, Linux man-pages project, 25 min)

    Account for cache and available memory instead of treating all used memory as a leak.

  4. Find the right process safely (reference, Linux man-pages project, 25 min)

    Match explicit attributes and verify identifiers before acting on them.

  5. Check program identities (reference, Linux man-pages project, 20 min)

    Relate executable names to process identifiers while recognising scripts and namespaces.

  6. Inspect open resources (reference, Linux man-pages project, 35 min)

    Find files, sockets and devices that explain locks, traffic or failed cleanup.

  7. Trace system calls (reference, Linux man-pages project, 40 min)

    Observe where a process waits or fails while keeping tracing scope and overhead controlled.

  8. Signal with minimal disruption (reference, Linux man-pages project, 30 min)

    Request orderly termination first, confirm the result, and escalate only when necessary.