From owner-freebsd-questions Mon Jul 26 4: 1:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from waveconcepts.com (waveconcepts.com [207.126.116.40]) by hub.freebsd.org (Postfix) with ESMTP id D846714FBD for ; Mon, 26 Jul 1999 04:01:23 -0700 (PDT) (envelope-from siberian@siberian.org) Received: from [216.112.76.84] (gamera.siberian.org [216.112.76.84] (may be forged)) by waveconcepts.com (8.9.2/8.9.2) with ESMTP id DAA07630 for ; Mon, 26 Jul 1999 03:56:40 -0700 (PDT) Mime-Version: 1.0 X-Sender: siberian@207.126.116.40 (Unverified) Message-Id: Date: Mon, 26 Jul 1999 04:01:02 -0700 To: freebsd-questions@freebsd.org From: John Armstrong Subject: File Descriptor Limits Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello all- I am trying to get a large number of low traffic virtual hosts running on a single machine ( 3.2-RELEASE, 128 megs of RAM ). When I say large I mean ~2500. The stock system loads ~800 up with no trouble. Around 900 it gets into file descriptor troubles with the dreaded error : fopen: To many open files in system So, I rebuilt my kernel with FD_SETSIZE 4096 That is 4x the 1024 stock value. Once I did that the kernel would load to about 950 and then die but now it dies with a new message : [Error] (23)To many files open in system which I think is a different message. So I raised my maxusers from the stock value ( ~64? ) to 256. Now I can load all 2520 virtual hosts! My question is : Someone set these limits for good reasons I imagine. What evil spirits am I invoking and how hurt will I get? is this perfectly acceptable? What is the largest # of virtual hosts someone has run under apache and freebsd? Thanks, I am a little worried on this one and do not know when I should install another box. Load remains low, these are extraordinarily low volume vhosts. Any advice is much appreciated, this is new territory for me. The machine is eating swap space like turkey on thanksgiving so I do think I will have to up my RAM soon which suprises me as I only have 10-25 apache procs running at any given time( do file descriptors eat ram? ) John- ------------------------------------------------------------------ Mothing gives an author so much pleasure as to find his works quoted by other learned authors. -Ben Franklin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message