<?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 open files per process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571476#M30604</link>
    <description>I know with glance (-F function) you can get a list of all open files for a specifi process. Does anyone have an idea to get a list of the number of open files for all processes? We are reaching our limit in nfiles and would like to see if a runaway process or something silimar is opening more files than normal. So we would like to get something like this&lt;BR /&gt;&lt;BR /&gt;process ID        # of open files&lt;BR /&gt;==============================&lt;BR /&gt;123                100&lt;BR /&gt;44356              50&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated. Thanks!!!&lt;BR /&gt;&lt;BR /&gt;Quin</description>
    <pubDate>Tue, 28 Aug 2001 17:06:59 GMT</pubDate>
    <dc:creator>Quin Hammes</dc:creator>
    <dc:date>2001-08-28T17:06:59Z</dc:date>
    <item>
      <title>open files per process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571476#M30604</link>
      <description>I know with glance (-F function) you can get a list of all open files for a specifi process. Does anyone have an idea to get a list of the number of open files for all processes? We are reaching our limit in nfiles and would like to see if a runaway process or something silimar is opening more files than normal. So we would like to get something like this&lt;BR /&gt;&lt;BR /&gt;process ID        # of open files&lt;BR /&gt;==============================&lt;BR /&gt;123                100&lt;BR /&gt;44356              50&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated. Thanks!!!&lt;BR /&gt;&lt;BR /&gt;Quin</description>
      <pubDate>Tue, 28 Aug 2001 17:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571476#M30604</guid>
      <dc:creator>Quin Hammes</dc:creator>
      <dc:date>2001-08-28T17:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: open files per process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571477#M30605</link>
      <description>Download "lsof" from &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;</description>
      <pubDate>Tue, 28 Aug 2001 17:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571477#M30605</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-08-28T17:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: open files per process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571478#M30606</link>
      <description>Quin,&lt;BR /&gt;&lt;BR /&gt;You can get lsof from this following site.&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;I don't know whether there is a depot for 11.0 but you can compile it from the source code.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 28 Aug 2001 17:18:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571478#M30606</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-28T17:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: open files per process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571479#M30607</link>
      <description>Hi Quin:&lt;BR /&gt;&lt;BR /&gt;You can use 'sar -v 10 5' to report the process, inode and file table sizes as defined along with their high-water mark and the number of times they have overflowed.&lt;BR /&gt;&lt;BR /&gt;In the example above, 5-samples will be taken, one every 10-seconds.  See 'man sar' for more details.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 28 Aug 2001 17:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571479#M30607</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-28T17:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: open files per process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571480#M30608</link>
      <description>LSOF should do the trick.  In the absence of any options, lsof lists all open files belonging to all active processes.  I have found it to be invaluable.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Aug 2001 17:29:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571480#M30608</guid>
      <dc:creator>nancy rippey</dc:creator>
      <dc:date>2001-08-28T17:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: open files per process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571481#M30609</link>
      <description>You might want to limit most users to a small number of files per process with ulimit. This can be set in /etc/profile as a limit for all users except certain ones that will run processes that truly require a lot of files.&lt;BR /&gt;&lt;BR /&gt;nfile is usually too small out of the box, but the correct value might be 500 in a small system, 5000 in a medium system and 60000 on a large system.&lt;BR /&gt;&lt;BR /&gt;Note: ulimit is documented in sh-posix, the preferred shell for all users including root.</description>
      <pubDate>Wed, 29 Aug 2001 01:51:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571481#M30609</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-08-29T01:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: open files per process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571482#M30610</link>
      <description>Hi Quin,&lt;BR /&gt;&lt;BR /&gt;Consider the glance with -F and PID giving the following result ( in your example ) :&lt;BR /&gt;&lt;BR /&gt;123 100 &lt;BR /&gt;&lt;BR /&gt;The script would be :&lt;BR /&gt;&lt;BR /&gt;for i in `ps -ef ? awk '{print $2}'`&lt;BR /&gt;do&lt;BR /&gt;#will give you the process ( command )name&lt;BR /&gt;ps -ef ? grep $i ? grep -v grep ? awk '{print $8}'`&lt;BR /&gt;#will report the open files&lt;BR /&gt;glance -F $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Magdi&lt;BR /&gt;Will give you a list of all process and their &lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 10:09:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-files-per-process/m-p/2571482#M30610</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-08-29T10:09:00Z</dc:date>
    </item>
  </channel>
</rss>

