Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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..
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
First of all have a look of all the processes which are running in background or stopped
Code:
#jobs
#ps -u | grep T <---will look for stopped process and show you the time as well
#ps -u | grep Z <--will lookout for zombie process
for example
Code:
#ps -u | grep T
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2210 0.1 0.0 4244 756 pts/1 T 22:23 0:00 cp -i /yum/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.