Pcornel
Linux · Linux Troubleshooting

Process Problems

Cheat sheet · https://pcornel.dk/topic.php?topic=2922

Back to the Topic

Answer

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

Remember

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

First 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

Commands

systemctl status <pid>
systemctl stop <unit>

Verify in this order

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

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2922

Confirmation

Confirm action

Continue?