From owner-freebsd-questions Tue Aug 10 17:10:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from phoenix.aye.net (phoenix.aye.net [206.185.8.134]) by hub.freebsd.org (Postfix) with SMTP id 197A5154BF for ; Tue, 10 Aug 1999 17:10:09 -0700 (PDT) (envelope-from barrett@phoenix.aye.net) Received: (qmail 1337 invoked by uid 1000); 5 Aug 1999 00:03:02 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 5 Aug 1999 00:03:02 -0000 Date: Wed, 4 Aug 1999 20:03:02 -0400 (EDT) From: Barrett Richardson To: Luis Moreno Cc: freebsd-isp@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Troubles with Apache on FreeBSD In-Reply-To: <37A8AF77.7515952F@cantv.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Try this as a cgi script. ----- cut ---- #!/bin/sh echo Content-type: text/html echo echo "" echo "
"
ulimit  -a          #check resource limits
echo
echo
/usr/sbin/pstat -T  #check fd usage
echo
echo
/usr/sbin/swapinfo -k  #check swap usage
echo "
" echo "" --------- cut ---------- There is also a potential gotcha with login.conf to look out for. The resource limits may be different for daemon processes than for user processes. Apache could have different resource limits depending on whether it was started from an rc file at boot time, or from the command line. - Barrett On Wed, 4 Aug 1999, Luis Moreno wrote: > Hello there. >=20 > I=B4m runing Apache Web Server/1.3.0 with Ben-SSL/1.19 and > FrontPage/3.0.4.2 PHP/3.0.6 on FreeBSD 2.2.6 >=20 > A snapshot of the head of top command is like this: > Last pid: 8175; load averages: 0.71, 0.19, 0.06 > 17:15:22 > 126 processes: 2 running, 124 sleeping CPU states: 3.1% user, 0.0% > nice, 3.5% system, 1.2% interrupt, 92.2% idle > Mem: 137M Active, 44M Inact, 30M Wired, 39M Cache, 8348K Buf, 788K Free > Swap: 512M Total, 64K Used, 512M Free >=20 > The server seems to be ok, but eventualy I=B4m geting problems with the > execution of cgi script=B4s. This is the error message from the error > Apache logs > [Wed Aug 4 17:13:17 1999] [error] (35)Resource temporarily unavailable: > couldn't spawn child process: /var/www/cgi-bin/Count.cgi >=20 > Did anybody get=B4s the same? >=20 > Thanks in advance for yor help. >=20 > Luis. >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message