<?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: CLOSE_WAIT Sessions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995512#M576629</link>
    <description>Rick's right about what close_wait is there for, but not all applications and tcp kernel code act quite right.&lt;BR /&gt;&lt;BR /&gt;Is this occurring over SSL?  Does the SSL handshake look broken? Like mod_ssl is trying to shake hands with a client, without receiving a client helo?</description>
    <pubDate>Fri, 13 Jun 2003 17:16:57 GMT</pubDate>
    <dc:creator>W.C. Epperson</dc:creator>
    <dc:date>2003-06-13T17:16:57Z</dc:date>
    <item>
      <title>CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995505#M576622</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am facing excessive close_wait sessions on my apache server and tomcat. Is there any specific reason to it?. &lt;BR /&gt;&lt;BR /&gt;Is there any tcp tunable parameter which would forcefully close such sockets ?. I am suspecious abt the application (apache &amp;amp; tomcat) and my application team is working on it. &lt;BR /&gt;&lt;BR /&gt;What i really need to know is, Is there anything a SysAdmin can do to overcome close_waits sessions ?.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Thu, 12 Jun 2003 08:21:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995505#M576622</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2003-06-12T08:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995506#M576623</link>
      <description>Hi,&lt;BR /&gt;there are many tunable paramenter, you can get a list of there with the tool&lt;BR /&gt;&lt;BR /&gt;ndd -h supported &lt;BR /&gt;ndd -h unsupported&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;will shot you the list of parameters.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt; Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jun 2003 08:27:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995506#M576623</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-12T08:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995507#M576624</link>
      <description>see the notes about ndd dynamic parameters here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc38585079106d71190050090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc38585079106d71190050090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;also a good explaination of the behaviour is discussed.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 12 Jun 2003 08:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995507#M576624</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2003-06-12T08:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995508#M576625</link>
      <description>I think what you're looking for is a way to avoid rebooting blocked tcp ports after they change to a CLOSE_WAIT state, and the 'tcp_discon' is the parameter in 'ndd' used for this.  Like so:&lt;BR /&gt;&lt;BR /&gt;ndd -set /dev/tcp tcp_discon&lt;BR /&gt;tcp_discon&lt;BR /&gt;&lt;BR /&gt;This thread provides the complete procedure with some warnings:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa100237a4bc6d611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa100237a4bc6d611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A sysadmin can also obtain a copy of 'lsof' and issue this command to further evalutate the problem:&lt;BR /&gt;&lt;BR /&gt;lsof -i tcp:####&lt;BR /&gt;lsof -i udp:####&lt;BR /&gt;&lt;BR /&gt;Where #### is the port number in the CLOSE_WAIT state.&lt;BR /&gt;&lt;BR /&gt;'lsof' is an extremely powerful trouble-shooting tool that should be in every sysadmins tool box.  Obtain it here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cict.fr/hppd/hpux/Sysadmin/lsof-4.64/" target="_blank"&gt;http://hpux.cict.fr/hppd/hpux/Sysadmin/lsof-4.64/&lt;/A&gt;</description>
      <pubDate>Thu, 12 Jun 2003 11:01:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995508#M576625</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-06-12T11:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995509#M576626</link>
      <description>Have you guys ever experienced close_wait prob with apache server ?. If yes what was the fix applied ?. As per our application team , the packets going through apache at our site is heavily loaded , Could that be a reason ?.&lt;BR /&gt;&lt;BR /&gt;Cheers .......... Kaps</description>
      <pubDate>Fri, 13 Jun 2003 06:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995509#M576626</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2003-06-13T06:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995510#M576627</link>
      <description>What is the device on the other end?  WinNT has a bug in the tcp/ip stack which causes it to mess up the close if a packet gets lost.  Usually it leaves you stuck in FIN_WAIT_II and them in LastAck tho.&lt;BR /&gt;There is a patch for it but you have to beg MS for it.  They never bothered to release it. I have it if you want to try it.  It's down at the bottom of my geneology website labeled TCP/IP Patch.  &lt;A href="http://www.geocities.com/heartland/9670/" target="_blank"&gt;http://www.geocities.com/heartland/9670/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You might want to check your network to make sure you are not dropping packets.  That's how you usually get stuck in odd states.&lt;BR /&gt;&lt;BR /&gt;Also make sure you have the latest ARPA patches.  One of them gives you the ability to ndd the fin_wait_II hold time and it may have other virtues too.  We are talking HPUX 11 or better aren't we?&lt;BR /&gt;&lt;BR /&gt;Ron&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jun 2003 13:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995510#M576627</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2003-06-13T13:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995511#M576628</link>
      <description>CLOSE_WAIT is the state into which a TCP connection transitions when it has received a FIN (graceful connection close request) from the remote.  In this state, TCP is waiting for the application to call close() or shutdown().  If this file descriptor was shared between processes, it is waiting for the last one to call close() - ie the reference count to go to zero.&lt;BR /&gt;&lt;BR /&gt;As for "excessive" I suspect that an HP-UX system could handle thousands and thousands of them without problem.  The only problem would be the loss of file descriptors in the applciations, and even if you use the massive tcp_discon kludge (which one should almost _never_ use...) the socket (file descriptor) will still be allocated until the application calls close.  So, you still need to get the application to call close()...&lt;BR /&gt;&lt;BR /&gt;If the problem is application restart, then the fix is to make sure the application is setting SO_REUSEADDR before trying to bind().</description>
      <pubDate>Fri, 13 Jun 2003 16:54:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995511#M576628</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2003-06-13T16:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995512#M576629</link>
      <description>Rick's right about what close_wait is there for, but not all applications and tcp kernel code act quite right.&lt;BR /&gt;&lt;BR /&gt;Is this occurring over SSL?  Does the SSL handshake look broken? Like mod_ssl is trying to shake hands with a client, without receiving a client helo?</description>
      <pubDate>Fri, 13 Jun 2003 17:16:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995512#M576629</guid>
      <dc:creator>W.C. Epperson</dc:creator>
      <dc:date>2003-06-13T17:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: CLOSE_WAIT Sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995513#M576630</link>
      <description>There's an Oracle 9IAS bug related to hung close_waits under Apache, with a related patch.&lt;BR /&gt;&lt;BR /&gt;It appears there's a related bug in Top Hat under Apache.&lt;BR /&gt;&lt;BR /&gt;Since there was no follow up to previous post, I presume the problem spontaneously disappeared.</description>
      <pubDate>Thu, 03 Jul 2003 11:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/close-wait-sessions/m-p/2995513#M576630</guid>
      <dc:creator>W.C. Epperson</dc:creator>
      <dc:date>2003-07-03T11:32:58Z</dc:date>
    </item>
  </channel>
</rss>

