How Do You Check If a Process Is Hung in Linux?
Contents You Can Run “Strace -P ” Command to Check If the Process Is Hung or Not. If It Is Running It Would Issue System Calls and Based on What System Call...
Contents
You can run “strace -p
How do I know if a process is hung Linux?
4 Answers
- run ps to find list of PIDs of the watched processes (along with exec time, etc)
- loop over the PIDs.
- start gdb attaching to the process using its PID, dumping stack trace from it using thread apply all where , detaching from the process.
- a process was declared hung if:
9 окт. 2013 г.
Must Read
How do you kill a hung process in Linux?
How to force kill process in Linux
- Use pidof command to find the process ID of a running program or app. pidoff appname.
- To kill process in Linux with PID: kill -9 pid.
- To kill process in Linux with application name: killall -9 appname.
17 апр. 2019 г.