Finding the age of a long-running Linux process and killing it

1136685 pts.
Tags:
Linux
Linux servers
Our team has a problem. We have several 'zombie-like' processes on our Linux server that need to be killed once in a while. Is there a way we can identify the processes that have run longer than an hour or so? Thanks!
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Brijesh
    You can use this command to list the process running for more than an hour ps -eo pid,pcpu,pmem,user,args,etime,cmd --sort=start_time | awk 'substr($0,54,2)>=1'
    14,450 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: