Linux Process Monitoring/Diagnosis
PSTREE
- pstree -p
- Show procress tree with process number
PS
- ps ww 1234
- Show complete command
journalctl
https://wiki.ubuntuusers.de/systemd/journalctl/
Usage
- journalctl -k
- log of the last boot equivalent to dmesg
- journalctl -k --since "2 hours ago"
- all dmesg output in the last 2 hours
- journalctl --list-boots
- journalctl -p err -b
- show errors
Persist log
- vi /etc/systemd/journald.conf
- #Storage=auto
Storage=persistent
- #Storage=auto
- systemctl restart systemd-journald
atop
nice top with more features
dstat
Memory info
- dstat -sv