<?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: FIN_WAIT_2 Connections in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999550#M126147</link>
    <description>Hi,&lt;BR /&gt;for the HPUX site you can change all this values using &lt;BR /&gt;ndd&lt;BR /&gt;&lt;BR /&gt;there are a lot of other thread with full specs about the parameter and their use.&lt;BR /&gt;&lt;BR /&gt;ndd -h supported&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;ndd -h unsupported&lt;BR /&gt;&lt;BR /&gt;to have the simple list...&lt;BR /&gt;&lt;BR /&gt;  HTH,&lt;BR /&gt;   Massimo&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Jun 2003 13:26:19 GMT</pubDate>
    <dc:creator>Massimo Bianchi</dc:creator>
    <dc:date>2003-06-17T13:26:19Z</dc:date>
    <item>
      <title>FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999548#M126145</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a server running HPUX 11.00 that has a Microslop server connecting to it.&lt;BR /&gt;&lt;BR /&gt;We seem to have a lot(407) of FIN_WAIT_2 connections when I run a netstat -a.&lt;BR /&gt;&lt;BR /&gt;I've read that this is known problem from Microsoft servers and also the default timeout is 10 minutes for FIN_WAIT_2's on Solaris, is HPUX the same? Is it possible for me to change the default timeout to something like 3 minutes, if so what kind of impacts will this have and how do I do it? &lt;BR /&gt;&lt;BR /&gt;If there are any other recommended solutions (short of hitting the Microsoft box with a hammer!)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Colin.</description>
      <pubDate>Tue, 17 Jun 2003 13:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999548#M126145</guid>
      <dc:creator>Warren griggs</dc:creator>
      <dc:date>2003-06-17T13:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999549#M126146</link>
      <description>Hi Colin:&lt;BR /&gt;&lt;BR /&gt;# ndd -set /dev/tcp tcp_fin_wait_2_timeout 600000&lt;BR /&gt;&lt;BR /&gt;...since the timer's value is in milliseconds.  You will need to add this to '/etc/rc.config.d/ndd.conf' make this change "permanent".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2003 13:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999549#M126146</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-17T13:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999550#M126147</link>
      <description>Hi,&lt;BR /&gt;for the HPUX site you can change all this values using &lt;BR /&gt;ndd&lt;BR /&gt;&lt;BR /&gt;there are a lot of other thread with full specs about the parameter and their use.&lt;BR /&gt;&lt;BR /&gt;ndd -h supported&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;ndd -h unsupported&lt;BR /&gt;&lt;BR /&gt;to have the simple list...&lt;BR /&gt;&lt;BR /&gt;  HTH,&lt;BR /&gt;   Massimo&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2003 13:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999550#M126147</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-17T13:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999551#M126148</link>
      <description>If you use ndd to change a tcp value dont forget to put it in /etc/rc.config.d/nddconf or else you will lose it next time you reboot.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2003 13:28:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999551#M126148</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-06-17T13:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999552#M126149</link>
      <description>Thanks Guys.&lt;BR /&gt;&lt;BR /&gt;Can I do this while the server is being used or do I need to do this at a quiet time?&lt;BR /&gt;&lt;BR /&gt;Colin.</description>
      <pubDate>Tue, 17 Jun 2003 13:29:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999552#M126149</guid>
      <dc:creator>Warren griggs</dc:creator>
      <dc:date>2003-06-17T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999553#M126150</link>
      <description>You can use ndd on the fly - no need to do at a quiet time.</description>
      <pubDate>Tue, 17 Jun 2003 13:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999553#M126150</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-06-17T13:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999554#M126151</link>
      <description>First you can find out what's the current value by running ..&lt;BR /&gt;# ndd -get /dev/tcp tcp_fin_wait_2_timeout &lt;BR /&gt;The /etc/rc.config.d/nddconf file would look like this ..(if you want to set to to say 30mins)..&lt;BR /&gt;TRANSPORT_NAME[0]=tcp&lt;BR /&gt;NDD_NAME[0]=tcp_fin_wait_2_timeout&lt;BR /&gt;NDD_VALUE[0]=1800000</description>
      <pubDate>Tue, 17 Jun 2003 13:33:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999554#M126151</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-06-17T13:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999555#M126152</link>
      <description>I found (not author) this script useful. We use a program that will not restart if there are any fin_wait_2 states on a specific port. &lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Run the script, at the log produced contains the exact line to run to kill off an offending item. It's nice.&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" $(/usr/bin/netstat -an -f inet | /usr/bin/grep FIN_WAIT_2 | /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 | 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 &lt;BR /&gt;\"$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</description>
      <pubDate>Tue, 17 Jun 2003 13:35:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999555#M126152</guid>
      <dc:creator>Cole L.</dc:creator>
      <dc:date>2003-06-17T13:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999556#M126153</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have ran &lt;BR /&gt;&lt;BR /&gt;# ndd -get /dev/tcp tcp_fin_wait_2_timeout &lt;BR /&gt;&lt;BR /&gt;and the output is 0&lt;BR /&gt;&lt;BR /&gt;Does this mean I have no current setting or does it mean that it is actually 0.&lt;BR /&gt;&lt;BR /&gt;If so is it worth me changing it to 3 minutes?&lt;BR /&gt;&lt;BR /&gt;Also will this have an impact on anything else?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Colin.</description>
      <pubDate>Tue, 17 Jun 2003 13:41:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999556#M126153</guid>
      <dc:creator>Warren griggs</dc:creator>
      <dc:date>2003-06-17T13:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999557#M126154</link>
      <description>Hi COlin:&lt;BR /&gt;&lt;BR /&gt;A value of zero (0) signifies an infintite wait.  Values of around 10-minutes (or more) are recommended.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 17 Jun 2003 13:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999557#M126154</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-17T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999558#M126155</link>
      <description>0 means that the connecgtion will wait indefinitely to timeout.  Since you are having problems, you want to set this value to something like 5 minutes (600000).&lt;BR /&gt;&lt;BR /&gt;$ ndd -h tcp_fin_wait_2_timeout&lt;BR /&gt;&lt;BR /&gt;tcp_fin_wait_2_timeout:&lt;BR /&gt;&lt;BR /&gt;    Determines how long a TCP connection will be in FIN_WAIT_2.&lt;BR /&gt;&lt;BR /&gt;    Normally one end of a connection initiates the close of its end&lt;BR /&gt;    of the connection (indicates that it has no more data to send) by&lt;BR /&gt;    sending a FIN.  When the remote TCP acknowledges the FIN, TCP&lt;BR /&gt;    goes to the FIN_WAIT_2 state and will remain in that state until&lt;BR /&gt;    the remote TCP sends a FIN.&lt;BR /&gt;&lt;BR /&gt;    If the FIN_WAIT_2 timer is used, TCP will close the connection&lt;BR /&gt;    when it has remained in the FIN_WAIT_2 state for the length of&lt;BR /&gt;    the timer value.&lt;BR /&gt;&lt;BR /&gt;    The FIN_WAIT_2 timer must be used with caution because when TCP&lt;BR /&gt;    is in the FIN_WAIT_2 state the remote is still allowed to send&lt;BR /&gt;    data.  In addition, if the remote TCP would terminate normally&lt;BR /&gt;    (it is not hung nor terminating abnormally) and the connection is&lt;BR /&gt;    closed because of the FIN_WAIT_2 timer, the connection may be&lt;BR /&gt;    closed prematurely.  Data may be lost if the remote sends a&lt;BR /&gt;    window update or FIN after the local TCP has closed the&lt;BR /&gt;    connection.  In this situation, the local TCP will send a RESET.&lt;BR /&gt;    According to the TCP protocol specification, the remote TCP&lt;BR /&gt;    should flush its receive queue when it receives the RESET.  This&lt;BR /&gt;    may cause data to be lost.&lt;BR /&gt;    [0-2147483647 Milliseconds] Default:  0 (indefinite)</description>
      <pubDate>Tue, 17 Jun 2003 13:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999558#M126155</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-06-17T13:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999559#M126156</link>
      <description>When I changed this value I saw a significant drop in the number of FIN_WAIT_2's. Would the OS known which ones were over 10 minutes old and drop these as soon as the value changed?</description>
      <pubDate>Tue, 17 Jun 2003 13:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999559#M126156</guid>
      <dc:creator>Warren griggs</dc:creator>
      <dc:date>2003-06-17T13:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999560#M126157</link>
      <description>Hi (again) Colin:&lt;BR /&gt;&lt;BR /&gt;Yes, reducing the 'tcp_fin_wait_2_timeout' value would mean that connections exceeding this timeout would procedure to closure.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 17 Jun 2003 13:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999560#M126157</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-17T13:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999561#M126158</link>
      <description>yup.</description>
      <pubDate>Tue, 17 Jun 2003 13:56:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999561#M126158</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-06-17T13:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: FIN_WAIT_2 Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999562#M126159</link>
      <description>From the standpoint o fthe transport, 400 FIN_WAIT_2 connections is nothing.  It could handle orders of magnitude more than that without breaking a sweat.&lt;BR /&gt;&lt;BR /&gt;Now, if those FIN_WAIT_2's are associated with open file descriptors (that is the app has only called shutdown() and not close(), then it could be an issue for the app.  However, if the app has called close(), it is only a non-issue for the transport.&lt;BR /&gt;&lt;BR /&gt;If the app calls close(), then the tcp_keepalive_detached_interval will come into play - after a default of two minutes, keepalive probes will be sent for up to tcp_ip_abort_interval milliseconds.  If no response to the keepalive probe, then the connection is terminated. &lt;BR /&gt;&lt;BR /&gt;If there are responses to the probes, it implies that the other side did not do the typical, kludgey abortive close, but is simply not remembering to call shutdown or close - IE an application bug on the other side.&lt;BR /&gt;&lt;BR /&gt;It should be _really_ rare that the tcp_fine_wait_timeout kludge (imo) should be required - that is only required to workaround application bugs.&lt;BR /&gt;&lt;BR /&gt;Also, while I'm on the soapbox, one should _NEVER_ need to use the tcp_discon stuff.  That is a massive kludge that should have never left the lab.  All it takes is nuking the wrong connection and knuth only knows what might happen.  All it does is treat symptom, not root cause, and in treating symptom, it delays resolution of root cause...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_ndd.txt" target="_blank"&gt;ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_ndd.txt&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2003 16:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fin-wait-2-connections/m-p/2999562#M126159</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2003-06-18T16:51:37Z</dc:date>
    </item>
  </channel>
</rss>

