From owner-freebsd-questions Thu Dec 11 14:07:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA19566 for questions-outgoing; Thu, 11 Dec 1997 14:07:39 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from panix2.panix.com (V6PEcNuOI6euFGIY1T9K2ld6rv9xkjLr@panix2.panix.com [198.7.0.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA19561 for ; Thu, 11 Dec 1997 14:07:36 -0800 (PST) (envelope-from mjamet@panix.com) Received: from localhost (mjamet@localhost) by panix2.panix.com (8.8.5/8.7/PanixU1.3) with SMTP id RAA15823 for ; Thu, 11 Dec 1997 17:07:27 -0500 (EST) Date: Thu, 11 Dec 1997 17:07:25 -0500 (EST) From: Michael Jamet To: freebsd-questions@freebsd.org Subject: Re: [Q] bash: fork: Resource temporarily unavailable ? - The answer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 Reply-To: Doug White To: Michael Jamet 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