<?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: I can´t kill a process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888172#M281055</link>
    <description>Andy&lt;BR /&gt;I tried with ndd -get /dev/tcp an I just obtain "operation failed, Invalid argument" as result. When I execute lsof -i | grep 8380 (the port) I donÂ´t get anything as result. Can you help me?&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Ricardo.</description>
    <pubDate>Fri, 27 Oct 2006 16:36:56 GMT</pubDate>
    <dc:creator>Ricardo R Peirano</dc:creator>
    <dc:date>2006-10-27T16:36:56Z</dc:date>
    <item>
      <title>I can´t kill a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888167#M281050</link>
      <description>I can´t kill a process. I tried with kill -9 and it didn´t response. The process is a Jboss app and what i can see is that it has some connections like this:&lt;BR /&gt;thuxwas0:/opt/jboss4.0.2/server/Sigma/log# netstat -an | grep 8380          &lt;BR /&gt;tcp        0      0  10.250.0.71.8380       10.250.0.71.53013       CLOSE_WAIT&lt;BR /&gt;tcp        0      0  *.8380                 *.*                     LISTEN&lt;BR /&gt;tcp        0      0  10.250.0.71.53013      10.250.0.71.8380        FIN_WAIT_2&lt;BR /&gt;&lt;BR /&gt;I do´t know what i have to do to kill the process. The 10.250.0.71 ip is the server ip. It's a HPUX 11.11.&lt;BR /&gt;&lt;BR /&gt;Regards, RIcardo</description>
      <pubDate>Fri, 27 Oct 2006 12:09:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888167#M281050</guid>
      <dc:creator>Ricardo R Peirano</dc:creator>
      <dc:date>2006-10-27T12:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: I can´t kill a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888168#M281051</link>
      <description>Hi Ricardo:&lt;BR /&gt;&lt;BR /&gt;If a process won't terminate using a 'kill -9' then it is in kernel code waiting on an event.  A process waiting to complete an I/O is an example of one such situation.&lt;BR /&gt;&lt;BR /&gt;You can try killing the parent process.  &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 27 Oct 2006 12:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888168#M281051</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-10-27T12:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: I can´t kill a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888169#M281052</link>
      <description>Hi Ricardo,&lt;BR /&gt;&lt;BR /&gt;If the ppid is 1 (init), the process is an orphan.  You will have to reboot to get rid of it.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 27 Oct 2006 12:45:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888169#M281052</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-27T12:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: I can´t kill a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888170#M281053</link>
      <description>Ricardo,&lt;BR /&gt;&lt;BR /&gt;If there is not way to kill it, then the only solution is the reboot, schedule a down time and you are done. Also if you can not schedule it, and is consumen a lot of your resources, reniceing the process also helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Fri, 27 Oct 2006 12:58:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888170#M281053</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-10-27T12:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: I can´t kill a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888171#M281054</link>
      <description>Have you tried to close the port by using lsof or ndd?&lt;BR /&gt;&lt;BR /&gt;ndd -get /dev/tcp tcp_status | grep (the ip or port #)&lt;BR /&gt;&lt;BR /&gt;ndd -set /dev/tcp tcp_discon (the hex address)</description>
      <pubDate>Fri, 27 Oct 2006 15:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888171#M281054</guid>
      <dc:creator>Sheriff Andy</dc:creator>
      <dc:date>2006-10-27T15:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: I can´t kill a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888172#M281055</link>
      <description>Andy&lt;BR /&gt;I tried with ndd -get /dev/tcp an I just obtain "operation failed, Invalid argument" as result. When I execute lsof -i | grep 8380 (the port) I donÂ´t get anything as result. Can you help me?&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Ricardo.</description>
      <pubDate>Fri, 27 Oct 2006 16:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888172#M281055</guid>
      <dc:creator>Ricardo R Peirano</dc:creator>
      <dc:date>2006-10-27T16:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: I can´t kill a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888173#M281056</link>
      <description>I worked this ndd with my boss yesterday so it is a little fresh in my memory.  I can't take credit for this, but hope it helps.  This has helped us in some instances, but you may still need to reboot.&lt;BR /&gt;&lt;BR /&gt;Use caution when running this and make sure you have the correct port.&lt;BR /&gt;&lt;BR /&gt;did you run the;&lt;BR /&gt;&lt;BR /&gt;# ndd -get /dev/tcp tcp_status | grep 10.250.000.071&lt;BR /&gt;&lt;BR /&gt;0000000048dbc868 010.250.000.071 971b7b36 971b7b36 000043ec 000132d0 4a2798a4 4a2798a4 00008000 00500 01460 [359c,7f9] TCP_ESTABLISHED&lt;BR /&gt;&lt;BR /&gt;0x48dbc868 in this case is the hex you need.&lt;BR /&gt;&lt;BR /&gt;You can disconnect by;&lt;BR /&gt;&lt;BR /&gt;# ndd -set /dev/tcp tcp_discon 0x48dbc868&lt;BR /&gt;&lt;BR /&gt;If you can't run the ndd -get /dev/tcp tcp_status command, it may have to do with too many user connections open.&lt;BR /&gt;&lt;BR /&gt;Hope that this helps.</description>
      <pubDate>Fri, 27 Oct 2006 17:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888173#M281056</guid>
      <dc:creator>Sheriff Andy</dc:creator>
      <dc:date>2006-10-27T17:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: I can´t kill a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888174#M281057</link>
      <description>When netstat shows CLOSE_WAIT or FIN_WAIT it means that the process tried to disconnect but it is waiting for a response from the other side, another words each party is waiting for the other to acknowlege the good-bye but nothing is happenning. I do have a script that cleans all of them up.&lt;BR /&gt;@@@@@@@@@@@@@&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# Hewlett-Packard Corporation&lt;BR /&gt;# This script is UNSUPPORTED.  Use at own risk.&lt;BR /&gt;# @(#)$Revision: 1.3 $   $Author: scotty $   $Date: 98/08/25 17:55:01 $&lt;BR /&gt;#&lt;BR /&gt;# This script will query the system for any TCP connections that&lt;BR /&gt;# are in the FIN_WAIT_2 state and forcibly disconnect them.  It&lt;BR /&gt;# uses netstat(1) to find the FIN_WAIT_2 connections and calls&lt;BR /&gt;# ndd with the correct hexidecimal representation of the connection&lt;BR /&gt;# to close the connection.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Temporary files used to compare netstat output&lt;BR /&gt;#&lt;BR /&gt;MYSCRIPTNAME=${0##*/}&lt;BR /&gt;TMPFILE1=/var/tmp/$MYSCRIPTNAME.1&lt;BR /&gt;TMPFILE2=/var/tmp/$MYSCRIPTNAME.2&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Create a log file to keep track of connection that were removed&lt;BR /&gt;#&lt;BR /&gt;LOGFILE=/var/adm/$MYSCRIPTNAME.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;function getFinWait2 {&lt;BR /&gt;&lt;BR /&gt;/usr/bin/printf "%.2x%.2x%.2x%.2x%.4x%.2x%.2x%.2x%.2x%.4x\n" \&lt;BR /&gt;$(/usr/bin/netstat -an -f inet | /usr/bin/grep FIN_WAIT_2 | \&lt;BR /&gt;/usr/bin/awk '{print $4,$5}' | /usr/bin/sed 's/\./ /g') &amp;gt; $TMPFILE1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function compareFinWait2 {&lt;BR /&gt;&lt;BR /&gt;FIRST_TIME=1&lt;BR /&gt;&lt;BR /&gt;cp $TMPFILE1 $TMPFILE2&lt;BR /&gt;getFinWait2&lt;BR /&gt;&lt;BR /&gt;comm -12 $TMPFILE1 $TMPFILE2 | \&lt;BR /&gt;while read CONN&lt;BR /&gt;do&lt;BR /&gt;        if [[ $CONN != "000000000000000000000000" ]]&lt;BR /&gt;        then&lt;BR /&gt;&lt;BR /&gt;                if [ $FIRST_TIME -eq 1 ]&lt;BR /&gt;                then&lt;BR /&gt;                        print &amp;gt;&amp;gt; $LOGFILE&lt;BR /&gt;                        date &amp;gt;&amp;gt; $LOGFILE&lt;BR /&gt;                        FIRST_TIME=0&lt;BR /&gt;                fi&lt;BR /&gt;&lt;BR /&gt;                print "/usr/bin/ndd -set /dev/tcp tcp_discon_by_addr \"$CONN\""&lt;BR /&gt;&amp;gt;&amp;gt; $LOGFILE&lt;BR /&gt;                /usr/bin/ndd -set /dev/tcp tcp_discon_by_addr $CONN&lt;BR /&gt;        fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;getFinWait2&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Main&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;touch $TMPFILE1&lt;BR /&gt;touch $TMPFILE2&lt;BR /&gt;&lt;BR /&gt;compareFinWait2&lt;BR /&gt;@@@@@@@@@@@@@&lt;BR /&gt;&lt;BR /&gt;Matthew From Boston</description>
      <pubDate>Sat, 28 Oct 2006 12:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/i-can-t-kill-a-process/m-p/3888174#M281057</guid>
      <dc:creator>Matthew Ghofrani</dc:creator>
      <dc:date>2006-10-28T12:05:55Z</dc:date>
    </item>
  </channel>
</rss>

