From owner-freebsd-questions@FreeBSD.ORG Fri Oct 7 05:26:32 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 298D016A41F for ; Fri, 7 Oct 2005 05:26:32 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: from smtp100.rog.mail.re2.yahoo.com (smtp100.rog.mail.re2.yahoo.com [206.190.36.78]) by mx1.FreeBSD.org (Postfix) with SMTP id 970BD43D45 for ; Fri, 7 Oct 2005 05:26:31 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: (qmail 68272 invoked from network); 7 Oct 2005 05:26:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:From:To:Subject:Date:X-Mailer:X-MimeOLE:thread-index; b=mzX2DDoJ6QM3epEKCpcTj9AmKXcU4vNDTj+zL0d5soWyeojM7wy8Q2j4EN1w0KrthVLrN0MihAPGpyQlFCz8Ii5i7eGBBmhNasIVnQp2ESwevK87JuIycI6/c+nam/bW9XKO9euZMXW/fM3jOxaKpAzCHRy0tuNs0zNAVixlGHs= ; Received: from unknown (HELO tamouh) (hakmi@rogers.com@70.27.160.99 with login) by smtp100.rog.mail.re2.yahoo.com with SMTP; 7 Oct 2005 05:26:30 -0000 From: "Tamouh H." To: Date: Fri, 7 Oct 2005 01:24:34 -0400 X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 thread-index: AcXK/2aVivv3ILTHQhed6WN1O7kSHQ== Message-Id: <20051007052631.970BD43D45@mx1.FreeBSD.org> Subject: FreeBSD FD_SETSIZE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2005 05:26:32 -0000 Hi! I'm having problems resolving FD_SETSIZE issues with FreeBSD 5.4 and Apache. This error always continues: ==== [Thu Oct 6 14:51:31 2005] [warn] send body: filedescriptor (1367) larger than FD_SETSIZE (1024) found, you probably need to rebuild Apache with a larger FD_SETSIZE ==== I did re-compile apache (we made sure FD_SETSIZE is enabled) however, the problem still occurs. so I modified /usr/local/apache/bin/apachectl and added : ulimit -n 16480 also in /etc/init.d/httpd But the same problem continues, it is happening much less than before, but we continue to see it. Doing shows: 11095 How else would we need to increase the FD_SETSIZE on FreeBSD 5 ? I read somewhere there is also need to change it at: /usr/include/sys/select.h ? This requires recompiling Kernel, correct ? How about adding this to the FBSD kernel: options FD_SETSIZE nnn as suggested in Apache FAQ: http://httpd.apache.org/docs/1.3/mi...freebsd-setsize Also it appears there are different places the FD_SETSIZE need to be changed as per: http://apache.active-venture.com/descriptors.html I couldn't find good resources about FD_SETSIZE or tuning FreeBSD for large sites except to: Any input or experiences with these are welcomed. Thanks! Tamouh