J
J
Jebati2019-07-20 16:47:47
linux
Jebati, 2019-07-20 16:47:47

How to determine if a process is hung?

Hello.
The goal is to determine the correct status of the process. Googling, I realized that it is impossible to custom determine that the process is frozen. But there are bash scripts to help solve this *(which doesn't bother me too much).
Tell me how to correctly determine whether the process is hung? Given that these are completely different programs that consume differently.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2019-07-20
@saboteur_kiev

the process must respond to something, or write logs.
Otherwise, you will not determine what exactly he is doing.
bash scripts cannot solve anything, you can simply send signals to the process or look at its parameters using bash scripts, but this can be done in other ways. It's just that bash scripts are usually the most accessible to the user.
You can try looking in /proc/, or through top,
or see exactly how those bash scripts you mention work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question