<?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: file descriptor not enough in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449597#M208593</link>
    <description>nfile kernel parameters define the system wide open files.&lt;BR /&gt;sar -v 5 5/glance -t&lt;BR /&gt;Will tell you that.&lt;BR /&gt;&lt;BR /&gt;The no. of files opened by a process can be check with glance and with lsof tool.&lt;BR /&gt;&lt;BR /&gt;If you are hitting the nfile limit, you will have to increase it. This is static value and you will have to reboot the box after kernel tuning.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
    <pubDate>Thu, 23 Dec 2004 06:00:12 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2004-12-23T06:00:12Z</dc:date>
    <item>
      <title>file descriptor not enough</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449595#M208591</link>
      <description>My Java application complains that there is not enough file descriptors. Before I try to increase the "max file" in sam, I'm looking for a way to know the number of files currently open by the application.&lt;BR /&gt;&lt;BR /&gt;Is there any way that we can monitor this number with OS commands?</description>
      <pubDate>Thu, 23 Dec 2004 05:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449595#M208591</guid>
      <dc:creator>Vincent Lam_1</dc:creator>
      <dc:date>2004-12-23T05:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: file descriptor not enough</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449596#M208592</link>
      <description>There's a magical tool for those kind of situation called lsof. You can find it here :&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.73/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.73/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2004 05:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449596#M208592</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-23T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: file descriptor not enough</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449597#M208593</link>
      <description>nfile kernel parameters define the system wide open files.&lt;BR /&gt;sar -v 5 5/glance -t&lt;BR /&gt;Will tell you that.&lt;BR /&gt;&lt;BR /&gt;The no. of files opened by a process can be check with glance and with lsof tool.&lt;BR /&gt;&lt;BR /&gt;If you are hitting the nfile limit, you will have to increase it. This is static value and you will have to reboot the box after kernel tuning.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 23 Dec 2004 06:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449597#M208593</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-12-23T06:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: file descriptor not enough</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449598#M208594</link>
      <description>I'm now thinking of increasing the max file. But what would be its implication on the resource consumption (like memory usage)? If the cost is cheap, should I just increase it to the maximum (65535?)? Any advise?</description>
      <pubDate>Fri, 31 Dec 2004 00:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449598#M208594</guid>
      <dc:creator>Vincent Lam_1</dc:creator>
      <dc:date>2004-12-31T00:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: file descriptor not enough</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449599#M208595</link>
      <description>RAC wrote:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If you are hitting the nfile limit, you will have to &lt;BR /&gt;&amp;gt; increase it. This is static value and you will have &lt;BR /&gt;&amp;gt; to reboot the box after kernel tuning&lt;BR /&gt;&lt;BR /&gt;On HP-UX 11.23, nfiles tunable can be dynamically &lt;BR /&gt;set without rebooting the system (as long as you&lt;BR /&gt;set it to a value greater than # of currently open &lt;BR /&gt;files). Ofcourse, you need to reboot if you want to &lt;BR /&gt;set it to a # smaller than currently open files.&lt;BR /&gt;&lt;BR /&gt;Vincent,&lt;BR /&gt;if your system has more than 1 GB of memory, the&lt;BR /&gt;nfiles is already set to 65536 by default (again I'm&lt;BR /&gt;assuming HP-UX 11.23).&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Dec 2004 00:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449599#M208595</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2004-12-31T00:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: file descriptor not enough</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449600#M208596</link>
      <description>The number of open files per process has no kernel impact at all. Instead, it is a bad program safety fence. You can increase the number to thousands, but now any program is free to open a large number of files. The reason that this limit exists is that if a runaway script or program run in an infinite loop, opening 10's of thousands of files, the kernal maximum (nfile) will be exceeded and then, not even root can login.&lt;BR /&gt; &lt;BR /&gt;So you have two choices. If you have programmers developing programs, I would leave the limit at slightly more than the Java apps require (although a program that opens thousands of files at the same time seems in need of a redesign). Or you can leave the limit at 60 (the default) and increase the limit in the Java environment with a call to setrlimit or use a shell script to start the Java apps and use the ulimit -n shell built-in to set a higher value for the Java environment.&lt;BR /&gt; &lt;BR /&gt;Note also that the Java app will also complain about file handles if nfile is too small. nfile is the maximum number of files open at the same time. maxfiles is a per-process limit while nfile is for all files.</description>
      <pubDate>Fri, 31 Dec 2004 18:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-descriptor-not-enough/m-p/3449600#M208596</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-12-31T18:51:37Z</dc:date>
    </item>
  </channel>
</rss>

