Use it when a process does not behave as expected.
Process Problems
Process problems are processes that hang, crash, become zombies, use unexpected resources, or cannot be stopped.
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.
process state → owner/unit → cause (I/O, parent, crash, loop) → fix → restart
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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
Find its state and owner. D state → storage; Z → parent; crashes → journal and core dumps (coredumpctl). Stop through its systemd unit.
journalctl -b -p err— errors this bootsystemctl --failed— failed unitsdf -h; df -i— space and inodesss -tulpn— listening socketsdmesg -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.
| State | Meaning | Next step |
|---|---|---|
| R | Running or runnable | CPU usage, perf top -p |
| S | Sleeping (interruptible) — normal | Only a problem if it should be working: what is it waiting for? |
| D | Uninterruptible sleep — usually I/O | wchan and cat /proc/<pid>/stack (root); storage/NFS health. kill -9 does not help |
| Z | Zombie — exited, parent has not reaped it | Fix or restart the parent (PPID); zombies use no memory except a PID slot |
| T | Stopped (SIGSTOP / debugger) | kill -CONT <pid> if unintended |
What is the process doing?
| Question | Command |
|---|---|
| Open files and sockets | ls -l /proc/<pid>/fd \| wc -l, lsof -p <pid> |
| Limits (open files, processes) | cat /proc/<pid>/limits |
| System calls right now | strace -f -tt -p <pid> (adds overhead) |
| Which service owns it | systemctl status <pid> or cat /proc/<pid>/cgroup |
| Environment and command line | tr '\0' '\n' < /proc/<pid>/environ, cat /proc/<pid>/cmdline \| tr '\0' ' ' |
| Threads | ps -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.*
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) | Meaning | Action |
|---|---|---|
D | Uninterruptible sleep (I/O) | Find blocked storage/NFS: cat /proc/<pid>/stack |
Z | Zombie (exited, not reaped) | Fix/restart the parent |
T | Stopped | kill -CONT |
R with 100 % CPU | Busy loop | perf 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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.
Quick lookup tables
Process Problems operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Process Problems.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Process 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 verification | Pin 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 chain | symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | 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. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated 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 check | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It 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 check | Continue 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 boundary | Process Problems |
|---|---|
| Topic path | Linux Troubleshooting → Process Problems |
| Runtime state | Process 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 chain | symptom + 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 boundary | 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. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |