From owner-freebsd-questions Tue Jan 14 10:18:45 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA27772 for questions-outgoing; Tue, 14 Jan 1997 10:18:45 -0800 (PST) Received: from revelstone.jvm.com (revelstone.jvm.com [207.98.213.2]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id KAA27767 for ; Tue, 14 Jan 1997 10:18:43 -0800 (PST) Received: (from fbsdlist@localhost) by revelstone.jvm.com (8.7.5/8.6.12) id NAA19580; Tue, 14 Jan 1997 13:18:41 -0500 (EST) Date: Tue, 14 Jan 1997 13:18:40 -0500 (EST) From: Cliff Addy To: freebsd-questions@freebsd.org Subject: Setting maximum number of files Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm running into a problem running an Apache server under 2.1.5, it appears that I'm running into a file limit. I've rebuilt the kernel once before, upping maxusers, CHILD_MAX, and OPEN_MAX to 256 each. If I do a limit under the root shell, I get descriptors 256 which I presume means file descriptors. If I invoke the server, it dies with (I beleive) a signal 11. If I remove a virtual host, which drops the number of files opened, it runs fine. Now, if I enter "limit descriptor unlimited" I get a much larger number from the limits command, 6-8000. However, the server still won't run. a) Am I really seeing a file descriptor problem? There are no messages logged, which I beleive I got before. b) Why does changing the limit have no effect? c) How can I invoke the server to have maximum limits without actually typing it? Would it be as simple as a limit command in rc.local (which actually starts the server)? Or do I need to wrap the command in a shell script that uses csh or tcsh? d) Is there a limit to the size of maxusers, etc? Can I, for example, use 2048 for these values? Thanks for any light you can shed on this perplexing and irritating problem. Cliff