<?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: ksh: cannot fork: too many processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880018#M279934</link>
    <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;look at the answers of me, Bill and James in the thread&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067697" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067697&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
    <pubDate>Fri, 13 Oct 2006 15:20:17 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2006-10-13T15:20:17Z</dc:date>
    <item>
      <title>ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880004#M279920</link>
      <description>what is the meaning of the following messsage ?&lt;BR /&gt;&lt;BR /&gt;ksh: cannot fork: too many processes&lt;BR /&gt;i know that is related with a kernel parameter but i do not know which one is and what must be the new value ...&lt;BR /&gt;&lt;BR /&gt;can you help me please ?&lt;BR /&gt;&lt;BR /&gt;i mean:&lt;BR /&gt;&lt;BR /&gt;it appears every time i run a script that only use the following commands into the file named serveruno.sh&lt;BR /&gt;&lt;BR /&gt;- remsh (file into remote shell named hola.sh)&lt;BR /&gt;hola.sh contains:&lt;BR /&gt;- omnirpt command&lt;BR /&gt;and then (into the server where is showing the message continuew the script named server.sh working) continue the following commands:&lt;BR /&gt;- obtain a value that was captured as variable when remsh command was run(is the string of the file)&lt;BR /&gt;- send an email (email command)&lt;BR /&gt;ksh: cannot fork: too many processes&lt;BR /&gt;&lt;BR /&gt;thanks, Manuales.</description>
      <pubDate>Fri, 13 Oct 2006 13:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880004#M279920</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-10-13T13:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880005#M279921</link>
      <description>This message means that the number of processes currently running has exceeded the kernel value nproc.  You could try raising nproc and building a new kernel.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 13 Oct 2006 13:16:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880005#M279921</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-10-13T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880006#M279922</link>
      <description>Thanks Pete, but what is the new value than i have to put there  in that parameter?&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2006 13:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880006#M279922</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-10-13T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880007#M279923</link>
      <description>Actually, come to think of it, it could be maxuprc, too.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 13 Oct 2006 13:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880007#M279923</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-10-13T13:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880008#M279924</link>
      <description>It could be one of 2 parameters:  maxuprc or nproc.&lt;BR /&gt;&lt;BR /&gt;maxuprc = The maximum number of processes each user can start.&lt;BR /&gt;&lt;BR /&gt;nproc = The maximum number of system wide processes.&lt;BR /&gt;&lt;BR /&gt;Check both parameters and see what their current values are.&lt;BR /&gt;&lt;BR /&gt;ps -ef | wc -l&lt;BR /&gt;&lt;BR /&gt;Will give a close count of the total number of processes on the system.&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep root | wc -l&lt;BR /&gt;&lt;BR /&gt;will give you a count of the number of processes the root user, assuming that is who you are logged in as, is running.  If you are logged in as a different user, substitute that id for root in the above statement.</description>
      <pubDate>Fri, 13 Oct 2006 13:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880008#M279924</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-13T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880009#M279925</link>
      <description>Only you can answer the new value question.&lt;BR /&gt;&lt;BR /&gt;Depending on your settings you might want to increase the appropriate parameter by 50% or perhaps 100%.&lt;BR /&gt;&lt;BR /&gt;Note that depending on the version of HP-UX you are running, this could require a reboot.  &lt;BR /&gt;&lt;BR /&gt;If I recall correctly, maxuprc is dynamic at 11.11 and later, but requires a reboot for 11.0 and earlier.&lt;BR /&gt;&lt;BR /&gt;I believe nproc still requires a kernel recompile and a reboot for all versions.</description>
      <pubDate>Fri, 13 Oct 2006 13:20:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880009#M279925</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-13T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880010#M279926</link>
      <description>Increasing both of these values cost you little but a tiny bit of extra memory.  I would double them and see what happens.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 13 Oct 2006 13:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880010#M279926</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-10-13T13:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880011#M279927</link>
      <description>Hi Manuales,&lt;BR /&gt;&lt;BR /&gt;Check your scripts for unintentional looping.&lt;BR /&gt;&lt;BR /&gt;maxuprc: &lt;BR /&gt;    maximum number of processes per user&lt;BR /&gt;nproc: maximum number of processes system-wide&lt;BR /&gt;&lt;BR /&gt;Under 11i, the default value of maxuprc is 1000, and nproc is (20+8*MAXUSERS), or 2020.  maxuprc is dynamically tunable, while nproc is not.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 13 Oct 2006 13:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880011#M279927</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-13T13:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880012#M279928</link>
      <description>This is the result:&lt;BR /&gt;&lt;BR /&gt;$ ps -fea | wc -l &lt;BR /&gt;336&lt;BR /&gt;$ ps -fea | grep root | wc -l&lt;BR /&gt;138 -l&lt;BR /&gt;&lt;BR /&gt;maxuprc: 2048&lt;BR /&gt;nproc: 3220&lt;BR /&gt;&lt;BR /&gt;then, do i have to replace the id that i am using by root?&lt;BR /&gt;&lt;BR /&gt;Manuales.</description>
      <pubDate>Fri, 13 Oct 2006 13:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880012#M279928</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-10-13T13:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880013#M279929</link>
      <description>Check your /var/adm/syslog/syslog.log file for related error messages. It will point you to the corresponding kernel parameter that needs to be changed in order to alleviate this problem. If the syslog doesn't have an entry then it's related to maxuprc.&lt;BR /&gt;&lt;BR /&gt;~hope it helps</description>
      <pubDate>Fri, 13 Oct 2006 13:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880013#M279929</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-10-13T13:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880014#M279930</link>
      <description>Yes. If you are not logged in as root, then substitute that id for root in the 'grep' statement.&lt;BR /&gt;&lt;BR /&gt;I thought I said that before.......</description>
      <pubDate>Fri, 13 Oct 2006 13:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880014#M279930</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-13T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880015#M279931</link>
      <description>Adding to my last post: nproc limit exceeded will be logged to the syslog.log file but not if the limit on maxuprc is exceeded. Look in /var/adm/syslog/syslog.log file to figure out whether it's nproc or maxuprc.&lt;BR /&gt;&lt;BR /&gt;~hope it helps</description>
      <pubDate>Fri, 13 Oct 2006 13:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880015#M279931</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-10-13T13:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880016#M279932</link>
      <description>Actually, grep is seldom accurate when used with ps. Use ps as your only tool:&lt;BR /&gt; &lt;BR /&gt;remsh someserver "ps -ef -u user1 | wc -l"&lt;BR /&gt; &lt;BR /&gt;Also check how close the current process count is to your nproc value:&lt;BR /&gt; &lt;BR /&gt;remsh someserver "sar -v 1 1 | tail -1 | awk '{print \$4}'"&lt;BR /&gt; &lt;BR /&gt;It will return numbers like 356/4033 which means 356 processes running with room for a total of 4033. If you see numbers like 3999/4033 then yes, you need to DOUBLE or TRIPLE the kernel parameter NPROC. Just increasing it a little bit means you'll probably have to change it again (requires a reboot) as your system gets busier.&lt;BR /&gt; &lt;BR /&gt;So you first must test your remote command that it properly works. But most important: remsh (and rexec) do NOT have a login environment. The only variables set are:&lt;BR /&gt; &lt;BR /&gt;LANG&lt;BR /&gt;PATH&lt;BR /&gt;LOGNAME&lt;BR /&gt;SHELL&lt;BR /&gt;HOME&lt;BR /&gt;PWD&lt;BR /&gt;TZ&lt;BR /&gt; &lt;BR /&gt;Your remote script must setup all additional variables required for proper operation. You can also trace your remote script by inserting set -x at the top.</description>
      <pubDate>Fri, 13 Oct 2006 14:42:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880016#M279932</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-13T14:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880017#M279933</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;I'm just curious about this statement:&lt;BR /&gt;"grep is seldom accurate when used with ps. "&lt;BR /&gt;&lt;BR /&gt;Can you clarify that? What should I be wary of when I use ps -ef | grep? &lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 13 Oct 2006 14:48:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880017#M279933</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-10-13T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880018#M279934</link>
      <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;look at the answers of me, Bill and James in the thread&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067697" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1067697&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 13 Oct 2006 15:20:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880018#M279934</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-10-13T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880019#M279935</link>
      <description>grep matches anything on the line with the string you want. Suppose you want to find PID 123 and all processes owned by bill and all processes named "sh":&lt;BR /&gt; &lt;BR /&gt;ps -ef | grep 123&lt;BR /&gt;(matches PID 123 1234 2123 etc)&lt;BR /&gt;(also matches PPID 123 1234 3123 etc)&lt;BR /&gt; &lt;BR /&gt;use: ps -f -p 123&lt;BR /&gt; &lt;BR /&gt;ps -ef | grep bill&lt;BR /&gt;(matches bill billh waybill billg etc)&lt;BR /&gt; &lt;BR /&gt;use: ps -f -u bill&lt;BR /&gt; &lt;BR /&gt;ps -ef | grep sh&lt;BR /&gt;(matches sh ksh csh bash unhasdaemon etc)&lt;BR /&gt; &lt;BR /&gt;use: UNIX95= ps -f -C sh&lt;BR /&gt; &lt;BR /&gt;grep is working exactly like it is supposed to but you can't tell grep to look at a certain column. &lt;BR /&gt; &lt;BR /&gt;man ps has a lot of details. See especially:&lt;BR /&gt; &lt;BR /&gt;-u&lt;BR /&gt;-p&lt;BR /&gt;-x&lt;BR /&gt;and with UNIX95=&lt;BR /&gt;-C &lt;BR /&gt;-H &lt;BR /&gt;-o</description>
      <pubDate>Fri, 13 Oct 2006 22:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-cannot-fork-too-many-processes/m-p/3880019#M279935</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-13T22:33:14Z</dc:date>
    </item>
  </channel>
</rss>

