<?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 Kernel parameter for Max TCP Connections in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247014#M568951</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. Do we have any kernel parameter which will set / restrict the threshold value for maximum TCP connections..?&lt;BR /&gt;&lt;BR /&gt;If yes which kernel parameter we need to modify to have more TCP connections.&lt;BR /&gt;&lt;BR /&gt;2. How can we check the number TCP connections opened on the server...any command ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Phani</description>
    <pubDate>Tue, 13 Apr 2004 14:27:59 GMT</pubDate>
    <dc:creator>Phani_4</dc:creator>
    <dc:date>2004-04-13T14:27:59Z</dc:date>
    <item>
      <title>Kernel parameter for Max TCP Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247014#M568951</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. Do we have any kernel parameter which will set / restrict the threshold value for maximum TCP connections..?&lt;BR /&gt;&lt;BR /&gt;If yes which kernel parameter we need to modify to have more TCP connections.&lt;BR /&gt;&lt;BR /&gt;2. How can we check the number TCP connections opened on the server...any command ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Phani</description>
      <pubDate>Tue, 13 Apr 2004 14:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247014#M568951</guid>
      <dc:creator>Phani_4</dc:creator>
      <dc:date>2004-04-13T14:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter for Max TCP Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247015#M568952</link>
      <description>I believe this is covered in a document available on the HP web site:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/hpux/onlinedocs/1435/NFSPerformanceTuninginHP-UX11.0and11iSystems.pdf" target="_blank"&gt;http://www.docs.hp.com/hpux/onlinedocs/1435/NFSPerformanceTuninginHP-UX11.0and11iSystems.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The following points regarding NFS/TCP are discussed in this publicly&lt;BR /&gt;available document:&lt;BR /&gt;&lt;BR /&gt;     adb() tunables:&lt;BR /&gt;&lt;BR /&gt;          clnt_max_conns - page 48&lt;BR /&gt;&lt;BR /&gt;          maxthreads - page 49&lt;BR /&gt;&lt;BR /&gt;          timeo - avoid with TCP page 92&lt;BR /&gt;&lt;BR /&gt;          mount options - page 97/98&lt;BR /&gt;&lt;BR /&gt;          kernel parameters - page 109 - 113&lt;BR /&gt;&lt;BR /&gt;          max_thread_proc - page 111&lt;BR /&gt;&lt;BR /&gt;          nkthread - page 113&lt;BR /&gt;&lt;BR /&gt;See also:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;mode=id&amp;amp;searchString=4000033874&amp;amp;searchCrit=allwords&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=ThirdParty&amp;amp;search.x=14&amp;amp;search.y=11" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;mode=id&amp;amp;searchString=4000033874&amp;amp;searchCrit=allwords&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=ThirdParty&amp;amp;search.x=14&amp;amp;search.y=11&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Apr 2004 14:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247015#M568952</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-04-13T14:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter for Max TCP Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247016#M568953</link>
      <description>Hi Phani,&lt;BR /&gt;&lt;BR /&gt;1. You can set the tcp parameter tcp_conn_request_max using ndd.&lt;BR /&gt;&lt;BR /&gt;   # ndd -get /dev/tcp tcp_conn_request_max&lt;BR /&gt;   # ndd -set /dev/tcp tcp_conn_request_max 1024&lt;BR /&gt;&lt;BR /&gt;   # vi /etc/rc.config.d/nddconf&lt;BR /&gt;   TRANSPORT_NAME[0]=tcp&lt;BR /&gt;   NDD_NAME[0]=tcp_conn_request_max&lt;BR /&gt;   NDD_VALUE[0]=1024&lt;BR /&gt;   &lt;BR /&gt;&lt;BR /&gt;2.  # netstat -an | grep ESTABLISHED | wc -l&lt;BR /&gt; &lt;BR /&gt;   The above command should return the number of TCP connections established.&lt;BR /&gt;&lt;BR /&gt;Sundar</description>
      <pubDate>Tue, 13 Apr 2004 15:06:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247016#M568953</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-04-13T15:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter for Max TCP Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247017#M568954</link>
      <description>1. I think nfile parameter will do the trick as UNIX treats every socket as an open file ! Not sure though&lt;BR /&gt;2. Install lsof ; then lsof |grep -i TCP |grep "8080"|wc -l # If you are counting number of connection's.&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Wed, 14 Apr 2004 00:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247017#M568954</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-14T00:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter for Max TCP Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247018#M568955</link>
      <description>The tunables you would need/want to alter will depend on how those connections will be managed.  Some of this has already been mentioned, but I will try to get it all in one place.&lt;BR /&gt;&lt;BR /&gt;First the easy stuff - as mentioned, nfile will need to be at least as large as the number of TCP connections you expect, plus whatever files you expect to be open and such.&lt;BR /&gt;&lt;BR /&gt;Next, if you have a model of one process per connection (a model that I must say isn't really a very good one) then you will also need to make sure that nproc is as large as the number of TCP connections you expect. Related to that would be maxuproc.&lt;BR /&gt;&lt;BR /&gt;If you are handling one connection per thread (still not what I would consider an optimal model), you need to set the thread parms to allow as many threads.&lt;BR /&gt;&lt;BR /&gt;If you have a model with a process handling many TCP connections then you want to make sure that maxfiles and maxfiles_lim are set large enough to have that many TCP connections.  Ditto if you have threads handling many connections each.&lt;BR /&gt;&lt;BR /&gt;Now, for performance considerations, you may want to increase tcphashsz.&lt;BR /&gt;&lt;BR /&gt;The ndd setting tcp_conn_request_max does not control the maximum number of TCP connections.  It does however control the maximum number of _pending_ TCP connections that can be queued to any given listen endpoint.  The need to increase this depends on the rate at which connections are established.  If this parm and/or the value the application is passing for the backlog to listen (the actual limit will be the lesser of the two) is too small, netstat -p tcp will show connections being dropped due to full queue.&lt;BR /&gt;&lt;BR /&gt;To see the number of TCP connections on the server you can do "netstat -an | grep tcp | wc -l"  or you can do an ndd /dev/tcp tcp_status.</description>
      <pubDate>Wed, 14 Apr 2004 12:59:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247018#M568955</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2004-04-14T12:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter for Max TCP Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247019#M568956</link>
      <description>Hi Rick,&lt;BR /&gt;&lt;BR /&gt;The parameter which you suggested "tcphashsz"...is this parameter available in HP-UX 10.20 ?&lt;BR /&gt;&lt;BR /&gt;If yes, can you please suggest us, to which value we need set.&lt;BR /&gt;&lt;BR /&gt;Please let me know..&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Regards,&lt;BR /&gt;Phani</description>
      <pubDate>Wed, 14 Apr 2004 13:23:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247019#M568956</guid>
      <dc:creator>Phani_4</dc:creator>
      <dc:date>2004-04-14T13:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter for Max TCP Connections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247020#M568957</link>
      <description>Eghads - 10.20!?!  Not the place to be these days...&lt;BR /&gt;&lt;BR /&gt;...in that case, ignore all the stuff about threads since you don't have them.  Also ignore all the ndd stuff. And the connections dropped due to full queue output of netstat will not be there.&lt;BR /&gt;&lt;BR /&gt;There is no pleasant interface to changing tcp hash sizes under 10.20.  If you go look at the old archived HP-UX SPECweb96 (96 not 99) results on &lt;A href="http://www.spec.org" target="_blank"&gt;www.spec.org&lt;/A&gt; you may find a way to tweak the hash table size in the tuning descriptions.</description>
      <pubDate>Wed, 14 Apr 2004 13:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-for-max-tcp-connections/m-p/3247020#M568957</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2004-04-14T13:26:35Z</dc:date>
    </item>
  </channel>
</rss>

