<?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: After kill -9? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736336#M66609</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For shared memory usage, use ipcs.&lt;BR /&gt;&lt;BR /&gt;Check for used shared memory segments and owners of these segments:&lt;BR /&gt;&lt;BR /&gt;# ipcs -b -m &lt;BR /&gt;&lt;BR /&gt;Check for used semaphores and owners of these semaphores:&lt;BR /&gt;&lt;BR /&gt;# ipcs -b -s&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Mon, 03 Jun 2002 15:13:26 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-06-03T15:13:26Z</dc:date>
    <item>
      <title>After kill -9?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736332#M66605</link>
      <description>Hi All:&lt;BR /&gt;&lt;BR /&gt;  I know kill -9 is bad and should be used as a last resort. But assume you have to do a kill -9 on all processes for a particular user, then how do I make sure that file descriptors are closed and shared memory is detached for those processes w/o rebooting. OR conversely how do I prove that the kill -9 has left some file descriptors open and the shared memory is not detached for those processes? Please voice your valuable thoughts.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 13:50:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736332#M66605</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2002-06-03T13:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: After kill -9?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736333#M66606</link>
      <description>Your best tool for this would be 'lsof'. This will list you all information you need. Download it and use it. Another command which will be useful will be 'fuser'&lt;BR /&gt;&lt;BR /&gt;# man fuser&lt;BR /&gt;# man lsof</description>
      <pubDate>Mon, 03 Jun 2002 13:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736333#M66606</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-06-03T13:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: After kill -9?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736334#M66607</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;If a process loses its memory or file sdescriptors to the never-never world, then the only way to reclaim them is via reboot.&lt;BR /&gt;&lt;BR /&gt;Using glance, lsof, and ipcs you should be able to "see" everything they have "open". If this situation is hibitual, I'd look into the root cause (what caused the hang).&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 03 Jun 2002 13:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736334#M66607</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-03T13:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: After kill -9?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736335#M66608</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;  Thanks. how can i find out what files are open and what shared memory resources are not released for any particular user?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Mon, 03 Jun 2002 15:10:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736335#M66608</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2002-06-03T15:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: After kill -9?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736336#M66609</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For shared memory usage, use ipcs.&lt;BR /&gt;&lt;BR /&gt;Check for used shared memory segments and owners of these segments:&lt;BR /&gt;&lt;BR /&gt;# ipcs -b -m &lt;BR /&gt;&lt;BR /&gt;Check for used semaphores and owners of these semaphores:&lt;BR /&gt;&lt;BR /&gt;# ipcs -b -s&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 03 Jun 2002 15:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736336#M66609</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-03T15:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: After kill -9?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736337#M66610</link>
      <description>Hi Brian&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The easiest way to do is to do a ps -aef | gerp on the  process name , generally speaking the -9 will kill the porcess id or leave some indresct process as zombies , or leave the one started on the ports , the best way to find the remanents of teh process is to check for the ps list with the pid of the process you killed. &lt;BR /&gt;&lt;BR /&gt;You can also try lsof from :&lt;BR /&gt;&lt;A href="ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/" target="_blank"&gt;ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this will list the opne files , proceeses associated with the PID. You can download the binary version from this site for 11.00 64 bit also.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 15:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736337#M66610</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-06-03T15:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: After kill -9?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736338#M66611</link>
      <description>Hi Manoj:&lt;BR /&gt;&lt;BR /&gt;  Actually we are killing the process via a logoff script which starts from the soft kill and then goes for the hard one. we also log that so that we know for which user we had to a hard kill. so i need to know based on userwise what user left what files open after this logoff and also what shared memory he has not released.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Mon, 03 Jun 2002 15:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736338#M66611</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2002-06-03T15:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: After kill -9?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736339#M66612</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To remove shared memory segments or semaphores of a particular user, use ipcrm.&lt;BR /&gt;&lt;BR /&gt;man ipcrm for more information.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 03 Jun 2002 16:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-kill-9/m-p/2736339#M66612</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-03T16:20:18Z</dc:date>
    </item>
  </channel>
</rss>

