Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 1997 17:07:25 -0500 (EST)
From:      Michael Jamet <mjamet@panix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: [Q] bash: fork: Resource temporarily unavailable ? - The answer
Message-ID:  <Pine.SUN.3.94.971211170450.14869A-100000@panix2.panix.com>
In-Reply-To: <Pine.OSF.3.91.971211155701.223C-100000@unix4cc.nppi.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help


I just had the same problem earlier this week.  Please see my question and
Doug White's answer below.

Oh and thank you Doug.

Michael

On Thu, 11 Dec 1997, cpfreg wrote:

> I am using FreeBSD2.2-970625-RELENG. In /etc/rc.local I use
> /usr/X11R6/bin/xdm& to start the XWindows and AfterStep as my
> XWin manager. I start 9 rxvt after I login. Even with 64M RAM
> sometimes (not all the time) I get this kind of error message:
> 
> bash: fork: Resource temporarily unavailable
> 
> Does anyone has any idea what is going on?  
> 
> 


>From dwhite@gdi.uoregon.edu Thu Dec 11 17:04:23 1997
Date: Tue, 9 Dec 1997 11:42:32 -0800 (PST)
From: Doug White <dwhite@gdi.uoregon.edu>
Reply-To: Doug White <dwhite@resnet.uoregon.edu>
To: Michael Jamet <mjamet@panix.com>
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: Running into max process limit

On Mon, 8 Dec 1997, Michael Jamet wrote:

> 
> I have written a program which forks a bunch of children upto about 100.
> Before it gets nearly that far, the forks fail.  Changing maxusers had no
> effect (maxusers=100).  I have plenty of memory, but no change has any
> effect.  Suggestions?

Did you try `ulimit' before running your program to release the per-shell
limits?

Did you check /etc/login.conf?

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.94.971211170450.14869A-100000>