<?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: Defunct processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237140#M329464</link>
    <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;Ya HP support guy told me that they consume resources and memory too, so I was confused. Anyways now its very much clear that they do not consume any memory or resource but they are not good for the system, right.&lt;BR /&gt;&lt;BR /&gt;Thank you !</description>
    <pubDate>Sun, 20 Jul 2008 20:08:57 GMT</pubDate>
    <dc:creator>Kavita Poonia</dc:creator>
    <dc:date>2008-07-20T20:08:57Z</dc:date>
    <item>
      <title>Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237132#M329456</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;There are some defunct processes running on server. I need to kill them all but when I am issuing the commands kill, kill -9, kill -15 and kill -s SIGKILL they are not getting killed. Because of these defunct processes memory utilization is very high on server, so I need to kill them all. &lt;BR /&gt;&lt;BR /&gt;Please suggest how to do this ?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot !&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kavita</description>
      <pubDate>Sun, 20 Jul 2008 17:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237132#M329456</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2008-07-20T17:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237133#M329457</link>
      <description>Hi Kavita:&lt;BR /&gt;&lt;BR /&gt;You are very much mistaken about 'defunct' processes consumming memory, or any resources of any kind.  They take up an item in the process table and the process table only.  This is clearly spelled out in the 'PS' man page.  Or, search the itrc with the pattern 'defunct'.&lt;BR /&gt;&lt;BR /&gt;You can try killing the parent or PPID.  This often works.  But the source of the problem is poor coding.</description>
      <pubDate>Sun, 20 Jul 2008 17:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237133#M329457</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-07-20T17:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237134#M329458</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Killing the defunc processes would only be soothing the problem for a short while. You need to look into the problem at the root.&lt;BR /&gt;&lt;BR /&gt;are the processes associated to a specific user in all cases?&lt;BR /&gt;&lt;BR /&gt;revert!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Sun, 20 Jul 2008 17:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237134#M329458</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-07-20T17:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237135#M329459</link>
      <description>Thanks a lot Michael !&lt;BR /&gt;&lt;BR /&gt;Ya I did know that defunct processes do not utilize the memory but some HP guys told me that they do, so I was confused. And why generally people suggest to kill defunct processes when they do not utilize any resource.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Jul 2008 17:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237135#M329459</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2008-07-20T17:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237136#M329460</link>
      <description>Thanks a lot Yogeeraj !&lt;BR /&gt;&lt;BR /&gt;Actually I do not have any other option, instead of killing them as we have recycled all the applications which are utilizing more memory. The memory utilization reduced at that time but after sometime it has again rised.&lt;BR /&gt;&lt;BR /&gt;Its Parent Process is the process with the name "wrapper". I think it is a process associated with java application and we have lots of java application running on this server.</description>
      <pubDate>Sun, 20 Jul 2008 17:59:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237136#M329460</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2008-07-20T17:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237137#M329461</link>
      <description>You can't kill a defunct process because it is already killed. It appears in the ps listing only because it was improperly handled by it's parent. A quick Google search will confirm that thousands of defunct processes will consume no resources at all except an entry in the process table. Of course, very bad programming could cause a runaway which then fill the process table so go after the programmers and fix the broken code.&lt;BR /&gt; &lt;BR /&gt;Meanwhile, memory consumption is fairly easy to see. Just ask ps to tell you:&lt;BR /&gt; &lt;BR /&gt;UNIX95=1 ps -eo vsz,pid,ppid,args | sort -rn | head -20&lt;BR /&gt; &lt;BR /&gt;Type this exactly as shown and the biggest (local) memory consumers will be seen. For shared memory, use this command:&lt;BR /&gt; &lt;BR /&gt;ipcs -bmop | sort -rnk8&lt;BR /&gt; &lt;BR /&gt;The segsz column is memory consumed by shared memory.</description>
      <pubDate>Sun, 20 Jul 2008 19:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237137#M329461</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-07-20T19:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237138#M329462</link>
      <description>An HP Support Guy told you That!&lt;BR /&gt;&lt;BR /&gt;HP Support has been going down hill steadily and I'm very sorry to here this.  They have been removing all of their valuble people and replacing them with people they found on the sidewalk and paying them 15 cents and hour.</description>
      <pubDate>Sun, 20 Jul 2008 19:33:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237138#M329462</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-07-20T19:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237139#M329463</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your reply. It was really helpful. The java processes are consuming lots of memory on server.</description>
      <pubDate>Sun, 20 Jul 2008 20:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237139#M329463</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2008-07-20T20:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237140#M329464</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;Ya HP support guy told me that they consume resources and memory too, so I was confused. Anyways now its very much clear that they do not consume any memory or resource but they are not good for the system, right.&lt;BR /&gt;&lt;BR /&gt;Thank you !</description>
      <pubDate>Sun, 20 Jul 2008 20:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237140#M329464</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2008-07-20T20:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237141#M329465</link>
      <description>Hi Kavita:&lt;BR /&gt;&lt;BR /&gt;I'm very sorry for your experience with HP support.  They're suppose to be where you go for the final answer to your problems.  I have used them as references in committee meetings for years always with the comment,  "...this is what the manufacturer recommends..".&lt;BR /&gt;&lt;BR /&gt;Use to be you there was a philosophy to 'capture the information from the source' in IT because the source is where you find the answer.  Well, hp is the source and they didn't provide you with an answer to a problem thats decades old.&lt;BR /&gt;&lt;BR /&gt;As for your question, I think both Bill and I have given the correct information.  'defunct' processes only take up an entry in the process or ps table and exist due to poor programming clean up.  Also, the UNIX95 command is one of my favorites.  I'm glad Bill provided it.  Store it away and use it daily, or when you're trouble shooting a problem box.  Refer to the man page for 'ps' and note the -o arguements for a variety of reporting information.  Like pcpu, vsz, rsz, time, state, etc.</description>
      <pubDate>Sun, 20 Jul 2008 21:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237141#M329465</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2008-07-20T21:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237142#M329466</link>
      <description>You might want to also search the forum for zombies.  In your case the zombie master is "wrapper".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;but they are not good for the system&lt;BR /&gt;&lt;BR /&gt;Well, you'll need to decide whether the zombie master is worth more dead than alive, until you get it recoded.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1241242" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1241242&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1225465" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1225465&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1219060" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1219060&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1186347" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1186347&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1145648" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1145648&lt;/A&gt;</description>
      <pubDate>Mon, 21 Jul 2008 00:51:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237142#M329466</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-21T00:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237143#M329467</link>
      <description>Hi Kavita&lt;BR /&gt;&lt;BR /&gt;If you find that process is in Defunc State and memory has not bern released you can use&lt;BR /&gt;IPCS to release memory.&lt;BR /&gt;Yes you are right if there are soo many defunc processes are there in system than they  consume memory.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sanjeev</description>
      <pubDate>Mon, 21 Jul 2008 05:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237143#M329467</guid>
      <dc:creator>Sharma Sanjeev</dc:creator>
      <dc:date>2008-07-21T05:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237144#M329468</link>
      <description>&amp;gt;Sanjeev: memory has not ben released you can use ipcrm(1) to release memory.&lt;BR /&gt;&lt;BR /&gt;I assume that zombies have already decremented the shmmem counts.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if there are so many zombies ... they consume memory.&lt;BR /&gt;&lt;BR /&gt;Only the trivial amount for the process table slots.</description>
      <pubDate>Mon, 21 Jul 2008 05:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237144#M329468</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-21T05:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237145#M329469</link>
      <description>Thanks a lot Michael !&lt;BR /&gt;&lt;BR /&gt;Thanks a lot Dennis. I have gone through those forums, they were really helpful. Ya you are right wrapper is the zombie process.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot Sanjeev. Ya the memory is not released. I need to clear those defunct processes. But I do know the proper use of IPCS.......I mean how to use it for releasing memory which are consumed by these defunct processes.</description>
      <pubDate>Mon, 21 Jul 2008 19:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237145#M329469</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2008-07-21T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237146#M329470</link>
      <description>Releasing shared memory segments is easy: man ipcrm&lt;BR /&gt; &lt;BR /&gt;Knowing which ones are truly idle and unused is a lot harder. Shared memory segments are created by a program and then the segment information is shared with other programs. All the programs share these memory areas until they terminate. If the programs are killed improperly, none of the segments will be released.&lt;BR /&gt; &lt;BR /&gt;Use the options: ipcs -bmop&lt;BR /&gt; &lt;BR /&gt;Then look at NATTACH, CPID, LPID:&lt;BR /&gt;NATTACH = number of process attached to the segment&lt;BR /&gt;CPID = PID of the creator of the segment&lt;BR /&gt;LPID = PID of the last process to attach or detach&lt;BR /&gt; &lt;BR /&gt;If NATTACH is 0 and the LPID and CPID do not point to a running process, you can probably remove the segment with ipcrm. On a running system with correctly running processes, using ipcrm can be a bit risky. If you remove the wrong segment, processes using that segment will likely crash. It would be a lot safer to reboot. Then be quite careful about using kill as root, and never use kill -9 except as a last resort. kill -9 will not allow processes to clean up properly (as in: release shared memory).</description>
      <pubDate>Tue, 22 Jul 2008 01:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237146#M329470</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-07-22T01:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237147#M329471</link>
      <description>&amp;gt;Because of these defunct processes memory utilization is very high on server&lt;BR /&gt;&lt;BR /&gt;Are you sure this memory use is due to the zombies?  You may find there is another problem.  You didn't use "kill -9" and have it work?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Ya you are right wrapper is the zombie process.&lt;BR /&gt;&lt;BR /&gt;Zombie master.&lt;BR /&gt;&lt;BR /&gt;Bill: It would be a lot safer to reboot.&lt;BR /&gt;&lt;BR /&gt;Then you might as well try killing the zombie master.</description>
      <pubDate>Tue, 22 Jul 2008 04:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237147#M329471</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-22T04:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237148#M329472</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I see the issue is discussed in very detail. Some times the below steps helps to find out what is going on with the zombie one&lt;BR /&gt;&lt;BR /&gt;ps -el|grep defunct&lt;BR /&gt;truss -v all -cfp&lt;PROCESS-ID&gt;&lt;BR /&gt;lsof -p&lt;PPID&gt;&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;/PPID&gt;&lt;/PROCESS-ID&gt;</description>
      <pubDate>Tue, 22 Jul 2008 11:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237148#M329472</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-07-22T11:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237149#M329473</link>
      <description>&amp;gt;Rasheed: Some times the below steps helps to find out what is going on with the zombie&lt;BR /&gt;&lt;BR /&gt;tusc won't work on zombies, they are dead.&lt;BR /&gt;lsof -p&lt;PPID&gt; is probably useless since the files opened by the zombie master wouldn't have much of a relation to the zombie.&lt;/PPID&gt;</description>
      <pubDate>Tue, 22 Jul 2008 15:09:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237149#M329473</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-22T15:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237150#M329474</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Thanks for you reply.&lt;BR /&gt;&lt;BR /&gt;ebzwls01:/home # ipcs -bmop&lt;BR /&gt;IPC status from /dev/kmem as of Tue Jul 22 17:45:31 2008&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NATTCH  SEGSZ  CPID  LPID&lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c0231 --rw-rw-rw-      root      root      0    348   788 13066&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      1  31040   788 13066&lt;BR /&gt;m       2 0x41202509 --rw-rw-rw-      root      root      1   8192   788 13066&lt;BR /&gt;m    4611 0x0c6629c9 --rw-r-----      root      root      2 19068672  1729 11959&lt;BR /&gt;m       4 0x06347849 --rw-rw-rw-      root      root      1  77384  1729  1829&lt;BR /&gt;m    1541 0x49182e06 --rw-r--r--      root      root      0  22908  1723  1829&lt;BR /&gt;ebzwls01:/home # ps -ef|grep -i 1829&lt;BR /&gt;    root  1829     1  0  Feb 10  ?        477:51 /opt/perf/bin/scopeux&lt;BR /&gt;ebzwls01:/home # ps -ef|grep -i 13066&lt;BR /&gt;    root 13214  6494  0 17:54:20 pts/tb    0:00 grep -i 13066&lt;BR /&gt;ebzwls01:/home #&lt;BR /&gt;&lt;BR /&gt;I have run ipcs -bmop command and the output pasted as above. There are two LPIDs for which NATTACH is 0. The LPID=1892 is running on server but LPID=13066 is not running.&lt;BR /&gt;&lt;BR /&gt;Now what should I do ?</description>
      <pubDate>Tue, 22 Jul 2008 20:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237150#M329474</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2008-07-22T20:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237151#M329475</link>
      <description>Thanks Dennis for your reply.&lt;BR /&gt;&lt;BR /&gt;Thanks Rasheed too........</description>
      <pubDate>Tue, 22 Jul 2008 21:04:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/defunct-processes/m-p/4237151#M329475</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2008-07-22T21:04:30Z</dc:date>
    </item>
  </channel>
</rss>

