Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 May 1999 17:41:14 +0930
From:      Greg Lehey <grog@lemis.com>
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>
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 %2B1000
References:  <4A256772.002BE71C.00@noteshub01.aipo.gov.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990515174114.U89091>