From owner-freebsd-isp Wed Dec 16 03:44:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA28236 for freebsd-isp-outgoing; Wed, 16 Dec 1998 03:44:49 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from main.piter.net (main.piter.net [195.201.22.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA28223 for ; Wed, 16 Dec 1998 03:44:44 -0800 (PST) (envelope-from cyril@main.piter.net) Received: (from cyril@localhost) by main.piter.net (8.8.7/8.8.7/sply) id OAA13514; Wed, 16 Dec 1998 14:44:01 +0300 (MSK) (envelope-from cyril) Date: Wed, 16 Dec 1998 14:44:01 +0300 (MSK) From: "Cyril A. Vechera" Message-Id: <199812161144.OAA13514@main.piter.net> To: freebsd-isp@FreeBSD.ORG, mavit@vecom.com Subject: Re: CGI problems Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > From owner-freebsd-isp@FreeBSD.ORG Wed Dec 16 14:10:40 1998 > From: "Marcos Viterbo" > To: > 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