<?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: Recommendations: Defunct Processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879510#M400178</link>
    <description>Scott,&lt;BR /&gt;&lt;BR /&gt;Do you have anyone capable of writing a script to recognize new defuncs and time-tag them in a log file?  I've done similar scripts in the past and may be able to find them if you need a sample.&lt;BR /&gt;&lt;BR /&gt;With a little work you could probably receive an e-mail anytime a new defunc shows up.&lt;BR /&gt;&lt;BR /&gt;-dave</description>
    <pubDate>Tue, 11 Jan 2005 14:28:11 GMT</pubDate>
    <dc:creator>David DeWitt_2</dc:creator>
    <dc:date>2005-01-11T14:28:11Z</dc:date>
    <item>
      <title>Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879500#M400168</link>
      <description>We have a scripts that go out and check for defunct processes.  What should we do once we find them????  We typically have 3 or 4 servers with defunct processes but we don't know what action we should take with them.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Scott</description>
      <pubDate>Tue, 11 Jan 2005 13:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879500#M400168</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-11T13:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879501#M400169</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;Do a "ps -ef" and grep for defunt. Try a "kill -9 PID" to kill the defunt processes. you may be able to kill them or you may not. If you can't kill them, a reboot is the only way to clear them.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jan 2005 13:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879501#M400169</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-01-11T13:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879502#M400170</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;First you should beat your programmers soundly for leaving such sloppy code around.&lt;BR /&gt;&lt;BR /&gt;Second, you can try to kill them off.  Start with kill -15, then kill -11 and only resort to kill -9 out of desparation.  Sometimes, the processes won't die.  In that case, you can sometimes get rid of them by killing the parent.  However, if they're a zombie, their parent process ID is now 1 - init - and you don't want to kill that.&lt;BR /&gt;&lt;BR /&gt;You really should be spending more time on why you're getting defunct processes than you  are on cleaning them up.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 11 Jan 2005 13:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879502#M400170</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-01-11T13:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879503#M400171</link>
      <description>Pete,&lt;BR /&gt;&lt;BR /&gt;I understand, but when you are at the mercy of a major application vendor specific for hospital applications, beating them (although I would not be against that) really isn't an option.</description>
      <pubDate>Tue, 11 Jan 2005 13:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879503#M400171</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-11T13:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879504#M400172</link>
      <description>Hi Scott&lt;BR /&gt;&lt;BR /&gt;I always try kill -15 on the PID. This normally kills them. If that fails I use kill -9 with a 99% success rate.&lt;BR /&gt;&lt;BR /&gt;Cheers John</description>
      <pubDate>Tue, 11 Jan 2005 14:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879504#M400172</guid>
      <dc:creator>John McWilliams_1</dc:creator>
      <dc:date>2005-01-11T14:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879505#M400173</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;     If you're going to automate killing them (I wouldn't) you could probably add a log file to record things such as date/time, PID, Process Name.  That may help both if the kills start causing other problems and as evidence to the vendor.&lt;BR /&gt;&lt;BR /&gt;     Has the vendor admitted that their app creates defunct processes?&lt;BR /&gt;&lt;BR /&gt;-dave</description>
      <pubDate>Tue, 11 Jan 2005 14:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879505#M400173</guid>
      <dc:creator>David DeWitt_2</dc:creator>
      <dc:date>2005-01-11T14:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879506#M400174</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;OK, if beating them is only a fond dream, how about regular re-boots?  Do your uptime requirements allow for a nightly/weekly/fortnightly window where you could re-boot and clean up the processes that way?  It would be simple enough to cron a reboot job.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 11 Jan 2005 14:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879506#M400174</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-01-11T14:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879507#M400175</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;We are not looking to automate the killing, just curious about what our next steps might be.  I like you idea of a log file.  That would be nice.&lt;BR /&gt;&lt;BR /&gt;Scott</description>
      <pubDate>Tue, 11 Jan 2005 14:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879507#M400175</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-11T14:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879508#M400176</link>
      <description>Pete,&lt;BR /&gt;&lt;BR /&gt;Reboots are not an option.  We are fighting now trying to get a 2 hour maintenance window once a quarter.  Regular reboots would not fly.  I guess being a hospital makes a difference.  Our apps have to be up 24/7 for patient care.&lt;BR /&gt;&lt;BR /&gt;Scott</description>
      <pubDate>Tue, 11 Jan 2005 14:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879508#M400176</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-11T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879509#M400177</link>
      <description>I didn't really think that would work for you but had to suggest it.&lt;BR /&gt;&lt;BR /&gt;Sorry,&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 11 Jan 2005 14:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879509#M400177</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-01-11T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879510#M400178</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;Do you have anyone capable of writing a script to recognize new defuncs and time-tag them in a log file?  I've done similar scripts in the past and may be able to find them if you need a sample.&lt;BR /&gt;&lt;BR /&gt;With a little work you could probably receive an e-mail anytime a new defunc shows up.&lt;BR /&gt;&lt;BR /&gt;-dave</description>
      <pubDate>Tue, 11 Jan 2005 14:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879510#M400178</guid>
      <dc:creator>David DeWitt_2</dc:creator>
      <dc:date>2005-01-11T14:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879511#M400179</link>
      <description>Correct me if I'm wrong, but isn't defunct just an entry in the process table and not a running process? Killing defuncts makes no sense then, only killing their parent process may help to get rid of them.</description>
      <pubDate>Tue, 11 Jan 2005 14:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879511#M400179</guid>
      <dc:creator>Vitek Pepas</dc:creator>
      <dc:date>2005-01-11T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879512#M400180</link>
      <description>Vitek is quite correct; although defunct processes may be driving you (the admin) crazy, they only occupy a slot in the process table and consume no other resources beyond that. Sending a signal to them (kill) is utterly pointless. As others have indicated, the real solution is to prevent them in the first place. Often, user education is all that is needed. Instructing them in proper application exit procedures may greatly reduce your number of zombies. You should also make your application vendor aware of the issue; I always want to know when anything I've written has problems.&lt;BR /&gt;&lt;BR /&gt;What you really need to be on the lookout for is runaway processes (which can also result from improper termination/exit procedures) because unlike zombies, runaways can cripple your box.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jan 2005 14:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879512#M400180</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-01-11T14:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879513#M400181</link>
      <description>We have a script that looks at the output of top to determine runaway processes.  Is there any point in monitoring defunct processes based on Clay's response???</description>
      <pubDate>Tue, 11 Jan 2005 15:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879513#M400181</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-11T15:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879514#M400182</link>
      <description>You could monitor the number of defuncts. Large number may have impact on performance, due to extensive process table searches.&lt;BR /&gt;The limit of processes per user may also be exceeded because of defuncts.</description>
      <pubDate>Tue, 11 Jan 2005 15:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879514#M400182</guid>
      <dc:creator>Vitek Pepas</dc:creator>
      <dc:date>2005-01-11T15:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879515#M400183</link>
      <description>On any given day, we only see one defunct process.  We check this every 15 minutes (when we do our other system checks).</description>
      <pubDate>Tue, 11 Jan 2005 15:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879515#M400183</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-11T15:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879516#M400184</link>
      <description>In this case you have nothing to worry about.&lt;BR /&gt;&lt;BR /&gt;I work for one of the major hospital sofware companies myself - my advise: go get'em!</description>
      <pubDate>Tue, 11 Jan 2005 15:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879516#M400184</guid>
      <dc:creator>Vitek Pepas</dc:creator>
      <dc:date>2005-01-11T15:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879517#M400185</link>
      <description>Vitek,&lt;BR /&gt;&lt;BR /&gt;Hopefully, I didn't offend you!!&lt;BR /&gt;&lt;BR /&gt;Thanks for the advise.</description>
      <pubDate>Tue, 11 Jan 2005 15:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879517#M400185</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-11T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendations: Defunct Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879518#M400186</link>
      <description>Based on Clay and Vitek's responses, I don't believe we have anything to worry about.  More than likely we will just remove that piece of our monitoring script so we won't get notified every 15 minutes.&lt;BR /&gt;&lt;BR /&gt;Thanks!!!!&lt;BR /&gt;&lt;BR /&gt;Scott</description>
      <pubDate>Tue, 11 Jan 2005 15:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recommendations-defunct-processes/m-p/4879518#M400186</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-11T15:43:31Z</dc:date>
    </item>
  </channel>
</rss>

