Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Killing Idle Processes....: (5 Items)
   
Killing Idle Processes....  
Hi ! Does anyone know how can I kill idle processes ? For example, I want to kill any process that has been idel for 
more than 1 hour. ¿What can I do to kill those processes?
I thanks in advance any help.... Víctor
Re: Killing Idle Processes....  
Hello Victor,
A process can be in one of the following states:

READY
BLOCKED
HELD
WAIT
DEAD

You can see something like this if you type
sin

Which ones do you want to kill and what is the purpose of such operation?
Regards,
Yuriy
Re: Killing Idle Processes....  
Hi Yuriy, thanks for your help. Look, I have problem with the number of open files simultaneusly. I have many points 
that telnet the QNX Server over Internet and in several ocasions the conexion downs and I don't know what happen with 
thoose processes and open files, but I think that stay "alive", occuping places of open files. And after a while if you 
want to exec a program you get the messesage: Too Many Open Files and you can't do it anything, and need to "kill" tasks
 that free resources that you can use it. I want "kill" those "hang processes" to realese resources. Victor
Re: Killing Idle Processes....  
Hello Victor,
It is worth while to check which processes open files and never close them.
Type

sin fds

The output will show files and devices opened by all processes.
Then it will be easier to decide which tasks (if any) should be terminated.
Regards,
Yuriy
Re: Killing Idle Processes....  
> Hi Yuriy, thanks for your help. Look, I have problem with the number of open 
> files simultaneusly. I have many points that telnet the QNX Server over 
> Internet and in several ocasions the conexion downs and I don't know what 
> happen with thoose processes and open files, but I think that stay "alive", 
> occuping places of open files. And after a while if you want to exec a program
>  you get the messesage: Too Many Open Files and you can't do it anything, and 
> need to "kill" tasks that free resources that you can use it. I want "kill" 
> those "hang processes" to realese resources. Victor


Check out the output if sin ti.  It will show for how long a process has been running and how much cpu time it used.  
The think is that telnet doesn't use much CPU, but if it's been up for 12 hours there be a problem ;-)