1832244 Members
3115 Online
110041 Solutions
New Discussion

Re: dead process

 
SOLVED
Go to solution
juno2
Super Advisor

dead process

our system often have some dead "vim" processes that run out of 99% CPU , how to prevent these dead process in the system ?
6 REPLIES 6
Kjartan Maraas
Valued Contributor

Re: dead process

You can kill the process with kill -9 (you'll find the pid using ps or top.

This isn't a long term solution of course and I'd check if there are newer versions of vim available that fixes the problem. Also, giving more details about your system makes it easier to give an accurate diagnosis of the problem.

Cheers
Kjartan
Umapathy S
Honored Contributor

Re: dead process

How do you say as dead processes. Are they defunct or zombies. If they are then killing wont help in clearing up the process tables.

I think they lost their control terminal and eating the CPU cycles. you can always kill them.

HTH
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Steven E. Protter
Exalted Contributor
Solution

Re: dead process

The process isn't dead unless its a zombie.

If system performance suffers, by all means kill it.

There is probably a configuration issue that is causing vim to use a lot of resources.

You might want to try some process tracing and try and figure out what the process is trying to do.

I had a process that was apparently orphaned and runaway on a HP box. The tusc utility shows me it kept reading and writing the same record over and over again.

I then killed it and asked the developer to kindly fix his program, which he did.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Douglass
Esteemed Contributor

Re: dead process

FYI - use strace under RH Linux to trace a process:


strace -p
juno2
Super Advisor

Re: dead process

when i run "strace -p " , then it continously pop up the error

--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---
"
"
"


what is the problem , pls help to suggest ? thx.
Umapathy S
Honored Contributor

Re: dead process

Please give the details about the pid. When did you run strace on that. Is it your program or vim as you already mentioned.

-Umapathy
Arise Awake and Stop NOT till the goal is Reached!