<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Killing Zombies through scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335664#M189765</link>
    <description>Defunct and zomnbie processor is not running processor with resource.&lt;BR /&gt;If it is not removed until the system reboot. moreover it will have resource.&lt;BR /&gt;It have little effect using kill command.&lt;BR /&gt;This is normal state. When the processor halt, it will remain in defunct state. But it occupy little space than address territory.&lt;BR /&gt;If you sent signal to processor, which is already halt, you cannot have an influence on it. this proccessor will remove when the proccessor stop, and it will remain defunct processor until system reboot.&lt;BR /&gt;For more information refer to 'kill' and 'wait' man page.&lt;BR /&gt;&lt;BR /&gt;And if you want to know system's cpu consumption use this command.&lt;BR /&gt;# UNIX95= ps -e -o "user,pcpu,args" | sort -rnk2 | more&lt;BR /&gt;&lt;BR /&gt;Aagin And this problem may solve to upgrade support plus in lastest version.&lt;BR /&gt;download site is below.&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/patch/releaseIndexPage.do?BC=patch.breadcrumb.main" target="_blank"&gt;http://www2.itrc.hp.com/service/patch/releaseIndexPage.do?BC=patch.breadcrumb.main&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Jul 2004 04:06:10 GMT</pubDate>
    <dc:creator>YoungHwan, Ko</dc:creator>
    <dc:date>2004-07-21T04:06:10Z</dc:date>
    <item>
      <title>Killing Zombies through scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335660#M189761</link>
      <description>Running on HP-UX 11.0&lt;BR /&gt;L class server&lt;BR /&gt;&lt;BR /&gt;Is there a way you can kill zombie processes without restarting the system? I was thinking about creating a shell script that finds the &lt;DEFUNCT&gt; processes and kills them a couple times each day through the crontab. Any suggestions? Below is a partial script I thought I might use. I may try it with -11 or -14 instead of the -9 though.&lt;BR /&gt;&lt;BR /&gt;ps -f |grep &lt;DEFUNCT&gt;|kill -9&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Doug&lt;/DEFUNCT&gt;&lt;/DEFUNCT&gt;</description>
      <pubDate>Mon, 19 Jul 2004 17:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335660#M189761</guid>
      <dc:creator>Doug_85</dc:creator>
      <dc:date>2004-07-19T17:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Killing Zombies through scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335661#M189762</link>
      <description>Doug,&lt;BR /&gt;&lt;BR /&gt;The term zombie process is derived affectionately based on the same concept of bodies which can not die. So, the short answer to your question is no. There is no way to kill a zombie process in short of a reboot. &lt;BR /&gt;&lt;BR /&gt;Having said that, not all &lt;DEFUNCT&gt; processes can be put into the zombie class. Some will disappear from the process listings after a while. &lt;BR /&gt;&lt;BR /&gt;If you are having issues with too many zombie processes are hanging around, you may need to get to the bottom of the problem and talke to the developers of the software running on your system if it is internal or call the vendor and ask for their suggestion if this is a package purchased form them.&lt;BR /&gt;&lt;BR /&gt;Sorry to be the bearer of the bad news.&lt;/DEFUNCT&gt;</description>
      <pubDate>Mon, 19 Jul 2004 18:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335661#M189762</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-07-19T18:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Killing Zombies through scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335662#M189763</link>
      <description>Hi Doug,&lt;BR /&gt;&lt;BR /&gt;As stated you *CAN'T* kill a zombie - BECAUSE THEY'RE ALREADY DEAD!!!!&lt;BR /&gt;&lt;BR /&gt;That being said - IF they've been inherited - as a parent by init - PID #1 - then it has routines to reap it's children periodically.&lt;BR /&gt;IF they still have the org parent PID, then someone - in development - needs to go back to coding school. That's just lazy, lousy programming - period. In that case a stout hickory handle seems to work best for me.....&lt;BR /&gt;&lt;BR /&gt;My 2 cents,&lt;BR /&gt;Jeff&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2004 18:18:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335662#M189763</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-07-19T18:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Killing Zombies through scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335663#M189764</link>
      <description>Try this script, it will kill all defunct process if there is no dependent link with a father zombie&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# --------------------------------------------------------------------------&lt;BR /&gt;# Fichier : Exp_KillPsDefunct.sh&lt;BR /&gt;# Action  : Suppresion des process zombies&lt;BR /&gt;# Entree  : &lt;BR /&gt;# Sortie  : &lt;BR /&gt;# Usage   : &lt;BR /&gt;# --------------------------------------------------------------------------&lt;BR /&gt;# Maintenance&lt;BR /&gt;# Date          Auteur  Action&lt;BR /&gt;# --------------------------------------------------------------------------&lt;BR /&gt;# 13/07/2004    TPA     Creation&lt;BR /&gt;# --------------------------------------------------------------------------&lt;BR /&gt;#set -x&lt;BR /&gt;L_FicLst=/tmp/exploit/tmp/Exp_KillPsDefunct.txt&lt;BR /&gt;L_FicShell=/tmp/exploit/tmp/Exp_KillPsDefunct.sh&lt;BR /&gt;L_FicLog=/tmp/exploit/log/Exp_KillPsDefunct.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# -- Raz &lt;BR /&gt;cat /dev/null &amp;gt; ${L_FicLst}&lt;BR /&gt;cat /dev/null &amp;gt; ${L_FicLog}&lt;BR /&gt;&lt;BR /&gt;echo " -----------------------------------------------------------------" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;L_NbPs=`ps -ef |grep defunct|grep -v grep |wc -l`&lt;BR /&gt;echo "Nombre de process defunct : ${L_NbPs}"&amp;gt;&amp;gt; ${L_FicLog}&lt;BR /&gt;&lt;BR /&gt;echo " -----------------------------------------------------------------" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;echo "- Action : `date +%H:%M:%S` : Constitution de la liste des process" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;echo " -----------------------------------------------------------------" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;ps -ef |grep defunct|grep -v grep &amp;gt; ${L_FicLst}&lt;BR /&gt;cat ${L_FicLst} &amp;gt;&amp;gt; ${L_FicLog}&lt;BR /&gt;&lt;BR /&gt;echo " -----------------------------------------------------------------" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;echo "- Action : `date +%H:%M:%S` : Constitution du shell" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;echo " -----------------------------------------------------------------" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;cat ${L_FicLst} |awk '{printf "kill -9 " $2 "\n"}' &amp;gt; ${L_FicShell}&lt;BR /&gt;cat ${L_FicShell} &amp;gt;&amp;gt; ${L_FicLog}&lt;BR /&gt;&lt;BR /&gt;echo " -----------------------------------------------------------------" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;echo "- Action : `date +%H:%M:%S` : Constitution du shell" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;echo " -----------------------------------------------------------------" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;chmod 777 ${L_FicShell} &lt;BR /&gt;&lt;BR /&gt;${L_FicShell} &amp;gt;&amp;gt; ${L_FicLog}&lt;BR /&gt;&lt;BR /&gt;echo " -----------------------------------------------------------------" &amp;gt;&amp;gt; ${L_FicLog} &lt;BR /&gt;L_NbPs=`ps -ef |grep defunct|grep -v grep |wc -l`&lt;BR /&gt;echo "Nombre de process defunct : ${L_NbPs}"&amp;gt;&amp;gt; ${L_FicLog}</description>
      <pubDate>Wed, 21 Jul 2004 03:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335663#M189764</guid>
      <dc:creator>PAVIC Thierry</dc:creator>
      <dc:date>2004-07-21T03:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Killing Zombies through scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335664#M189765</link>
      <description>Defunct and zomnbie processor is not running processor with resource.&lt;BR /&gt;If it is not removed until the system reboot. moreover it will have resource.&lt;BR /&gt;It have little effect using kill command.&lt;BR /&gt;This is normal state. When the processor halt, it will remain in defunct state. But it occupy little space than address territory.&lt;BR /&gt;If you sent signal to processor, which is already halt, you cannot have an influence on it. this proccessor will remove when the proccessor stop, and it will remain defunct processor until system reboot.&lt;BR /&gt;For more information refer to 'kill' and 'wait' man page.&lt;BR /&gt;&lt;BR /&gt;And if you want to know system's cpu consumption use this command.&lt;BR /&gt;# UNIX95= ps -e -o "user,pcpu,args" | sort -rnk2 | more&lt;BR /&gt;&lt;BR /&gt;Aagin And this problem may solve to upgrade support plus in lastest version.&lt;BR /&gt;download site is below.&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/patch/releaseIndexPage.do?BC=patch.breadcrumb.main" target="_blank"&gt;http://www2.itrc.hp.com/service/patch/releaseIndexPage.do?BC=patch.breadcrumb.main&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jul 2004 04:06:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335664#M189765</guid>
      <dc:creator>YoungHwan, Ko</dc:creator>
      <dc:date>2004-07-21T04:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Killing Zombies through scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335665#M189766</link>
      <description>Used to be able to kill most zombiew with:&lt;BR /&gt;&lt;BR /&gt;logfile=/tmp/killzombies.log&lt;BR /&gt;&lt;BR /&gt;for i in `ps -el|grep -v SZ|grep Z|awk '{print $5}'`&lt;BR /&gt;do&lt;BR /&gt;        ps -ef|grep -v grep|grep ${i} &amp;gt;&amp;gt;$logfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;        kill -18 ${i}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 21 Jul 2004 07:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335665#M189766</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-07-21T07:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Killing Zombies through scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335666#M189767</link>
      <description>In my past experience, zombie cannot be killed except reboot!</description>
      <pubDate>Wed, 21 Jul 2004 07:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-zombies-through-scripts/m-p/3335666#M189767</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2004-07-21T07:57:10Z</dc:date>
    </item>
  </channel>
</rss>

