<?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: Wrong group membership in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430719#M205684</link>
    <description>I wrote down a script as follows to catch the WebSphere App that is keepening a lot of file opened.&lt;BR /&gt;&lt;BR /&gt;ps -efx | grep native | while read line&lt;BR /&gt;do&lt;BR /&gt;line1="`echo $line | awk -F\"ActiveEJBServerProcess\" '{ print $1}'"&lt;BR /&gt;line2="`echo $line | awk -F\"ActiveEJBServerProcess\" '{ print $2}'"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;pid="`echo $line1 | awk '{ print $2 }'`"&lt;BR /&gt;&lt;BR /&gt;openfiles="`/usr/contrib/bin/lsof -p $pid |  wc -l `"&lt;BR /&gt;&lt;BR /&gt;echo $line2 | awk -F: '{ print $2 }' | sed -e "/^$/d" | awk -v  p="$pid" -v f=$openfiles  '{ print p"  "$&lt;BR /&gt;1"\t"f" archivos abiertos" }' &lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Now, all is working well but I'll trying to take pictures until the problem arises, and then recognized which app is failing.&lt;BR /&gt;&lt;BR /&gt;Regards, Ricardo.&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Nov 2004 11:48:50 GMT</pubDate>
    <dc:creator>Ricardo R Peirano</dc:creator>
    <dc:date>2004-11-26T11:48:50Z</dc:date>
    <item>
      <title>Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430711#M205676</link>
      <description>Hi everybody&lt;BR /&gt;I have one of my HP-UX 11iv1 servers with WebSphere on it and I have problems with the number of open files getting the nfile limit.&lt;BR /&gt;Do you know a way to know the number of open files for each process in the system?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Nov 2004 13:58:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430711#M205676</guid>
      <dc:creator>Ricardo R Peirano</dc:creator>
      <dc:date>2004-11-25T13:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430712#M205677</link>
      <description>you can use glance or lsof</description>
      <pubDate>Thu, 25 Nov 2004 14:20:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430712#M205677</guid>
      <dc:creator>Asad Malik</dc:creator>
      <dc:date>2004-11-25T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430713#M205678</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you don't have glace you can use Q4 dump debugger to check number of used nfile.&lt;BR /&gt;&lt;BR /&gt;1. preprocess the kernel for debugging&lt;BR /&gt;&lt;BR /&gt;/usr/contrib/bin/q4pxdb /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;2. start Q4 using the running kernel&lt;BR /&gt; /usr/contrib/bin/q4 /stand/vmunix /dev/mem&lt;BR /&gt;&lt;BR /&gt;3. in Q4 prompt run: &lt;BR /&gt;&lt;BR /&gt;load struct file from file max nfile; keep f_count &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;4. result: kept XXX of YYY &lt;BR /&gt;XXX - files opened&lt;BR /&gt;YYY - nfile set in kernel  &lt;BR /&gt;</description>
      <pubDate>Thu, 25 Nov 2004 14:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430713#M205678</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-11-25T14:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430714#M205679</link>
      <description>Guys&lt;BR /&gt;I have glance, but what I want to know is the number of open files that a particular process has opened. With this I hope to find the process which is causing this abrupt increase of opened files.&lt;BR /&gt;First I thougth to do this using lsof and an awk program but I want to know if there is any other way to do this thing.&lt;BR /&gt;&lt;BR /&gt;Slawomir: your approach it's very good, IÂ´m tinking to write a script that will check the utilization of nfile and then recognize the process which is taking the major part of this tabl</description>
      <pubDate>Thu, 25 Nov 2004 15:04:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430714#M205679</guid>
      <dc:creator>Ricardo R Peirano</dc:creator>
      <dc:date>2004-11-25T15:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430715#M205680</link>
      <description>There is no way to summarize each process as to the number of open files. While there is a limit that you can impose on each process with a ulimit option. However, this would require adding ulimit to the startup environment for WebSphere and other applications. &lt;BR /&gt; &lt;BR /&gt;However, the question is: why not increase nfile to 2 or 2 times it's current value? Knowing that some process in WebSphere or some other application needs 500 files open at the same time isn't something you can change (unless you can rewrite the code and recompile). Note that nfile is way too small in HP-UX for anything but a simple 1-user workstation. It is not unusual to have nfile=4000, even nfile=50000 is not a problem.</description>
      <pubDate>Thu, 25 Nov 2004 19:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430715#M205680</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-25T19:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430716#M205681</link>
      <description>With glance you can see open files for a particular process as follows&lt;BR /&gt;&lt;BR /&gt;$ glance -F&lt;BR /&gt;Enter PID (14227) :&lt;BR /&gt;&lt;BR /&gt;There doesn't seem to be an easy way to get per-process file count in glance.&lt;BR /&gt;&lt;BR /&gt;Here is lsof/perl one-liner to achieve this. It should print output 'PID: &lt;NUM_OPEN_FILES_FOR_PID&gt;' and it should be sorted by number of open files (highest usage processes listed at the end).&lt;BR /&gt;&lt;BR /&gt;lsof -d 0-10000 2&amp;gt;/dev/null | perl -ane '!/PID/ &amp;amp;&amp;amp; $count{$F[1]}++; END {for (sort {$count{$a} &amp;lt;=&amp;gt; $count{$b}} keys %count) {print "$_: $count{$_}\n"}}'&lt;BR /&gt;&lt;/NUM_OPEN_FILES_FOR_PID&gt;</description>
      <pubDate>Thu, 25 Nov 2004 20:09:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430716#M205681</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-11-25T20:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430717#M205682</link>
      <description>you can use lsof (list of all open files)(freeware I think) If you grep on the proces ID you see all the open files</description>
      <pubDate>Fri, 26 Nov 2004 04:00:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430717#M205682</guid>
      <dc:creator>F Verschuren</dc:creator>
      <dc:date>2004-11-26T04:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430718#M205683</link>
      <description>I wrote down a script as follows to catch the WebSphere App that is keepening a lot of file opened.&lt;BR /&gt;&lt;BR /&gt;ps -efx | grep native | while read line&lt;BR /&gt;do&lt;BR /&gt;line1="`echo $line | awk -F\"ActiveEJBServerProcess\" '{ print $1}'"&lt;BR /&gt;line2="`echo $line | awk -F\"ActiveEJBServerProcess\" '{ print $2}'"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;pid="`echo $line1 | awk '{ print $2 }'`"&lt;BR /&gt;&lt;BR /&gt;openfiles="`/usr/contrib/bin/lsof -p $pid |  wc -l `"&lt;BR /&gt;&lt;BR /&gt;echo $line2 | awk -F: '{ print $2 }' | sed -e "/^$/d" | awk -v  p="$pid" -v f=$openfiles  '{ print p"  "$&lt;BR /&gt;1"\t"f" archivos abiertos" }' &lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Now, all is working well but I'l trying to take pictures until the problem arises, and then recognized wich app is failing.&lt;BR /&gt;&lt;BR /&gt;Regards, Ricardo.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Nov 2004 11:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430718#M205683</guid>
      <dc:creator>Ricardo R Peirano</dc:creator>
      <dc:date>2004-11-26T11:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong group membership</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430719#M205684</link>
      <description>I wrote down a script as follows to catch the WebSphere App that is keepening a lot of file opened.&lt;BR /&gt;&lt;BR /&gt;ps -efx | grep native | while read line&lt;BR /&gt;do&lt;BR /&gt;line1="`echo $line | awk -F\"ActiveEJBServerProcess\" '{ print $1}'"&lt;BR /&gt;line2="`echo $line | awk -F\"ActiveEJBServerProcess\" '{ print $2}'"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;pid="`echo $line1 | awk '{ print $2 }'`"&lt;BR /&gt;&lt;BR /&gt;openfiles="`/usr/contrib/bin/lsof -p $pid |  wc -l `"&lt;BR /&gt;&lt;BR /&gt;echo $line2 | awk -F: '{ print $2 }' | sed -e "/^$/d" | awk -v  p="$pid" -v f=$openfiles  '{ print p"  "$&lt;BR /&gt;1"\t"f" archivos abiertos" }' &lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Now, all is working well but I'll trying to take pictures until the problem arises, and then recognized which app is failing.&lt;BR /&gt;&lt;BR /&gt;Regards, Ricardo.&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Nov 2004 11:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-group-membership/m-p/3430719#M205684</guid>
      <dc:creator>Ricardo R Peirano</dc:creator>
      <dc:date>2004-11-26T11:48:50Z</dc:date>
    </item>
  </channel>
</rss>

