Home > OS >  System to be suspended code, how to find the root cause
System to be suspended code, how to find the root cause

Time:10-02

Everybody is good, ask a Linux maintenance problems, thank you

After the system was hung code kill process, normal for a few days, then disguised as another process, how to check the root cause,






CodePudding user response:

You can use lsof to check process to open the file, and then see if there are any timing task and so on

CodePudding user response:

reference 1st floor zhouchao6 response:
can use lsof to check process to open the file, and then see if there are any timing task etc.




Didn't check the timing task, but see start time, it is on the top of the hour

CodePudding user response:

refer to the second floor sky14789 response:
Quote: refer to 1st floor zhouchao6 response:

Can use lsof to check process to open the file, and then see if there are any timing task etc.




Didn't check the timing task, but see start time, it is on the top of the hour


Can use ll/proc/pid/exe pointing to the execution of the file, then check the file content, can find the source file
And kill processes, in addition you can try to see whether the next hour started again, and if so, check the hour the timing of tasks, including the content inside the script, generally this will be regular tasks to automatically start
In addition you baidu under someone else's process, much to learn from it,
  • Related