Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Process Problems

Direct answer

Process problems are processes that hang, crash, become zombies, use unexpected resources, or cannot be stopped.

When to use this

Use it when a process does not behave as expected.

First 30 seconds

1. ps -o pid,ppid,stat,etime,cmd -p <pid> — state?

2. D → I/O; Z → parent; T → stopped.

3. Crash → coredumpctl list and journalctl -u <svc>.

4. Hung → strace -p <pid> — what is it waiting on?

5. Restart through its unit.

Operational verification

process state → owner/unit → cause (I/O, parent, crash, loop) → fix → restart

Evidence · next step

For Linux Troubleshooting → Process Problems, continue with the first unproven Topic check: Capture PID, start time, executable/cmdline, parent, state, cgroup/unit and restart history. If that boundary is healthy, advance to the adjacent check: Inspect signals/exit/core evidence, wait channel/syscall/file/socket dependencies and resource limits. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it when a process does not behave as expected.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

Healthy evidence: process identity and lifecycle evidence explain the symptom, the causal dependency/policy is corrected, process remains in expected state and the original workload is stable.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Capture PID, start time, executable/cmdline, parent, state, cgroup/unit and restart history.

  • Inspect signals/exit/core evidence, wait channel/syscall/file/socket dependencies and resource limits.
  • Determine whether supervisor policy, upstream dependency or application defect drives the lifecycle symptom.
  • Correct the first failed dependency/policy, then verify stable process behavior and original workload across a representative interval.
Step 3 Commands Verify boundary
ps -eo pid,stat,cmd | awk '$2 ~ /Z|D/'
cat /proc/<pid>/stack
strace -p <pid>
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: kill -9 is used before evidence capture, PID reuse is ignored, zombie/D-state semantics are misunderstood, or supervisor restart masks repeated crashes.

Step 5 Common mistakes Narrow the fault
  • Trying to kill zombies (kill the parent instead).
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

Find its state and owner. D state → storage; Z → parent; crashes → journal and core dumps (coredumpctl). Stop through its systemd unit.

Key checks
  • journalctl -b -p err — errors this boot
  • systemctl --failed — failed units
  • df -h; df -i — space and inodes
  • ss -tulpn — listening sockets
  • dmesg -T | tail — recent kernel messages
ReferenceWhat it is1 section · depth on demand

Core model

Pin the exact PID/start time/executable/cgroup and distinguish process lifecycle from service-manager state. Correlate parent/child relationships, state, wait channel, signals/exit status, file/socket/resource dependencies and repeated restarts.

ReferenceImportant terms & boundaries4 sections · depth on demand

What this shows and what it does not

Process Problems owns cross-layer process-lifecycle isolation; Processes, systemd & Services, Performance and application branches own specialist mechanisms.

In depth

Process state tells you where to look

$ ps -eo pid,ppid,state,wchan:32,etime,comm | awk '$3 ~ /D|Z|T/'
  PID  PPID S WCHAN                            ELAPSED COMMAND
 4211     1 D nfs_wait_bit_killable           01:12:03 rsync
 5120  5101 Z -                               00:44:10 worker <defunct>

The proc_pid_stat manual lists the state codes (R, S, D, Z, T and others) reported in /proc/<pid>/stat.

StateMeaningNext step
RRunning or runnableCPU usage, perf top -p
SSleeping (interruptible) — normalOnly a problem if it should be working: what is it waiting for?
DUninterruptible sleep — usually I/Owchan and cat /proc/<pid>/stack (root); storage/NFS health. kill -9 does not help
ZZombie — exited, parent has not reaped itFix or restart the parent (PPID); zombies use no memory except a PID slot
TStopped (SIGSTOP / debugger)kill -CONT <pid> if unintended

What is the process doing?

QuestionCommand
Open files and socketsls -l /proc/<pid>/fd \| wc -l, lsof -p <pid>
Limits (open files, processes)cat /proc/<pid>/limits
System calls right nowstrace -f -tt -p <pid> (adds overhead)
Which service owns itsystemctl status <pid> or cat /proc/<pid>/cgroup
Environment and command linetr '\0' '\n' < /proc/<pid>/environ, cat /proc/<pid>/cmdline \| tr '\0' ' '
Threadsps -L -p <pid> -o tid,state,pcpu,comm

Too many open files

EMFILE errors mean the process hit Max open files in /proc/<pid>/limits. For a systemd service raise LimitNOFILE= in a drop-in; ulimit in a shell does not affect services.

Stopping processes correctly

1. systemctl stop <unit> for managed services — avoids automatic restarts.

2. kill -TERM <pid> and wait; check logs for clean shutdown.

3. kill -KILL <pid> only if it does not stop — data in memory is lost.

Processes in D state resolve when the underlying I/O completes or fails; a hung NFS server often explains dozens of D processes at once.

*The sample process table illustrates uninterruptible sleep and zombie states, not actual running processes.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Process Problems is part of Linux Troubleshooting → Process Problems. Process Problems isolates missing, stuck, zombie, uninterruptible, crashing or unexpectedly restarting Linux processes using identity, parentage, state, signals, resources, syscalls and supervisor context.

Topic-specific state model. Process Problems isolates missing, stuck, zombie, uninterruptible, crashing or unexpectedly restarting Linux processes using identity, parentage, state, signals, resources, syscalls and supervisor context.

Interpretation rule. - PID exists ≠ process is making progress.

  • D state ≠ kill -9 can terminate it immediately.
  • Zombie consumes a process slot ≠ zombie itself is using CPU.
  • Process restart ≠ fault trigger is removed.

Method

Process problems:

State (ps STAT)MeaningAction
DUninterruptible sleep (I/O)Find blocked storage/NFS: cat /proc/<pid>/stack
ZZombie (exited, not reaped)Fix/restart the parent
TStoppedkill -CONT
R with 100 % CPUBusy loopperf top, thread dump
ps -eo pid,ppid,stat,wchan:30,cmd | awk '$3 ~ /D|Z/'
ps -o pid,ppid,cmd --ppid <parent>
strace -fp <pid> -e trace=network,file
ls -l /proc/<pid>/fd | wc -l; cat /proc/<pid>/limits | grep 'open files'

Killing a D-state process does nothing until its I/O completes.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Process Problems owns cross-layer process-lifecycle isolation; Processes, systemd & Services, Performance and application branches own specialist mechanisms.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Linux Troubleshooting → Process Problems. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
linux process problemsstuck process linuxzombie process troubleshootingprocess keeps restarting
Embedded reference data

Quick lookup tables

Process Problems operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Process Problems.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateProcess Problems isolates missing, stuck, zombie, uninterruptible, crashing or unexpectedly restarting Linux processes using identity, parentage, state, signals, resources, syscalls and supervisor context.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin symptom + exact time + host/boot/user → define scope + expected baseline → preserve original failing test → collect targeted kernel/process/service/storage/network/security/log evidence → identify first divergent boundary → make one minimal reversible change → repeat original test → verify adjacent regressions and retain before/after evidence.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainsymptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture checkTrace requested/configured state through effective state to the observed workload result.
Failure boundaryProcess Problems troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux troubleshooting evidence can establish this proof path: symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture checkUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host, boot, process/user, dependency, time or workload scope. Process Problems troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven boundary: reproduce the exact original failure, collect the owning subsystem evidence at the same time, change only the proven cause or prerequisite, then repeat the original workload and regression checks.Continue to the next unresolved boundary while preserving the original test condition.

Process Problems · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryProcess Problems
Topic pathLinux Troubleshooting → Process Problems
Runtime stateProcess Problems isolates missing, stuck, zombie, uninterruptible, crashing or unexpectedly restarting Linux processes using identity, parentage, state, signals, resources, syscalls and supervisor context.
Fast checks- Capture PID, start time, executable/cmdline, parent, state, cgroup/unit and restart history. - Inspect signals/exit/core evidence, wait channel/syscall/file/socket dependencies and resource limits. - Determine whether supervisor policy, upstream dependency or application defect drives the lifecycle symptom. - Correct the first failed dependency/policy, then verify stable process behavior and original workload across a representative interval.
Verification chainsymptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryProcess Problems troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?