<?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: Process Fork Problem on HP-UX in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015504#M427385</link>
    <description>Setting maxuprc to a lower value seems to have solved the problem.&lt;BR /&gt;Thanks for the help.</description>
    <pubDate>Mon, 27 Nov 2006 08:37:51 GMT</pubDate>
    <dc:creator>Ankit Grover</dc:creator>
    <dc:date>2006-11-27T08:37:51Z</dc:date>
    <item>
      <title>Process Fork Problem on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015498#M427379</link>
      <description>Hi experts,&lt;BR /&gt;We are using HP-UX B.11.23 ia64, 4 CPU box. I am facing the following error while trying to execute any script:&lt;BR /&gt;ksh: cannot fork: too many processes&lt;BR /&gt;&lt;BR /&gt;On checking in "top -h", I observed that the processes count was going to a max of 4096 which comes to be 2^10 processes per processor (it seems it is the limit, plz correct me if I am wrong). Out of these around 4000 were sleeping and CPU was 97% idle.&lt;BR /&gt;&lt;BR /&gt;Last time when it happened we had to restart the server. Luckily this time, the processes count automatically got reduced.&lt;BR /&gt;&lt;BR /&gt;Can anyone suggest what can be done from our side?&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Nov 2006 02:24:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015498#M427379</guid>
      <dc:creator>Ankit Grover</dc:creator>
      <dc:date>2006-11-23T02:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Process Fork Problem on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015499#M427380</link>
      <description>Ankit,&lt;BR /&gt;&lt;BR /&gt;man kctune&lt;BR /&gt;&lt;BR /&gt;you need to adjust the nproc kernel parameter&lt;BR /&gt;&lt;BR /&gt;e.g. &lt;BR /&gt;&lt;BR /&gt;kctune nproc=8192&lt;BR /&gt;&lt;BR /&gt;you may require a reboot after this (some parm changes do)&lt;BR /&gt;&lt;BR /&gt;Are all 4000 odd processes in the proc table valid? or is something spawining too many procs?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 23 Nov 2006 02:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015499#M427380</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2006-11-23T02:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Process Fork Problem on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015500#M427381</link>
      <description>Hi Duncan,&lt;BR /&gt;&lt;BR /&gt;KCTUNE is currently displaying:&lt;BR /&gt;[root]/home/scripts#kctune nproc&lt;BR /&gt;Tunable  Value  Expression  Changes&lt;BR /&gt;nproc     4096  4096        Immed&lt;BR /&gt;&lt;BR /&gt;I don't want to increase its value since normally the count is in the range of 600-700 and most of them are sleeping. &lt;BR /&gt;I am not able to trace what happened at that particular time which increased the processes to 4096 level.&lt;BR /&gt;&lt;BR /&gt;Also, can you tell me how to check the validity of processes in the proc table.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Ankit</description>
      <pubDate>Thu, 23 Nov 2006 03:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015500#M427381</guid>
      <dc:creator>Ankit Grover</dc:creator>
      <dc:date>2006-11-23T03:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Process Fork Problem on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015501#M427382</link>
      <description>While surfing I have found that my problem can be resolved if I tune the parameter related to max no of forked processes per login.&lt;BR /&gt;Can some expert help me on this?</description>
      <pubDate>Thu, 23 Nov 2006 23:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015501#M427382</guid>
      <dc:creator>Ankit Grover</dc:creator>
      <dc:date>2006-11-23T23:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Process Fork Problem on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015502#M427383</link>
      <description>Too many processes can be the error message from the kernel's process table size (set by nproc) or by the maximum number of processes owned by a single user (which is maxuprc). The limit has nothing to do with the number of processors or CPU usage.&lt;BR /&gt; &lt;BR /&gt;It is common for some application vendors to recommend large values for maxuprc, but not recommended until it can be shown that such a large number makes sense. A simple (but defective) script can start thousands of processes in a few seconds so maxuprc makes sense to prevent a runaway script or program from using every process table entry. In your case, having nproc=maxuprc is a very bad setting. Always set maxuprc to at least 100 less than nproc to prevent a system lockout condition where not even root can login.&lt;BR /&gt; &lt;BR /&gt;To find the process counts by user:&lt;BR /&gt; &lt;BR /&gt;UNIX95=1 ps -e -o ruser=|sort|uniq -c&lt;BR /&gt; &lt;BR /&gt;Note that root is not restricted by maxuprc.</description>
      <pubDate>Sun, 26 Nov 2006 15:08:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015502#M427383</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-11-26T15:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Process Fork Problem on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015503#M427384</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;It would seem your analysis is flawed. I agree that nproc needs to be increased to solve this problem.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 27 Nov 2006 02:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015503#M427384</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-11-27T02:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Process Fork Problem on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015504#M427385</link>
      <description>Setting maxuprc to a lower value seems to have solved the problem.&lt;BR /&gt;Thanks for the help.</description>
      <pubDate>Mon, 27 Nov 2006 08:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-fork-problem-on-hp-ux/m-p/5015504#M427385</guid>
      <dc:creator>Ankit Grover</dc:creator>
      <dc:date>2006-11-27T08:37:51Z</dc:date>
    </item>
  </channel>
</rss>

