LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2014, 10:47 AM   #1
sudheergodgeri
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Question Help Me find and kill non local processes running for over 3 days on linux


I am running Oracle DB 10.2 on linux server.
EVerything is fine -but once saw continuous errors like 'unable to spawn /fork error ' for oracle user not being able to create new job queue slave process at os level.

Resolved it by killing processes having ftp -n text in it -- found 400 of them hanging !

So - I want to know how can i find and kill processes that are:
1) non local
2) idle for more than 3 days
3) having particular string ( like ftp ) in their
text
?
I plan to schedule this in a crontab script and run it every night.
 
Old 05-13-2014, 10:58 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,133

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
this mite help:
Code:
schneidz@xbmc:~$ ps auxw 
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  33896  3292 ?        Ss   May11   0:05 /sbin/init
root         2  0.0  0.0      0     0 ?        S    May11   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    May11   0:08 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   May11   0:00 [kworker/0:0H]
root         7  0.0  0.0      0     0 ?        S    May11   2:28 [rcu_sched]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kill processes which take up too much cpu usage after certain time of running. dmaksimov Linux - Newbie 7 03-25-2012 02:06 AM
[SOLVED] find and kill all zombie processes mahmoodn Linux - General 5 08-31-2011 02:32 AM
Many processes running since few days narendrakumar Linux - Newbie 2 04-12-2010 11:43 AM
how to find abandoned processes, and kill them all? jimmyjiang Red Hat 13 06-17-2008 12:10 PM
script/command to kill processes running on particular port varunbihani Linux - General 2 07-08-2005 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration