<?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: /etc/profile[83]: cannot fork: too many processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227508#M171399</link>
    <description>Increase the kernel parameter maxusers&lt;BR /&gt;&lt;BR /&gt;This will increase nproc and other parmeters that can cause this problem.&lt;BR /&gt;&lt;BR /&gt;This process can be done by sam and requires a boot.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 23 Mar 2004 16:24:50 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-03-23T16:24:50Z</dc:date>
    <item>
      <title>/etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227506#M171397</link>
      <description>User Received the following error, but my local&lt;BR /&gt;syslog.log does not indicate any forking problems. Notice the error coming from the user ( c1rfern2 ) profile which is nfs mounted:&lt;BR /&gt;&lt;BR /&gt;${HOME:-.}/.profile[4]: /home/c1rfern2/hras/psconfig.sh:  not found&lt;BR /&gt;&lt;BR /&gt;*********&lt;BR /&gt;$ bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;&lt;BR /&gt;/dev/vg02/applogs  8916992 5125120 3673378   58% /applogs&lt;BR /&gt;psh-cel-04:/cpprodsh_t&lt;BR /&gt;                   17573248 10150888 7422360   58% /cpprodsh&lt;BR /&gt;psh-cel-02:/local/hp/11i&lt;BR /&gt;                   8786112 3131240 5654872   36% /usr/local&lt;BR /&gt;psh-cel-02:/users1/ais/aordonez&lt;BR /&gt;                   26357312 17035632 9321680   65% /home/aordonez&lt;BR /&gt;psh-cel-02:/users1/ais/c1rfern2&lt;BR /&gt;                   26357312 17035632 9321680   65% /home/c1rfern2&lt;BR /&gt;********&lt;BR /&gt;&lt;BR /&gt;Could this forking error actually be coming from the nfs mounted system ( psh-cel-02:/users1/ais/c1rfern2) ?&lt;BR /&gt;&lt;BR /&gt;This is a command ( au2cptest ) entered that&lt;BR /&gt;switches the user ( c1rfern2 ) to the id (cptest), which delivers the "cannot fork"&lt;BR /&gt;error :&lt;BR /&gt; &lt;BR /&gt;$ au2cptest&lt;BR /&gt;/etc/profile[31]: cannot fork: too many processes&lt;BR /&gt;&lt;BR /&gt;/etc/profile[48]: cannot fork: too many processes&lt;BR /&gt;&lt;BR /&gt;/etc/profile[83]: cannot fork: too many processes</description>
      <pubDate>Tue, 23 Mar 2004 16:14:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227506#M171397</guid>
      <dc:creator>Jerry L. Sims</dc:creator>
      <dc:date>2004-03-23T16:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227507#M171398</link>
      <description>Hi Jerry,&lt;BR /&gt;&lt;BR /&gt;You've overflowed one of two kernel parameters&lt;BR /&gt;&lt;BR /&gt;1) NPROC&lt;BR /&gt;2) maxuprc&lt;BR /&gt;&lt;BR /&gt;The former is system wide, the latter is user specific. Check syslog.log for clues.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 23 Mar 2004 16:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227507#M171398</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-03-23T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227508#M171399</link>
      <description>Increase the kernel parameter maxusers&lt;BR /&gt;&lt;BR /&gt;This will increase nproc and other parmeters that can cause this problem.&lt;BR /&gt;&lt;BR /&gt;This process can be done by sam and requires a boot.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 23 Mar 2004 16:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227508#M171399</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-23T16:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227509#M171400</link>
      <description>Hi (again),&lt;BR /&gt;&lt;BR /&gt;After rereading your post, I'd lean towards maxuprc. So run the following commands:&lt;BR /&gt;&lt;BR /&gt;kmtune -q maxuprc  # This tells you the max procs per user&lt;BR /&gt;Then&lt;BR /&gt;ps -fu c1rfern2 | wc -l  # Approx procs in use by c1rfern2&lt;BR /&gt;Then&lt;BR /&gt;ps -fu cptest | wc -l  #Approc procs in use by cptest&lt;BR /&gt;&lt;BR /&gt;IF either of those 2nd/3rd commands are near the 1st - that's the problem.&lt;BR /&gt;If neither is then run:&lt;BR /&gt;&lt;BR /&gt;kmtune -q nproc #Max system-wide processes&lt;BR /&gt;&lt;BR /&gt;ps -ef | wc -l  #Approx total processes in use.&lt;BR /&gt;&lt;BR /&gt;IF that one's close then NPROC needs to be bumped up.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 23 Mar 2004 16:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227509#M171400</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-03-23T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227510#M171401</link>
      <description>syslog.log was the first place I checked, and&lt;BR /&gt;no forking messages are there? That's why I wondered if it could be from the NFS mounted system ?</description>
      <pubDate>Tue, 23 Mar 2004 16:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227510#M171401</guid>
      <dc:creator>Jerry L. Sims</dc:creator>
      <dc:date>2004-03-23T16:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227511#M171402</link>
      <description>I would not recommend increasing maxusers UNLESS you *know* you need NFILE &amp;amp; NINODE increased as well because their values are formulae off maxusers by default. These are two of the heavier kernel memory burdens &amp;amp; I've rarely seen the case where they *needed* to go up at the same time as nproc.&lt;BR /&gt;&lt;BR /&gt;My 2 cents,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 23 Mar 2004 16:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227511#M171402</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-03-23T16:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227512#M171403</link>
      <description>No, the error messages are only generated on the system that is actually running the program regardless of NFS mountpoint and even regardless of whether or not the NFS file is the current directory.&lt;BR /&gt;&lt;BR /&gt;The bad news is that fork() is one of the few system calls that sets errno to the same value (EAGAIN=11) for two separate reasons: 1) the system-wide process table limit (nproc) and 2) the user process limit (maxupc).&lt;BR /&gt;&lt;BR /&gt;Because you are only seeing this error in limited circumstances, I would strongly suspect it's maxuprc biting you.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Mar 2004 16:36:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227512#M171403</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-23T16:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227513#M171404</link>
      <description>Your system probably has a run-away process.  Normally, the default kernel parameters for nproc and maxuproc are adequate for most purposes.  You can probably find out which process has run away with lsof if you have it installed already.  &lt;BR /&gt;If you can figure out which process it is, you can clobber it with kill -9. Otherwise, you'll have to reboot the system (pretend its a M$ system--it'll make you feel better).&lt;BR /&gt;&lt;BR /&gt;If this happens often, you might have to play with the maxuproc and nproc parameters, as other have suggested.  But the cannot fork message is usually indicative of a system in serious trouble.  Most likely this is because someone wrote some really bad code.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 23 Mar 2004 16:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227513#M171404</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2004-03-23T16:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/profile[83]: cannot fork: too many processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227514#M171405</link>
      <description>If "cannot fork: too many processes" does NOT appear in syslog.log or on the system console, the reason is maxuprc.  The default value is 60, so if you run the command:&lt;BR /&gt; &lt;BR /&gt;ps -fu c1rfern2&lt;BR /&gt; &lt;BR /&gt;you'll see how many processes this user is running at the same time. maxuprc limits runaway or buggy processes. Now if this user (c1rfern2) really needs to run more than 60 processes (different login sessions don't matter) then bump maxuprc to 100 or more.</description>
      <pubDate>Tue, 23 Mar 2004 22:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-profile-83-cannot-fork-too-many-processes/m-p/3227514#M171405</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-03-23T22:31:50Z</dc:date>
    </item>
  </channel>
</rss>

