Feature #55
[System] killing subtleKnife process which had been stucked longer than 10min
Status: | New | Start date: | 09/26/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | - |
Description
- did some research, finally choose to achieve this by using the killall command
- adding cron jobs to epgg1,2,3, automatically kill every 30min
0/30 * * * * killall --older-than 10m subtleKnife
- Testing: the sleep was running for 18min, and was been killed by our command example
dli@sandbox1:~$ ps -eo pid,etime,comm,user,tty | grep sleep 28890 18:05 sleep dli pts/26 dli@sandbox1:~$ killall --older-than 10m sleep dli@sandbox1:~$ ps -eo pid,etime,comm,user,tty | grep sleep dli@sandbox1:~$