<?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: Number of open files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641310#M852291</link>
    <description>You may have a 'rogue' process that has opened lots of files.&lt;BR /&gt;&lt;BR /&gt;If you have glance, it will list files that a process has open. Select the process with the 's' command then use 'F'.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
    <pubDate>Wed, 09 Jan 2002 12:41:25 GMT</pubDate>
    <dc:creator>John Palmer</dc:creator>
    <dc:date>2002-01-09T12:41:25Z</dc:date>
    <item>
      <title>Number of open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641306#M852287</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I??m running a k260/4 server with HP-UX 10.20, and  this morning I have received the following message in the log:&lt;BR /&gt;&lt;BR /&gt;Jan  9 11:25:56 averroes vmunix: : table is full&lt;BR /&gt;Jan  9 11:25:56 averroes vmunix: file: table is full&lt;BR /&gt;&lt;BR /&gt;This is due to the nfile kernel parameter has been reached, OK.&lt;BR /&gt;&lt;BR /&gt;Last week, I saw the "sar" data and this parameter never has had a value greater than 4000, and the top is 8990.&lt;BR /&gt;&lt;BR /&gt;Today this parameter has overflow his capacity, and I don??t now why!!!&lt;BR /&gt;&lt;BR /&gt;sar -v 2 3&lt;BR /&gt;&lt;BR /&gt;HP-UX averroes B.10.20 U 9000/800    01/09/02&lt;BR /&gt;&lt;BR /&gt;13:13:18 text-sz  ov  proc-sz  ov  inod-sz  ov  file-sz  ov&lt;BR /&gt;13:13:20   N/A   N/A 1372/1733  0  14655/15912 0  7422/8990  0&lt;BR /&gt;13:13:22   N/A   N/A 1372/1733  0  14653/15912 0  7424/8990  0&lt;BR /&gt;13:13:24   N/A   N/A 1374/1733  0  14643/15912 0  7430/8990  0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Somebody can tell me:&lt;BR /&gt;&lt;BR /&gt;What has happened and how can I know why ?&lt;BR /&gt;&lt;BR /&gt;Which is the command to see the files that an user has opened?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 09 Jan 2002 12:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641306#M852287</guid>
      <dc:creator>Pepe Jimenez Muñoz</dc:creator>
      <dc:date>2002-01-09T12:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Number of open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641307#M852288</link>
      <description>Pepe,&lt;BR /&gt;If you have lsof loaded you try using it.  LSOF (list open files).  It can be downloaded from&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/" target="_blank"&gt;http://hpux.cs.utah.edu/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;nancy</description>
      <pubDate>Wed, 09 Jan 2002 12:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641307#M852288</guid>
      <dc:creator>nancy rippey</dc:creator>
      <dc:date>2002-01-09T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Number of open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641308#M852289</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use lsof the utility to list open files. You can get lsof from the HP porting and archive centre at &lt;A href="http://hpux.cae.wisc.edu/." target="_blank"&gt;http://hpux.cae.wisc.edu/.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Wed, 09 Jan 2002 12:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641308#M852289</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-09T12:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Number of open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641309#M852290</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you download "lsof" from somewhere like:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;then run:&lt;BR /&gt;&lt;BR /&gt;lsof -u username&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Wed, 09 Jan 2002 12:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641309#M852290</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-09T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Number of open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641310#M852291</link>
      <description>You may have a 'rogue' process that has opened lots of files.&lt;BR /&gt;&lt;BR /&gt;If you have glance, it will list files that a process has open. Select the process with the 's' command then use 'F'.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Wed, 09 Jan 2002 12:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641310#M852291</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-01-09T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Number of open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641311#M852292</link>
      <description>Here's a full path for "lsof":&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Do you run NFS on this server?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 09 Jan 2002 12:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641311#M852292</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-09T12:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Number of open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641312#M852293</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I agree with John.  A rogue process is one possible reason.  The kernel parameters 'maxfiles' and 'maxfiles_lim' are the "soft" and "hard" boundries for the number of open files a process can have and are ultimately constrained by 'nfile'.  You might want to evaluate these values.  You can see their values with SAM or with 'kmtune -q &lt;PARAMTER&gt;' on 11.x or with 'sysdef' on 10.x.&lt;BR /&gt;&lt;BR /&gt;Another possible reason for a large number of open files might be users who establish telnet or CDE sessions but disconnect ungracefully leaving orphaned sessions inherited by 'init'.&lt;BR /&gt;You could (carefully) look for these with 'ps -ef'.&lt;BR /&gt;&lt;BR /&gt;For more information on the kernel parameters I mentioned above, see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/PARAMTER&gt;</description>
      <pubDate>Wed, 09 Jan 2002 12:57:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641312#M852293</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-01-09T12:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Number of open files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641313#M852294</link>
      <description>From sar -v:&lt;BR /&gt;&lt;BR /&gt;13:13:18 text-sz ov proc-sz ov inod-sz ov file-sz ov &lt;BR /&gt;13:13:20 N/A N/A 1372/1733 0 14655/15912 0 7422/8990 0 &lt;BR /&gt;&lt;BR /&gt;It apears that all 3 parameters need significant changes. Start with ninode. If you have a lot of HFS filesystems (see /etc/fstab), then this is probably OK, otherwise, it should be reduced to 1000-2000. Otherwise, it just wastes space in RAM.&lt;BR /&gt;&lt;BR /&gt;nproc is almost full so it should ber doubled or tripled if this system is going to grow even more. nfile is also very close to full so it should be doubled or tripled.&lt;BR /&gt;&lt;BR /&gt;There is no single user causing the problem. The reason is that there are 7,422 files used by 1,372 processes, or just over 5 files per process, a perfectly normal value.  The real question is then: is it normal to have 1,372 processes running at the same time?&lt;BR /&gt;&lt;BR /&gt;Start by sorting processes by user:&lt;BR /&gt;&lt;BR /&gt;ps -ef | sort &amp;gt; /tmp/ps.user&lt;BR /&gt;&lt;BR /&gt;to see just the non-root proceses:&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep -v " root " | sort &amp;gt; /tmp/ps.user&lt;BR /&gt;&lt;BR /&gt;or to see just the intersting information:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o ruser,pid,vsz,args | grep -v " root " | sort &amp;gt; /tmp/ps.user&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jan 2002 14:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/number-of-open-files/m-p/2641313#M852294</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-09T14:04:02Z</dc:date>
    </item>
  </channel>
</rss>

