<?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: TCP Setup: Socket() failed: Too many open files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110047#M533320</link>
    <description>Generally these parameters are big enough to handle various application.&lt;BR /&gt;what are values of current nfile??&lt;BR /&gt;You amy check using lsof wchi process had these open connectiona and try to recycle that processes.&lt;BR /&gt;If this happenns again then probably you need to change the kernel paramater.&lt;BR /&gt;BR,&lt;BR /&gt;Kapil</description>
    <pubDate>Thu, 22 May 2008 04:51:43 GMT</pubDate>
    <dc:creator>Kapil Jha</dc:creator>
    <dc:date>2008-05-22T04:51:43Z</dc:date>
    <item>
      <title>TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110043#M533316</link>
      <description>&lt;!--!*#--&gt;Dear Experts,&lt;BR /&gt;&lt;BR /&gt;Could you pls tell me what parameter I should tune to get rid of messages like this in syslog:&lt;BR /&gt;&lt;BR /&gt;Server[10607]: 499259: TCP Setup: Socket() failed: Too many open files&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;&lt;BR /&gt;Sudeesh</description>
      <pubDate>Wed, 21 May 2008 17:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110043#M533316</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2008-05-21T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110044#M533317</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You need to evaluate 'maxfiles' or possibly 'nfile'.&lt;BR /&gt;&lt;BR /&gt;Use 'kctune' (&amp;gt;= 11.23)  or 'kmtune' (11.11) to see your current kernel settings.&lt;BR /&gt;&lt;BR /&gt;Better than a textual message would be the actual 'errno' value or mnemonic, such as ENFILE (#23) or EMFILE (#24).  The later just so happens to match "too many open files" which points to 'maxfiles'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2008 18:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110044#M533317</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-21T18:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110045#M533318</link>
      <description>&lt;BR /&gt;Sudeesh,&lt;BR /&gt;&lt;BR /&gt;   tune up the nfile kernel parameter.&lt;BR /&gt;&lt;BR /&gt;WK</description>
      <pubDate>Thu, 22 May 2008 03:25:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110045#M533318</guid>
      <dc:creator>whiteknight</dc:creator>
      <dc:date>2008-05-22T03:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110046#M533319</link>
      <description>Hi Sudeesh&lt;BR /&gt;&lt;BR /&gt;to view the number of open files&lt;BR /&gt;&lt;BR /&gt;#sar -v 5 5</description>
      <pubDate>Thu, 22 May 2008 04:20:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110046#M533319</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-05-22T04:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110047#M533320</link>
      <description>Generally these parameters are big enough to handle various application.&lt;BR /&gt;what are values of current nfile??&lt;BR /&gt;You amy check using lsof wchi process had these open connectiona and try to recycle that processes.&lt;BR /&gt;If this happenns again then probably you need to change the kernel paramater.&lt;BR /&gt;BR,&lt;BR /&gt;Kapil</description>
      <pubDate>Thu, 22 May 2008 04:51:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110047#M533320</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2008-05-22T04:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110048#M533321</link>
      <description>you sould consider looking to maxfiles_lim value, if you're using 11.23 it's quite easy with kcusage if you are using 11.11 you can use lsof -p pid to see open ressources and be able to count them&lt;BR /&gt;this could comes from a java program not closing some descriptors in it's</description>
      <pubDate>Thu, 22 May 2008 06:57:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110048#M533321</guid>
      <dc:creator>Fabien GUTIERREZ</dc:creator>
      <dc:date>2008-05-22T06:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110049#M533322</link>
      <description>Thank you for your replay.&lt;BR /&gt;&lt;BR /&gt;This is a socks jumpstation and lot of network connections go through this box. This is the only message I get from syslog. I dont have any error numbers. When this situation arise, socks authentication stops working. Then we switch the cluster pkg to alternate node to get working.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 May 2008 13:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110049#M533322</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2008-05-22T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110050#M533323</link>
      <description>Current kernel values:&lt;BR /&gt;&lt;BR /&gt;maxfiles                  512 &lt;BR /&gt;nfile                   12259 &lt;BR /&gt;&lt;BR /&gt;maxfiles_lim             1024&lt;BR /&gt;</description>
      <pubDate>Thu, 22 May 2008 15:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110050#M533323</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2008-05-22T15:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110051#M533324</link>
      <description>As suggested you could try an lsof on the socks server(s) to get their open file counts.  You could also do something similar via glance, and also check the global file descriptor limit.&lt;BR /&gt;&lt;BR /&gt;Another option would be to obtain and use tusc against the socks server binaries - it will show you the actual errno's for the socket() calls being made, and will even give you (IIRC) the mnemonics.&lt;BR /&gt;&lt;BR /&gt;Other thoughts:&lt;BR /&gt;&lt;BR /&gt;The documentation for the socks server may explain the error message.&lt;BR /&gt;&lt;BR /&gt;If "Too many open files" is a common error message from strerror (iirc) then it may be possible to reverse map that to an errno and so knowledge of whether it is nfile or maxfile/maxfile_lim being hit.</description>
      <pubDate>Thu, 22 May 2008 15:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110051#M533324</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2008-05-22T15:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110052#M533325</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Rick: If "Too many open files" is a common error message from strerror (iirc) then it may be possible to reverse map that to an errno and so knowledge of whether it is nfile or maxfile/maxfile_lim being hit.&lt;BR /&gt;&lt;BR /&gt;In fact, this is how I concluded that 'maxfiles' is the likely culprit:&lt;BR /&gt;&lt;BR /&gt;# grep -i "too many open files" /usr/include/sys/errno.h&lt;BR /&gt;#define EMFILE          24      /* Too many open files          */&lt;BR /&gt;&lt;BR /&gt;Then, examining the mapages for 'socket(2)' yields:&lt;BR /&gt;&lt;BR /&gt;" [EMFILE] The per-process descriptor table is full."&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 22 May 2008 15:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110052#M533325</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-22T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110053#M533326</link>
      <description>Thank you for all the suggestions.&lt;BR /&gt;&lt;BR /&gt;I am closely monitoring the server now with lsof and netstat o/ps. &lt;BR /&gt;&lt;BR /&gt;Will assign you points shortly&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sudeesh</description>
      <pubDate>Fri, 23 May 2008 14:22:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110053#M533326</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2008-05-23T14:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110054#M533327</link>
      <description>I worked with response center and finally concluded this as an issue with application. As a workaround increased maxfiles and maxfiles_lim and added monitoring for these values so that I can restart the application when it is close to the max limit</description>
      <pubDate>Sun, 16 Aug 2009 15:04:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110054#M533327</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2009-08-16T15:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Setup: Socket() failed: Too many open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110055#M533328</link>
      <description>sa</description>
      <pubDate>Sun, 16 Aug 2009 15:08:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcp-setup-socket-failed-too-many-open-files/m-p/5110055#M533328</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2009-08-16T15:08:29Z</dc:date>
    </item>
  </channel>
</rss>

