Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 1998 14:44:01 +0300 (MSK)
From:      "Cyril A. Vechera" <cyril@main.piter.net>
To:        freebsd-isp@FreeBSD.ORG, mavit@vecom.com
Subject:   Re: CGI problems
Message-ID:  <199812161144.OAA13514@main.piter.net>

next in thread | raw e-mail | index | archive | help
> From owner-freebsd-isp@FreeBSD.ORG Wed Dec 16 14:10:40 1998
> From: "Marcos Viterbo" <mavit@vecom.com>
> To: <freebsd-isp@FreeBSD.ORG>
> Subject: CGI problems
> Date: Wed, 16 Dec 1998 08:49:42 -0200
>
> Greetings.
>
> I am facing some problems with CGIs (freebsd_2.2.6 + apache_1.3.0). When the
> system reaches about 55 apache instances the CGIs won't execute anymore and
> returns a 500 error. I recompiled the kernel and libc altring
> FD_SETSIZE=1024, maxusers=256, open_max, max_proc (child_max) in the kernel
> and login.conf, maxconn to 256, nmbclusters=8192, recompiled apache with a
> higher maxclients. The system has 128 MB RAM (it never goes beyond 50MB).
> It happens only with external CGIs (PHP3 supports as many instances as the
> apache is configured to).
see limits

try set limits and then exec apache
for example

#!/bin/sh
# apache.sh from rc.d

ulimit -t unlimited
ulimit -f unlimited
ulimit -S -d 94208
ulimit -S -s 32768
ulimit -c unlimited
ulimit -S -m 94208
ulimit -S -l 32768
ulimit -S -u 256
ulimit -S -n 256
/usr/local/sbin/httpd -f /usr/local/etc/apache/httpd.conf

# end


Sincerely your,
	Cyril A. Vechera

email:cyril@piter.net          ---------              http://sply.piter.net


>
> Thank you for any help.
>
> Marcos Viterbo
> mavit@vecom.com
> Vecom Net
> 55 11 884 0605
> Sao Paulo - Brazil
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message
>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



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