how to find how long a process is sleeping?
Hi Gurus
My servers are showing that quite large number of processes are in sleeping mode. But couldnt find how long the processess are in sleep mode. Can someone tell me how to find this? OS: RHEL server release 5.4 HW: X86_64 Quote:
|
If you do 'ps -aux', it will show starting time of all processes and there you can identify which process is running long time.
|
1 Attachment(s)
hi
thanks for the reply. But when i do "ps -aux" now, it shows "2011" as the process start time, instead of giving exact "date & time". And also i couldnt understand the status like "Ss" "SN" "S<" "S+" "S<s""SsL""S<sl""S<Ls""Ss+". My intention is to kill the process which is sleeping for so long time and it shouldnt affect the Operating systems operations too.. Please find the attachment. |
Use :
# ps -eo pid,cmd,etime will output all processes, with formatters to get PID, command run, and elapsed time. |
Quote:
Code:
#jobs Code:
#ps -u | grep T Code:
#kill -9 pid no. |
All times are GMT -5. The time now is 03:46 PM. |