Date: Wed, 4 Aug 1999 20:03:02 -0400 (EDT) From: Barrett Richardson <barrett@phoenix.aye.net> To: Luis Moreno <luis@cantv.net> Cc: freebsd-isp@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Troubles with Apache on FreeBSD Message-ID: <Pine.BSF.4.01.9908041953500.27916-100000@phoenix.aye.net> In-Reply-To: <37A8AF77.7515952F@cantv.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Try this as a cgi script. ----- cut ---- #!/bin/sh echo Content-type: text/html echo echo "<html>" echo "<pre>" ulimit -a #check resource limits echo echo /usr/sbin/pstat -T #check fd usage echo echo /usr/sbin/swapinfo -k #check swap usage echo "</pre>" echo "</html>" --------- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.9908041953500.27916-100000>