How to kill defunct zombie process


On Unix and Linux operating systems, a zombie process or defunct process is a process that has completed execution but still has an entry in the process table.

Oracle  Solaris:

  • Identify the process  IDs  of the defunct  process

#ps  -ecl|grep “Z”
  • kill the defunct  process  with  “preap” command

#preap  <PID>
  • If there are multiple zombi processes then use this command to kill all processes at once.

#ps -A | grep defunct | awk ‘{print $1}’ | xargs preap

Linux:

  • Identify the process  IDs  of the defunct  process

#ps -A -ostat,ppid | grep -e ‘[zZ]’ 
  • kill the defunct  process  with  “kill” command

#kill  -9 <PID>
  • If there are  multiple  zombi processes  then use  this command to kill  all  process at  once.

#for  i  in $(ps -A -ostat,ppid | grep -e ‘[zZ]’| awk ‘{ print $2 }’); do kill  -9  $i; done

HP-UX:

  • Identify process  IDs of the defunct  process

#ps -el | grep ‘Z’
  • kill defunct process with  “kill” command. But first, check zombi  process  parent ID

#ptree <PID>
#kill -9 <PID>   //some  cases  this  action doesn’t  work  . You need  to kill parent  ID. But  be carefull  when you  kill parent  ID. 
  • If there are multiple zombi processes then use this command to kill all processes at once.

#for  i  in $(ps -el | grep ‘Z’|grep  -v PID|awk  ‘{print $4}’); do kill  -9  $i; done   // be carefull before  run  command.

 

I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Turk Telekom. I provide hardware and software support for the IT Infrastructure and Operations tasks.

205 Total Posts
Follow Me

51 Comments

  1. buy viagra online australa liquid viagra viagra $50 http://genqpviag.com/ - authentic viagra ’

  2. viagra dosage instructions canadianlab viagra best deals on genaric viagra http://llviabest.com/ - viagra samples free by mail ’

  3. viagra cheap registered viagra with paypal viagra overnight shipping no prescription

  4. canadadrugs canadian online pharmacies pharmacy prices

  5. erection pills canadian prescription drugs web medical information

  6. generic viagra thru paypal price prescription drugs canada prescription plus pharmacy

  7. canadian pharmacy online viagra canadian pharmacies that are legit hiv

  8. skin care buy viagra uk overseas pharmacy forum

  9. generic viagra fast shipping buying viagra online in montreal viagra lowest priced

  10. buy cialis withiut a prescription http://llecialisjaw.com/ order cialis online cheap generic

  11. payday loan refund letter ace cash loan express loan till payday delmar de

  12. instant loans cash now how banks loan money cash money payday advance saginaw mi

  13. cash advance in alaska someone has taken a payday loan out in my name payday loans in perryville mo

  14. cialis 100 mg wiki cialis bathtub commercial youtube lowest prices for cialis

  15. cialis date de mise sur le marchГ© cialis and hypoglycemia phone number order cialis

  16. minute clinic viagra on line viagra cheap mastercard viagra sales australia

  17. purchasing viagra in usa california http://viagriyvik.com/ chdap viagra

  18. how long does viagra take to kick in reddit viagra viagra over the counter walgreens

  19. cialis without a prescription paypal order cialis 20mg cialis on line

  20. rat mites ivermectin ivermectin australia ivermectin for human head lice ivermectin skin cream how long to use

  21. ventolin rotacap cost of albuterol in canada allergic reaction to albuterol inhaler how to use albuterol sulfate inhaler

  22. ivermectin cattle buy ivermectin cream for humans does ivermectin kill barber pole worms how to treat chickens with ivermectin

  23. amoxicillin usage buy amoxicillin over the counter uk how often should you take amoxicillin amoxicillin allergy rash how long will it last

  24. ventolin aerosol ventolin order albuterol sulfate inhalation solution price when to take albuterol

  25. uti amoxicillin dosage how can you get amoxicillin can i drink alcohol while taking amoxicillin what are the side effects of amoxicillin and clavulanate potassium

  26. furosemide drugs buy lasix 100mg how long does furosemide take to work why is furosemide banned in sports

  27. pronounce furosemide buy lasix without a doctor’s prescription lasix for cats in renal failure what is lasix used to treat

  28. azithromycin gonorrhea zithromax online purchase can you take ibuprofen with azithromycin where can you buy azithromycin

  29. zithromax otc azithromycin 500mg price in india order zithromax over the counter what class of antibiotic is azithromycin

  30. clomid yeast infection online clomid clomid pills over the counter what is clomid made of

  31. doxycycline tablets cost of doxycycline canada doxycycline empty stomach or with food doxycycline dosage for acne how many days

  32. prednisolone acetate shortage prednisolone 15 mg prednisolone acetate 1 eye drops what is prednisolone sod phos 15mg 5ml soln used for

  33. doxycycline for epididymitis buy doxycycline 100mg capsule can doxycycline cause muscle pain why can't i lie down after taking doxycycline

  34. provera clomid clomid generic otc clomid for womens for sale where to buy clomid online

  35. prednisolone and cats prednisolone 5mg tablets cost switching from prednisone to prednisolone arm pain when lifting arm "deltoid" area prednisolone

  36. priligy online pharmacy how to get priligy in usa order priligy online usa reddit where buy priligy

  37. https://thesisacloud.com/ - buy thesis online thesis titles help writing a thesis statement write a good thesis

  38. https://thesisacloud.com/ - online thesis writing thesis binding help with writing a thesis research thesis

  39. http://essaywriteris.com/ - write my essay for me cheap expert essay writers my essay writer best online essay writer

  40. https://kloviagrli.com/ - viagra in stores https://vigedon.com/ - female viagra effects https://llecialisjaw.com/ - cialis 20 mg price costco https://jwcialislrt.com/ - cialis for daily use https://jecialisbn.com/ - brand cialis

  41. synthroid hot flashes synthroid generic what is a high dose of synthroid what happens when your synthroid dose is too high?

  42. propecia dangers propecia 1 mg for sale how to get a propecia prescription what happens if a woman takes propecia

  43. https://thesiswritingtob.com/ - best thesis writing services help with thesis statement thesis editing services thesis writing service

  44. prednisolone dosage prednisolone online prednisolone acetate eye drop price how do you pronunce prednisolone

  45. neurontin picture buy gabapentin without prescription does neurontin work for anxiety what is gabapentin 800 mg

  46. metformin dosing metformin 2018 is metformin bad for your kidneys metformin overdose how much

  47. paxil commercial buy paxil online effects of gastric bypass on paxil what is the difference between paxil and paroxetine

  48. paxil or lexapro paroxetine 7.5 mg generic paxil 50 mg side effects how much is paxil without insurance

  49. plaquenil and sulfa what is plaquenil taken for what is plaquenil used for in lyme what are the long term side effects of plaquenil

  50. https://thesisacloud.com/ - thesisacloud.com thesis proposal example thesisacloud.com best thesis writing service

  51. https://thesiswritingtob.com/ - thesiswritingtob.com thesis abstracts thesiswritingtob.com thesis binding

Leave a Reply