From owner-freebsd-questions Sat May 15 1:11:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 598FE14C9D for ; Sat, 15 May 1999 01:11:22 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id RAA16913; Sat, 15 May 1999 17:41:21 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id RAA64409; Sat, 15 May 1999 17:41:15 +0930 (CST) Date: Sat, 15 May 1999 17:41:14 +0930 From: Greg Lehey To: Stanley.Hopcroft@ipaustralia.gov.au Cc: freebsd-questions@FreeBSD.ORG Subject: Re: CANNOT FORK from DeleGate 5.9.1 + FreeBSD 2.2.8-STABLE + P166 + Squid Message-ID: <19990515174114.U89091@freebie.lemis.com> References: <4A256772.002BE71C.00@noteshub01.aipo.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <4A256772.002BE71C.00@noteshub01.aipo.gov.au>; from Stanley.Hopcroft@ipaustralia.gov.au on Sat, May 15, 1999 at 05:57:09PM +1000 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 15 May 1999 at 17:57:09 +1000, Stanley.Hopcroft@ipaustralia.gov.au wrote: > Dear Ladies and Gentlemen, > > My employer is having trouble with DeleGate 5.9.1 (http://www.delegate.org. > Using it with SSLeay to accept SSL) on a FreeBSD 2.2.8-STABLE machine. > > DeleGate trys to fork a copy of itself to handle each connection but it reports > - persistently despite a 10 second sleep before retrying - fork failures. > > The host is a P166 with 128 MB RAM and 256 MB swap. It runs Apache and Squid > 1.1.20. > > When the problem was occurring, top reported > > . no more than 30 MB of swap being used and no pageing out > . no less than 80% of idle CPU time > > Also there were no obvious kernel distress calls. > > Temporarily stopping Squid did pacify DeleGate. > > Is it normal behaviour for fork to fail on what seems no more than a lightly > loaded host? Yes. In order to protect itself, the system limits the number of processes any one user can start. In 2.2.8 it was 32. > DeleGate runs as "nobody". Shoud I up the limits for nobody in > /etc/login.conf ? Yes, that's one possibility. Another might be to give it a special user and set his limits accordingly. You should also check the squid user. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message